diff --git a/src/shell/contextmenu/menu_widget.cc b/src/shell/contextmenu/menu_widget.cc
index 9159cada..d7e2a262 100644
--- a/src/shell/contextmenu/menu_widget.cc
+++ b/src/shell/contextmenu/menu_widget.cc
@@ -363,7 +363,7 @@ void mb_shell::menu_item_normal_widget::tick(float delta_time) {
void mb_shell::menu_item_normal_widget::activate() { run_item_action(item); }
-void mb_shell::menu_item_normal_widget::handle_mouse_down(ui::mouse_event &e) {
+void mb_shell::menu_item_normal_widget::handle_click(ui::mouse_event &e) {
if (e.button != ui::mouse_button::left)
return;
e.handled = true;
diff --git a/src/shell/contextmenu/menu_widget.h b/src/shell/contextmenu/menu_widget.h
index 125cda30..9942ef07 100644
--- a/src/shell/contextmenu/menu_widget.h
+++ b/src/shell/contextmenu/menu_widget.h
@@ -70,7 +70,7 @@ struct menu_item_normal_widget : public menu_item_widget {
bool has_measure() const override { return true; }
YGSize measure(float width, YGMeasureMode width_mode, float height,
YGMeasureMode height_mode) override;
- void handle_mouse_down(ui::mouse_event &e) override;
+ void handle_click(ui::mouse_event &e) override;
void activate();
void hide_submenu();
diff --git a/src/shell/script/script.js b/src/shell/script/script.js
index ebe5c9e2..4b0def04 100644
--- a/src/shell/script/script.js
+++ b/src/shell/script/script.js
@@ -5,32 +5,32 @@ import * as __mshell from "mshell";
const setTimeout = __mshell.infra.setTimeout;
const clearTimeout = __mshell.infra.clearTimeout;
-var Gh=Object.create;var rd=Object.defineProperty;var Kh=Object.getOwnPropertyDescriptor;var Qh=Object.getOwnPropertyNames;var qh=Object.getPrototypeOf,Yh=Object.prototype.hasOwnProperty;var mn=(r,n)=>()=>(n||r((n={exports:{}}).exports,n),n.exports);var Jh=(r,n,i,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of Qh(n))!Yh.call(r,l)&&l!==i&&rd(r,l,{get:()=>n[l],enumerable:!(a=Kh(n,l))||a.enumerable});return r};var re=(r,n,i)=>(i=r!=null?Gh(qh(r)):{},Jh(n||!r||!r.__esModule?rd(i,"default",{value:r,enumerable:!0}):i,r));var hd=mn(ie=>{"use strict";var go=Symbol.for("react.element"),Xh=Symbol.for("react.portal"),Zh=Symbol.for("react.fragment"),em=Symbol.for("react.strict_mode"),tm=Symbol.for("react.profiler"),nm=Symbol.for("react.provider"),rm=Symbol.for("react.context"),om=Symbol.for("react.forward_ref"),im=Symbol.for("react.suspense"),sm=Symbol.for("react.memo"),lm=Symbol.for("react.lazy"),od=Symbol.iterator;function am(r){return r===null||typeof r!="object"?null:(r=od&&r[od]||r["@@iterator"],typeof r=="function"?r:null)}var ld={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ad=Object.assign,ud={};function Tr(r,n,i){this.props=r,this.context=n,this.refs=ud,this.updater=i||ld}Tr.prototype.isReactComponent={};Tr.prototype.setState=function(r,n){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,n,"setState")};Tr.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function cd(){}cd.prototype=Tr.prototype;function Zl(r,n,i){this.props=r,this.context=n,this.refs=ud,this.updater=i||ld}var ea=Zl.prototype=new cd;ea.constructor=Zl;ad(ea,Tr.prototype);ea.isPureReactComponent=!0;var id=Array.isArray,dd=Object.prototype.hasOwnProperty,ta={current:null},fd={key:!0,ref:!0,__self:!0,__source:!0};function pd(r,n,i){var a,l={},d=null,c=null;if(n!=null)for(a in n.ref!==void 0&&(c=n.ref),n.key!==void 0&&(d=""+n.key),n)dd.call(n,a)&&!fd.hasOwnProperty(a)&&(l[a]=n[a]);var p=arguments.length-2;if(p===1)l.children=i;else if(1
{"use strict";md.exports=hd()});var Pd=mn((O0,zd)=>{zd.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});var Wd=mn(Vd=>{"use strict";var Pr=oe();function Bm(r,n){return r===n&&(r!==0||1/r===1/n)||r!==r&&n!==n}var Um=typeof Object.is=="function"?Object.is:Bm,jm=Pr.useState,$m=Pr.useEffect,Vm=Pr.useLayoutEffect,Wm=Pr.useDebugValue;function Gm(r,n){var i=n(),a=jm({inst:{value:i,getSnapshot:n}}),l=a[0].inst,d=a[1];return Vm(function(){l.value=i,l.getSnapshot=n,xa(l)&&d({inst:l})},[r,i,n]),$m(function(){return xa(l)&&d({inst:l}),r(function(){xa(l)&&d({inst:l})})},[r]),Wm(i),i}function xa(r){var n=r.getSnapshot;r=r.value;try{var i=n();return!Um(r,i)}catch{return!0}}function Km(r,n){return n()}var Qm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Km:Gm;Vd.useSyncExternalStore=Pr.useSyncExternalStore!==void 0?Pr.useSyncExternalStore:Qm});var Kd=mn((Ex,Gd)=>{"use strict";Gd.exports=Wd()});var mf=mn(xe=>{"use strict";function Ia(r,n){var i=r.length;r.push(n);e:for(;0>>1,l=r[a];if(0>>1;ais(p,i))gis(x,p)?(r[a]=x,r[g]=i,a=g):(r[a]=p,r[c]=i,a=c);else if(gis(x,i))r[a]=x,r[g]=i,a=g;else break e}}return n}function is(r,n){var i=r.sortIndex-n.sortIndex;return i!==0?i:r.id-n.id}typeof performance=="object"&&typeof performance.now=="function"?(lf=performance,xe.unstable_now=function(){return lf.now()}):(wa=Date,af=wa.now(),xe.unstable_now=function(){return wa.now()-af});var lf,wa,af,rn=[],An=[],l1=1,Lt=null,Qe=3,as=!1,ir=!1,_o=!1,df=typeof setTimeout=="function"?setTimeout:null,ff=typeof clearTimeout=="function"?clearTimeout:null,uf=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ka(r){for(var n=Gt(An);n!==null;){if(n.callback===null)ls(An);else if(n.startTime<=r)ls(An),n.sortIndex=n.expirationTime,Ia(rn,n);else break;n=Gt(An)}}function Na(r){if(_o=!1,ka(r),!ir)if(Gt(rn)!==null)ir=!0,Ta(Fa);else{var n=Gt(An);n!==null&&ba(Na,n.startTime-r)}}function Fa(r,n){ir=!1,_o&&(_o=!1,ff(Eo),Eo=-1),as=!0;var i=Qe;try{for(ka(n),Lt=Gt(rn);Lt!==null&&(!(Lt.expirationTime>n)||r&&!hf());){var a=Lt.callback;if(typeof a=="function"){Lt.callback=null,Qe=Lt.priorityLevel;var l=a(Lt.expirationTime<=n);n=xe.unstable_now(),typeof l=="function"?Lt.callback=l:Lt===Gt(rn)&&ls(rn),ka(n)}else ls(rn);Lt=Gt(rn)}if(Lt!==null)var d=!0;else{var c=Gt(An);c!==null&&ba(Na,c.startTime-n),d=!1}return d}finally{Lt=null,Qe=i,as=!1}}var us=!1,ss=null,Eo=-1,pf=5,gf=-1;function hf(){return!(xe.unstable_now()-gfr||125a?(r.sortIndex=i,Ia(An,r),Gt(rn)===null&&r===Gt(An)&&(_o?(ff(Eo),Eo=-1):_o=!0,ba(Na,i-a))):(r.sortIndex=l,Ia(rn,r),ir||as||(ir=!0,Ta(Fa))),r};xe.unstable_shouldYield=hf;xe.unstable_wrapCallback=function(r){var n=Qe;return function(){var i=Qe;Qe=n;try{return r.apply(this,arguments)}finally{Qe=i}}}});var yf=mn((Ny,xf)=>{"use strict";xf.exports=mf()});var Sf=mn((Fy,vf)=>{vf.exports=function(n){var i={},a=oe(),l=yf(),d=Object.assign;function c(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o()=>(n||r((n={exports:{}}).exports,n),n.exports);var Jh=(r,n,i,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(let l of Qh(n))!Yh.call(r,l)&&l!==i&&rd(r,l,{get:()=>n[l],enumerable:!(a=Kh(n,l))||a.enumerable});return r};var re=(r,n,i)=>(i=r!=null?Gh(qh(r)):{},Jh(n||!r||!r.__esModule?rd(i,"default",{value:r,enumerable:!0}):i,r));var hd=hn(ie=>{"use strict";var go=Symbol.for("react.element"),Xh=Symbol.for("react.portal"),Zh=Symbol.for("react.fragment"),em=Symbol.for("react.strict_mode"),tm=Symbol.for("react.profiler"),nm=Symbol.for("react.provider"),rm=Symbol.for("react.context"),om=Symbol.for("react.forward_ref"),im=Symbol.for("react.suspense"),sm=Symbol.for("react.memo"),lm=Symbol.for("react.lazy"),od=Symbol.iterator;function am(r){return r===null||typeof r!="object"?null:(r=od&&r[od]||r["@@iterator"],typeof r=="function"?r:null)}var ld={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ad=Object.assign,ud={};function Tr(r,n,i){this.props=r,this.context=n,this.refs=ud,this.updater=i||ld}Tr.prototype.isReactComponent={};Tr.prototype.setState=function(r,n){if(typeof r!="object"&&typeof r!="function"&&r!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,r,n,"setState")};Tr.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function cd(){}cd.prototype=Tr.prototype;function Zl(r,n,i){this.props=r,this.context=n,this.refs=ud,this.updater=i||ld}var ea=Zl.prototype=new cd;ea.constructor=Zl;ad(ea,Tr.prototype);ea.isPureReactComponent=!0;var id=Array.isArray,dd=Object.prototype.hasOwnProperty,ta={current:null},fd={key:!0,ref:!0,__self:!0,__source:!0};function pd(r,n,i){var a,l={},d=null,c=null;if(n!=null)for(a in n.ref!==void 0&&(c=n.ref),n.key!==void 0&&(d=""+n.key),n)dd.call(n,a)&&!fd.hasOwnProperty(a)&&(l[a]=n[a]);var p=arguments.length-2;if(p===1)l.children=i;else if(1{"use strict";md.exports=hd()});var Pd=hn((O0,zd)=>{zd.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}});var Wd=hn(Vd=>{"use strict";var Pr=oe();function Bm(r,n){return r===n&&(r!==0||1/r===1/n)||r!==r&&n!==n}var Um=typeof Object.is=="function"?Object.is:Bm,jm=Pr.useState,$m=Pr.useEffect,Vm=Pr.useLayoutEffect,Wm=Pr.useDebugValue;function Gm(r,n){var i=n(),a=jm({inst:{value:i,getSnapshot:n}}),l=a[0].inst,d=a[1];return Vm(function(){l.value=i,l.getSnapshot=n,xa(l)&&d({inst:l})},[r,i,n]),$m(function(){return xa(l)&&d({inst:l}),r(function(){xa(l)&&d({inst:l})})},[r]),Wm(i),i}function xa(r){var n=r.getSnapshot;r=r.value;try{var i=n();return!Um(r,i)}catch{return!0}}function Km(r,n){return n()}var Qm=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Km:Gm;Vd.useSyncExternalStore=Pr.useSyncExternalStore!==void 0?Pr.useSyncExternalStore:Qm});var Kd=hn((Ex,Gd)=>{"use strict";Gd.exports=Wd()});var mf=hn(xe=>{"use strict";function Ia(r,n){var i=r.length;r.push(n);e:for(;0>>1,l=r[a];if(0>>1;ais(p,i))gis(x,p)?(r[a]=x,r[g]=i,a=g):(r[a]=p,r[c]=i,a=c);else if(gis(x,i))r[a]=x,r[g]=i,a=g;else break e}}return n}function is(r,n){var i=r.sortIndex-n.sortIndex;return i!==0?i:r.id-n.id}typeof performance=="object"&&typeof performance.now=="function"?(lf=performance,xe.unstable_now=function(){return lf.now()}):(wa=Date,af=wa.now(),xe.unstable_now=function(){return wa.now()-af});var lf,wa,af,nn=[],An=[],l1=1,Ot=null,Qe=3,as=!1,ir=!1,_o=!1,df=typeof setTimeout=="function"?setTimeout:null,ff=typeof clearTimeout=="function"?clearTimeout:null,uf=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ka(r){for(var n=Wt(An);n!==null;){if(n.callback===null)ls(An);else if(n.startTime<=r)ls(An),n.sortIndex=n.expirationTime,Ia(nn,n);else break;n=Wt(An)}}function Na(r){if(_o=!1,ka(r),!ir)if(Wt(nn)!==null)ir=!0,Ta(Fa);else{var n=Wt(An);n!==null&&ba(Na,n.startTime-r)}}function Fa(r,n){ir=!1,_o&&(_o=!1,ff(Eo),Eo=-1),as=!0;var i=Qe;try{for(ka(n),Ot=Wt(nn);Ot!==null&&(!(Ot.expirationTime>n)||r&&!hf());){var a=Ot.callback;if(typeof a=="function"){Ot.callback=null,Qe=Ot.priorityLevel;var l=a(Ot.expirationTime<=n);n=xe.unstable_now(),typeof l=="function"?Ot.callback=l:Ot===Wt(nn)&&ls(nn),ka(n)}else ls(nn);Ot=Wt(nn)}if(Ot!==null)var d=!0;else{var c=Wt(An);c!==null&&ba(Na,c.startTime-n),d=!1}return d}finally{Ot=null,Qe=i,as=!1}}var us=!1,ss=null,Eo=-1,pf=5,gf=-1;function hf(){return!(xe.unstable_now()-gfr||125a?(r.sortIndex=i,Ia(An,r),Wt(nn)===null&&r===Wt(An)&&(_o?(ff(Eo),Eo=-1):_o=!0,ba(Na,i-a))):(r.sortIndex=l,Ia(nn,r),ir||as||(ir=!0,Ta(Fa))),r};xe.unstable_shouldYield=hf;xe.unstable_wrapCallback=function(r){var n=Qe;return function(){var i=Qe;Qe=n;try{return r.apply(this,arguments)}finally{Qe=i}}}});var yf=hn((Ny,xf)=>{"use strict";xf.exports=mf()});var Sf=hn((Fy,vf)=>{vf.exports=function(n){var i={},a=oe(),l=yf(),d=Object.assign;function c(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;oS||u[m]!==f[S]){var E=`
-`+u[m].replace(" at new "," at ");return e.displayName&&E.includes("")&&(E=E.replace("",e.displayName)),E}while(1<=m&&0<=S);break}}}finally{Us=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?Qr(e):""}var eh=Object.prototype.hasOwnProperty,$s=[],hr=-1;function Nn(e){return{current:e}}function ye(e){0>hr||(e.current=$s[hr],$s[hr]=null,hr--)}function me(e,t){hr++,$s[hr]=e.current,e.current=t}var Fn={},$e=Nn(Fn),st=Nn(!1),Gn=Fn;function mr(e,t){var o=e.type.contextTypes;if(!o)return Fn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var u={},f;for(f in o)u[f]=t[f];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function lt(e){return e=e.childContextTypes,e!=null}function qo(){ye(st),ye($e)}function wu(e,t,o){if($e.current!==Fn)throw Error(c(168));me($e,t),me(st,o)}function _u(e,t,o){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return o;s=s.getChildContext();for(var u in s)if(!(u in t))throw Error(c(108,Ne(e)||"Unknown",u));return d({},o,s)}function Yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fn,Gn=$e.current,me($e,e),me(st,st.current),!0}function Eu(e,t,o){var s=e.stateNode;if(!s)throw Error(c(169));o?(e=_u(e,t,Gn),s.__reactInternalMemoizedMergedChildContext=e,ye(st),ye($e),me($e,e)):ye(st),me(st,o)}var At=Math.clz32?Math.clz32:rh,th=Math.log,nh=Math.LN2;function rh(e){return e>>>=0,e===0?32:31-(th(e)/nh|0)|0}var Jo=64,Xo=4194304;function qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zo(e,t){var o=e.pendingLanes;if(o===0)return 0;var s=0,u=e.suspendedLanes,f=e.pingedLanes,m=o&268435455;if(m!==0){var S=m&~u;S!==0?s=qr(S):(f&=m,f!==0&&(s=qr(f)))}else m=o&~u,m!==0?s=qr(m):f!==0&&(s=qr(f));if(s===0)return 0;if(t!==0&&t!==s&&(t&u)===0&&(u=s&-s,f=t&-t,u>=f||u===16&&(f&4194240)!==0))return t;if((s&4)!==0&&(s|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0o;o++)t.push(e);return t}function Yr(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-At(t),e[t]=o}function sh(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0>=m,u-=m,cn=1<<32-At(t)+u|o<de?(Re=Z,Z=null):Re=Z.sibling;var fe=D(_,Z,N[de],A);if(fe===null){Z===null&&(Z=Re);break}e&&Z&&fe.alternate===null&&t(_,Z),C=f(fe,C,de),ee===null?W=fe:ee.sibling=fe,ee=fe,Z=Re}if(de===N.length)return o(_,Z),Se&&Qn(_,de),W;if(Z===null){for(;dede?(Re=Z,Z=null):Re=Z.sibling;var Mn=D(_,Z,fe.value,A);if(Mn===null){Z===null&&(Z=Re);break}e&&Z&&Mn.alternate===null&&t(_,Z),C=f(Mn,C,de),ee===null?W=Mn:ee.sibling=Mn,ee=Mn,Z=Re}if(fe.done)return o(_,Z),Se&&Qn(_,de),W;if(Z===null){for(;!fe.done;de++,fe=N.next())fe=X(_,fe.value,A),fe!==null&&(C=f(fe,C,de),ee===null?W=fe:ee.sibling=fe,ee=fe);return Se&&Qn(_,de),W}for(Z=s(_,Z);!fe.done;de++,fe=N.next())fe=ve(Z,_,de,fe.value,A),fe!==null&&(e&&fe.alternate!==null&&Z.delete(fe.key===null?de:fe.key),C=f(fe,C,de),ee===null?W=fe:ee.sibling=fe,ee=fe);return e&&Z.forEach(function(Wh){return t(_,Wh)}),Se&&Qn(_,de),W}function hn(_,C,N,A){if(typeof N=="object"&&N!==null&&N.type===y&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case g:e:{for(var W=N.key,ee=C;ee!==null;){if(ee.key===W){if(W=N.type,W===y){if(ee.tag===7){o(_,ee.sibling),C=u(ee,N.props.children),C.return=_,_=C;break e}}else if(ee.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===T&&Lu(W)===ee.type){o(_,ee.sibling),C=u(ee,N.props),C.ref=Xr(_,ee,N),C.return=_,_=C;break e}o(_,ee);break}else t(_,ee);ee=ee.sibling}N.type===y?(C=tr(N.props.children,_.mode,A,N.key),C.return=_,_=C):(A=Di(N.type,N.key,N.props,null,_.mode,A),A.ref=Xr(_,C,N),A.return=_,_=A)}return m(_);case x:e:{for(ee=N.key;C!==null;){if(C.key===ee)if(C.tag===4&&C.stateNode.containerInfo===N.containerInfo&&C.stateNode.implementation===N.implementation){o(_,C.sibling),C=u(C,N.children||[]),C.return=_,_=C;break e}else{o(_,C);break}else t(_,C);C=C.sibling}C=Jl(N,_.mode,A),C.return=_,_=C}return m(_);case T:return ee=N._init,hn(_,C,ee(N._payload),A)}if(J(N))return ge(_,C,N,A);if(se(N))return dt(_,C,N,A);si(_,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,C!==null&&C.tag===6?(o(_,C.sibling),C=u(C,N),C.return=_,_=C):(o(_,C),C=Yl(N,_.mode,A),C.return=_,_=C),m(_)):o(_,C)}return hn}var Sr=Ru(!0),Mu=Ru(!1),li=Nn(null),ai=null,Cr=null,nl=null;function rl(){nl=Cr=ai=null}function Du(e,t,o){Go?(me(li,t._currentValue),t._currentValue=o):(me(li,t._currentValue2),t._currentValue2=o)}function ol(e){var t=li.current;ye(li),Go?e._currentValue=t:e._currentValue2=t}function il(e,t,o){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===o)break;e=e.return}}function wr(e,t){ai=e,nl=Cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(at=!0),e.firstContext=null)}function Tt(e){var t=Go?e._currentValue:e._currentValue2;if(nl!==e)if(e={context:e,memoizedValue:t,next:null},Cr===null){if(ai===null)throw Error(c(308));Cr=e,ai.dependencies={lanes:0,firstContext:e}}else Cr=Cr.next=e;return t}var qn=null;function sl(e){qn===null?qn=[e]:qn.push(e)}function Au(e,t,o,s){var u=t.interleaved;return u===null?(o.next=o,sl(t)):(o.next=u.next,u.next=o),t.interleaved=o,Yt(e,s)}function Yt(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Tn=!1;function ll(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function fn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ne&2)!==0){var u=s.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),s.pending=t,Yt(e,o)}return u=s.interleaved,u===null?(t.next=t,sl(s)):(t.next=u.next,u.next=t),s.interleaved=t,Yt(e,o)}function ui(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,Gs(e,o)}}function Bu(e,t){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var u=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var m={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?u=f=m:f=f.next=m,o=o.next}while(o!==null);f===null?u=f=t:f=f.next=t}else u=f=t;o={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:s.shared,effects:s.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function ci(e,t,o,s){var u=e.updateQueue;Tn=!1;var f=u.firstBaseUpdate,m=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var E=S,b=E.next;E.next=null,m===null?f=b:m.next=b,m=E;var B=e.alternate;B!==null&&(B=B.updateQueue,S=B.lastBaseUpdate,S!==m&&(S===null?B.firstBaseUpdate=b:S.next=b,B.lastBaseUpdate=E))}if(f!==null){var X=u.baseState;m=0,B=b=E=null,S=f;do{var D=S.lane,ve=S.eventTime;if((s&D)===D){B!==null&&(B=B.next={eventTime:ve,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var ge=e,dt=S;switch(D=t,ve=o,dt.tag){case 1:if(ge=dt.payload,typeof ge=="function"){X=ge.call(ve,X,D);break e}X=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=dt.payload,D=typeof ge=="function"?ge.call(ve,X,D):ge,D==null)break e;X=d({},X,D);break e;case 2:Tn=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,D=u.effects,D===null?u.effects=[S]:D.push(S))}else ve={eventTime:ve,lane:D,tag:S.tag,payload:S.payload,callback:S.callback,next:null},B===null?(b=B=ve,E=X):B=B.next=ve,m|=D;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;D=S,S=D.next,D.next=null,u.lastBaseUpdate=D,u.shared.pending=null}}while(!0);if(B===null&&(E=X),u.baseState=E,u.firstBaseUpdate=b,u.lastBaseUpdate=B,t=u.shared.interleaved,t!==null){u=t;do m|=u.lane,u=u.next;while(u!==t)}else f===null&&(u.shared.lanes=0);Jn|=m,e.lanes=m,e.memoizedState=X}}function Uu(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;to?o:4,e(!0);var s=fl.transition;fl.transition={};try{e(!1),t()}finally{ce=o,fl.transition=s}}function sc(){return zt().memoizedState}function yh(e,t,o){var s=On(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},lc(e))ac(t,o);else if(o=Au(e,t,o,s),o!==null){var u=Ke();Pt(o,e,s,u),uc(o,t,s)}}function vh(e,t,o){var s=On(e),u={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(lc(e))ac(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var m=t.lastRenderedState,S=f(m,o);if(u.hasEagerState=!0,u.eagerState=S,Ht(S,m)){var E=t.interleaved;E===null?(u.next=u,sl(t)):(u.next=E.next,E.next=u),t.interleaved=u;return}}catch{}finally{}o=Au(e,t,u,s),o!==null&&(u=Ke(),Pt(o,e,s,u),uc(o,t,s))}}function lc(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function ac(e,t){to=pi=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function uc(e,t,o){if((o&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,Gs(e,o)}}var mi={readContext:Tt,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},Sh={readContext:Tt,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:Xu,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,gi(4194308,4,tc.bind(null,t,e),o)},useLayoutEffect:function(e,t){return gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return gi(4,2,e,t)},useMemo:function(e,t){var o=Xt();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var s=Xt();return t=o!==void 0?o(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=yh.bind(null,Ee,e),[s.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:Yu,useDebugValue:vl,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=Yu(!1),t=e[0];return e=xh.bind(null,e[1]),Xt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var s=Ee,u=Xt();if(Se){if(o===void 0)throw Error(c(407));o=o()}else{if(o=t(),Le===null)throw Error(c(349));(Yn&30)!==0||Wu(s,t,o)}u.memoizedState=o;var f={value:o,getSnapshot:t};return u.queue=f,Xu(Ku.bind(null,s,f,e),[e]),s.flags|=2048,oo(9,Gu.bind(null,s,f,o,t),void 0,null),o},useId:function(){var e=Xt(),t=Le.identifierPrefix;if(Se){var o=dn,s=cn;o=(s&~(1<<32-At(s)-1)).toString(32)+o,t=":"+t+"R"+o,o=no++,0")&&(E=E.replace("",e.displayName)),E}while(1<=m&&0<=S);break}}}finally{Us=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?Qr(e):""}var eh=Object.prototype.hasOwnProperty,$s=[],hr=-1;function Nn(e){return{current:e}}function ye(e){0>hr||(e.current=$s[hr],$s[hr]=null,hr--)}function me(e,t){hr++,$s[hr]=e.current,e.current=t}var Fn={},$e=Nn(Fn),st=Nn(!1),Gn=Fn;function mr(e,t){var o=e.type.contextTypes;if(!o)return Fn;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var u={},f;for(f in o)u[f]=t[f];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function lt(e){return e=e.childContextTypes,e!=null}function qo(){ye(st),ye($e)}function wu(e,t,o){if($e.current!==Fn)throw Error(c(168));me($e,t),me(st,o)}function _u(e,t,o){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return o;s=s.getChildContext();for(var u in s)if(!(u in t))throw Error(c(108,Ne(e)||"Unknown",u));return d({},o,s)}function Yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fn,Gn=$e.current,me($e,e),me(st,st.current),!0}function Eu(e,t,o){var s=e.stateNode;if(!s)throw Error(c(169));o?(e=_u(e,t,Gn),s.__reactInternalMemoizedMergedChildContext=e,ye(st),ye($e),me($e,e)):ye(st),me(st,o)}var Dt=Math.clz32?Math.clz32:rh,th=Math.log,nh=Math.LN2;function rh(e){return e>>>=0,e===0?32:31-(th(e)/nh|0)|0}var Jo=64,Xo=4194304;function qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Zo(e,t){var o=e.pendingLanes;if(o===0)return 0;var s=0,u=e.suspendedLanes,f=e.pingedLanes,m=o&268435455;if(m!==0){var S=m&~u;S!==0?s=qr(S):(f&=m,f!==0&&(s=qr(f)))}else m=o&~u,m!==0?s=qr(m):f!==0&&(s=qr(f));if(s===0)return 0;if(t!==0&&t!==s&&(t&u)===0&&(u=s&-s,f=t&-t,u>=f||u===16&&(f&4194240)!==0))return t;if((s&4)!==0&&(s|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0o;o++)t.push(e);return t}function Yr(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Dt(t),e[t]=o}function sh(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0>=m,u-=m,un=1<<32-Dt(t)+u|o<de?(Re=Z,Z=null):Re=Z.sibling;var fe=D(_,Z,N[de],A);if(fe===null){Z===null&&(Z=Re);break}e&&Z&&fe.alternate===null&&t(_,Z),C=f(fe,C,de),ee===null?W=fe:ee.sibling=fe,ee=fe,Z=Re}if(de===N.length)return o(_,Z),Se&&Qn(_,de),W;if(Z===null){for(;dede?(Re=Z,Z=null):Re=Z.sibling;var Mn=D(_,Z,fe.value,A);if(Mn===null){Z===null&&(Z=Re);break}e&&Z&&Mn.alternate===null&&t(_,Z),C=f(Mn,C,de),ee===null?W=Mn:ee.sibling=Mn,ee=Mn,Z=Re}if(fe.done)return o(_,Z),Se&&Qn(_,de),W;if(Z===null){for(;!fe.done;de++,fe=N.next())fe=X(_,fe.value,A),fe!==null&&(C=f(fe,C,de),ee===null?W=fe:ee.sibling=fe,ee=fe);return Se&&Qn(_,de),W}for(Z=s(_,Z);!fe.done;de++,fe=N.next())fe=ve(Z,_,de,fe.value,A),fe!==null&&(e&&fe.alternate!==null&&Z.delete(fe.key===null?de:fe.key),C=f(fe,C,de),ee===null?W=fe:ee.sibling=fe,ee=fe);return e&&Z.forEach(function(Wh){return t(_,Wh)}),Se&&Qn(_,de),W}function gn(_,C,N,A){if(typeof N=="object"&&N!==null&&N.type===y&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case g:e:{for(var W=N.key,ee=C;ee!==null;){if(ee.key===W){if(W=N.type,W===y){if(ee.tag===7){o(_,ee.sibling),C=u(ee,N.props.children),C.return=_,_=C;break e}}else if(ee.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===T&&Lu(W)===ee.type){o(_,ee.sibling),C=u(ee,N.props),C.ref=Xr(_,ee,N),C.return=_,_=C;break e}o(_,ee);break}else t(_,ee);ee=ee.sibling}N.type===y?(C=tr(N.props.children,_.mode,A,N.key),C.return=_,_=C):(A=Di(N.type,N.key,N.props,null,_.mode,A),A.ref=Xr(_,C,N),A.return=_,_=A)}return m(_);case x:e:{for(ee=N.key;C!==null;){if(C.key===ee)if(C.tag===4&&C.stateNode.containerInfo===N.containerInfo&&C.stateNode.implementation===N.implementation){o(_,C.sibling),C=u(C,N.children||[]),C.return=_,_=C;break e}else{o(_,C);break}else t(_,C);C=C.sibling}C=Jl(N,_.mode,A),C.return=_,_=C}return m(_);case T:return ee=N._init,gn(_,C,ee(N._payload),A)}if(J(N))return ge(_,C,N,A);if(se(N))return dt(_,C,N,A);si(_,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,C!==null&&C.tag===6?(o(_,C.sibling),C=u(C,N),C.return=_,_=C):(o(_,C),C=Yl(N,_.mode,A),C.return=_,_=C),m(_)):o(_,C)}return gn}var Sr=Ru(!0),Mu=Ru(!1),li=Nn(null),ai=null,Cr=null,nl=null;function rl(){nl=Cr=ai=null}function Du(e,t,o){Go?(me(li,t._currentValue),t._currentValue=o):(me(li,t._currentValue2),t._currentValue2=o)}function ol(e){var t=li.current;ye(li),Go?e._currentValue=t:e._currentValue2=t}function il(e,t,o){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===o)break;e=e.return}}function wr(e,t){ai=e,nl=Cr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(at=!0),e.firstContext=null)}function Ft(e){var t=Go?e._currentValue:e._currentValue2;if(nl!==e)if(e={context:e,memoizedValue:t,next:null},Cr===null){if(ai===null)throw Error(c(308));Cr=e,ai.dependencies={lanes:0,firstContext:e}}else Cr=Cr.next=e;return t}var qn=null;function sl(e){qn===null?qn=[e]:qn.push(e)}function Au(e,t,o,s){var u=t.interleaved;return u===null?(o.next=o,sl(t)):(o.next=u.next,u.next=o),t.interleaved=o,qt(e,s)}function qt(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var Tn=!1;function ll(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Hu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function bn(e,t,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(ne&2)!==0){var u=s.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),s.pending=t,qt(e,o)}return u=s.interleaved,u===null?(t.next=t,sl(s)):(t.next=u.next,u.next=t),s.interleaved=t,qt(e,o)}function ui(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,Gs(e,o)}}function Bu(e,t){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var u=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var m={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?u=f=m:f=f.next=m,o=o.next}while(o!==null);f===null?u=f=t:f=f.next=t}else u=f=t;o={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:s.shared,effects:s.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function ci(e,t,o,s){var u=e.updateQueue;Tn=!1;var f=u.firstBaseUpdate,m=u.lastBaseUpdate,S=u.shared.pending;if(S!==null){u.shared.pending=null;var E=S,b=E.next;E.next=null,m===null?f=b:m.next=b,m=E;var B=e.alternate;B!==null&&(B=B.updateQueue,S=B.lastBaseUpdate,S!==m&&(S===null?B.firstBaseUpdate=b:S.next=b,B.lastBaseUpdate=E))}if(f!==null){var X=u.baseState;m=0,B=b=E=null,S=f;do{var D=S.lane,ve=S.eventTime;if((s&D)===D){B!==null&&(B=B.next={eventTime:ve,lane:0,tag:S.tag,payload:S.payload,callback:S.callback,next:null});e:{var ge=e,dt=S;switch(D=t,ve=o,dt.tag){case 1:if(ge=dt.payload,typeof ge=="function"){X=ge.call(ve,X,D);break e}X=ge;break e;case 3:ge.flags=ge.flags&-65537|128;case 0:if(ge=dt.payload,D=typeof ge=="function"?ge.call(ve,X,D):ge,D==null)break e;X=d({},X,D);break e;case 2:Tn=!0}}S.callback!==null&&S.lane!==0&&(e.flags|=64,D=u.effects,D===null?u.effects=[S]:D.push(S))}else ve={eventTime:ve,lane:D,tag:S.tag,payload:S.payload,callback:S.callback,next:null},B===null?(b=B=ve,E=X):B=B.next=ve,m|=D;if(S=S.next,S===null){if(S=u.shared.pending,S===null)break;D=S,S=D.next,D.next=null,u.lastBaseUpdate=D,u.shared.pending=null}}while(!0);if(B===null&&(E=X),u.baseState=E,u.firstBaseUpdate=b,u.lastBaseUpdate=B,t=u.shared.interleaved,t!==null){u=t;do m|=u.lane,u=u.next;while(u!==t)}else f===null&&(u.shared.lanes=0);Jn|=m,e.lanes=m,e.memoizedState=X}}function Uu(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;to?o:4,e(!0);var s=fl.transition;fl.transition={};try{e(!1),t()}finally{ce=o,fl.transition=s}}function sc(){return bt().memoizedState}function yh(e,t,o){var s=On(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},lc(e))ac(t,o);else if(o=Au(e,t,o,s),o!==null){var u=Ke();zt(o,e,s,u),uc(o,t,s)}}function vh(e,t,o){var s=On(e),u={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(lc(e))ac(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var m=t.lastRenderedState,S=f(m,o);if(u.hasEagerState=!0,u.eagerState=S,At(S,m)){var E=t.interleaved;E===null?(u.next=u,sl(t)):(u.next=E.next,E.next=u),t.interleaved=u;return}}catch{}finally{}o=Au(e,t,u,s),o!==null&&(u=Ke(),zt(o,e,s,u),uc(o,t,s))}}function lc(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function ac(e,t){to=pi=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function uc(e,t,o){if((o&4194240)!==0){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,Gs(e,o)}}var mi={readContext:Ft,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},Sh={readContext:Ft,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:Xu,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,gi(4194308,4,tc.bind(null,t,e),o)},useLayoutEffect:function(e,t){return gi(4194308,4,e,t)},useInsertionEffect:function(e,t){return gi(4,2,e,t)},useMemo:function(e,t){var o=Jt();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var s=Jt();return t=o!==void 0?o(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=yh.bind(null,Ee,e),[s.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:Yu,useDebugValue:vl,useDeferredValue:function(e){return Jt().memoizedState=e},useTransition:function(){var e=Yu(!1),t=e[0];return e=xh.bind(null,e[1]),Jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var s=Ee,u=Jt();if(Se){if(o===void 0)throw Error(c(407));o=o()}else{if(o=t(),Le===null)throw Error(c(349));(Yn&30)!==0||Wu(s,t,o)}u.memoizedState=o;var f={value:o,getSnapshot:t};return u.queue=f,Xu(Ku.bind(null,s,f,e),[e]),s.flags|=2048,oo(9,Gu.bind(null,s,f,o,t),void 0,null),o},useId:function(){var e=Jt(),t=Le.identifierPrefix;if(Se){var o=cn,s=un;o=(s&~(1<<32-Dt(s)-1)).toString(32)+o,t=":"+t+"R"+o,o=no++,0jl&&(t.flags|=128,s=!0,lo(u,!1),t.lanes=4194304)}else{if(!s)if(e=di(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),lo(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Se)return We(t),null}else 2*Pe()-u.renderingStartTime>jl&&o!==1073741824&&(t.flags|=128,s=!0,lo(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(e=u.last,e!==null?e.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Pe(),t.sibling=null,e=_e.current,me(_e,s?e&1|2:e&1),t):(We(t),null);case 22:case 23:return Kl(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(vt&1073741824)!==0&&(We(t),xt&&t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(c(156,t.tag))}function Fh(e,t){switch(Xs(t),t.tag){case 1:return lt(t.type)&&qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Er(),ye(st),ye($e),dl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ul(t),null;case 13:if(ye(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(_e),null;case 4:return Er(),null;case 10:return ol(t.type._context),null;case 22:case 23:return Kl(),null;case 24:return null;default:return null}}var wi=!1,Ge=!1,Th=typeof WeakSet=="function"?WeakSet:Set,H=null;function kr(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){Ce(e,t,s)}else o.current=null}function bl(e,t,o){try{o()}catch(s){Ce(e,t,s)}}var zc=!1;function bh(e,t){for(gr(e.containerInfo),H=t;H!==null;)if(e=H,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,H=t;else for(;H!==null;){e=H;try{var o=e.alternate;if((e.flags&1024)!==0)switch(e.tag){case 0:case 11:case 15:break;case 1:if(o!==null){var s=o.memoizedProps,u=o.memoizedState,f=e.stateNode,m=f.getSnapshotBeforeUpdate(e.elementType===e.type?s:Ut(e.type,s),u);f.__reactInternalSnapshotBeforeUpdate=m}break;case 3:xt&&Pg(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(c(163))}}catch(S){Ce(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,H=t;break}H=e.return}return o=zc,zc=!1,o}function ao(e,t,o){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var u=s=s.next;do{if((u.tag&e)===e){var f=u.destroy;u.destroy=void 0,f!==void 0&&bl(t,o,f)}u=u.next}while(u!==s)}}function _i(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var s=o.create;o.destroy=s()}o=o.next}while(o!==t)}}function zl(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=q(o);break;default:e=o}typeof t=="function"?t(e):t.current=e}}function Pc(e){var t=e.alternate;t!==null&&(e.alternate=null,Pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&cg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Oc(e){return e.tag===5||e.tag===3||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pl(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?Ig(o,e,t):Sg(o,e);else if(s!==4&&(e=e.child,e!==null))for(Pl(e,t,o),e=e.sibling;e!==null;)Pl(e,t,o),e=e.sibling}function Ol(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?Eg(o,e,t):vg(o,e);else if(s!==4&&(e=e.child,e!==null))for(Ol(e,t,o),e=e.sibling;e!==null;)Ol(e,t,o),e=e.sibling}var He=null,jt=!1;function en(e,t,o){for(o=o.child;o!==null;)Ll(e,t,o),o=o.sibling}function Ll(e,t,o){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(ei,o)}catch{}switch(o.tag){case 5:Ge||kr(o,t);case 6:if(xt){var s=He,u=jt;He=null,en(e,t,o),He=s,jt=u,He!==null&&(jt?Ng(He,o.stateNode):kg(He,o.stateNode))}else en(e,t,o);break;case 18:xt&&He!==null&&(jt?Yg(He,o.stateNode):qg(He,o.stateNode));break;case 4:xt?(s=He,u=jt,He=o.stateNode.containerInfo,jt=!0,en(e,t,o),He=s,jt=u):(Ko&&(s=o.stateNode.containerInfo,u=xu(s),As(s,u)),en(e,t,o));break;case 0:case 11:case 14:case 15:if(!Ge&&(s=o.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){u=s=s.next;do{var f=u,m=f.destroy;f=f.tag,m!==void 0&&((f&2)!==0||(f&4)!==0)&&bl(o,t,m),u=u.next}while(u!==s)}en(e,t,o);break;case 1:if(!Ge&&(kr(o,t),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(S){Ce(o,t,S)}en(e,t,o);break;case 21:en(e,t,o);break;case 22:o.mode&1?(Ge=(s=Ge)||o.memoizedState!==null,en(e,t,o),Ge=s):en(e,t,o);break;default:en(e,t,o)}}function Rc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Th),t.forEach(function(s){var u=Hh.bind(null,e,s);o.has(s)||(o.add(s),s.then(u,u))})}}function $t(e,t){var o=t.deletions;if(o!==null)for(var s=0;s";case Ii:return":has("+(Dl(e)||"")+")";case ki:return'[role="'+e.value+'"]';case Fi:return'"'+e.value+'"';case Ni:return'[data-testname="'+e.value+'"]';default:throw Error(c(365))}}function Uc(e,t){var o=[];e=[e,0];for(var s=0;su&&(u=m),s&=~f}if(s=u,s=Pe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Ph(s/1960))-s,10e?16:e,Pn===null)var s=!1;else{if(e=Pn,Pn=null,Oi=0,(ne&6)!==0)throw Error(c(331));var u=ne;for(ne|=4,H=e.current;H!==null;){var f=H,m=f.child;if((H.flags&16)!==0){var S=f.deletions;if(S!==null){for(var E=0;EPe()-Ul?Xn(e,0):Bl|=o),ct(e,t)}function Yc(e,t){t===0&&((e.mode&1)===0?t=1:(t=Xo,Xo<<=1,(Xo&130023424)===0&&(Xo=4194304)));var o=Ke();e=Yt(e,t),e!==null&&(Yr(e,t,o),ct(e,o))}function Ah(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Yc(e,o)}function Hh(e,t){var o=0;switch(e.tag){case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(o=u.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(c(314))}s!==null&&s.delete(t),Yc(e,o)}var Jc;Jc=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)at=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return at=!1,kh(e,t,o);at=(e.flags&131072)!==0}else at=!1,Se&&(t.flags&1048576)!==0&&Tu(t,ri,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;vi(e,t),e=t.pendingProps;var u=mr(t,$e.current);wr(t,o),u=gl(null,t,s,e,u,o);var f=hl();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(s)?(f=!0,Yo(t)):f=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,ll(t),u.updater=xi,t.stateNode=u,u._reactInternals=t,Cl(t,s,e,o),t=Il(null,t,s,!0,f,o)):(t.tag=0,Se&&f&&Js(t),tt(null,t,u,o),t=t.child),t;case 16:s=t.elementType;e:{switch(vi(e,t),e=t.pendingProps,u=s._init,s=u(s._payload),t.type=s,u=t.tag=Uh(s),e=Ut(s,e),u){case 0:t=El(null,t,s,e,o);break e;case 1:t=_c(null,t,s,e,o);break e;case 11:t=yc(null,t,s,e,o);break e;case 14:t=vc(null,t,s,Ut(s.type,e),o);break e}throw Error(c(306,s,""))}return t;case 0:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Ut(s,u),El(e,t,s,u,o);case 1:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Ut(s,u),_c(e,t,s,u,o);case 3:e:{if(Ec(t),e===null)throw Error(c(387));s=t.pendingProps,f=t.memoizedState,u=f.element,Hu(e,t),ci(t,s,null,o);var m=t.memoizedState;if(s=m.element,It&&f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){u=Ir(Error(c(423)),t),t=Ic(e,t,s,o,u);break e}else if(s!==u){u=Ir(Error(c(424)),t),t=Ic(e,t,s,o,u);break e}else for(It&&(Ft=Ug(t.stateNode.containerInfo),yt=t,Se=!0,Bt=null,Jr=!1),o=Mu(t,null,s,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(vr(),s===u){t=pn(e,t,o);break e}tt(e,t,s,o)}t=t.child}return t;case 5:return ju(t),e===null&&el(t),s=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,m=u.children,Ms(s,u)?m=null:f!==null&&Ms(s,f)&&(t.flags|=32),wc(e,t),tt(e,t,m,o),t.child;case 6:return e===null&&el(t),null;case 13:return kc(e,t,o);case 4:return al(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Sr(t,null,s,o):tt(e,t,s,o),t.child;case 11:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Ut(s,u),yc(e,t,s,u,o);case 7:return tt(e,t,t.pendingProps,o),t.child;case 8:return tt(e,t,t.pendingProps.children,o),t.child;case 12:return tt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(s=t.type._context,u=t.pendingProps,f=t.memoizedProps,m=u.value,Du(t,s,m),f!==null)if(Ht(f.value,m)){if(f.children===u.children&&!st.current){t=pn(e,t,o);break e}}else for(f=t.child,f!==null&&(f.return=t);f!==null;){var S=f.dependencies;if(S!==null){m=f.child;for(var E=S.firstContext;E!==null;){if(E.context===s){if(f.tag===1){E=fn(-1,o&-o),E.tag=2;var b=f.updateQueue;if(b!==null){b=b.shared;var B=b.pending;B===null?E.next=E:(E.next=B.next,B.next=E),b.pending=E}}f.lanes|=o,E=f.alternate,E!==null&&(E.lanes|=o),il(f.return,o,t),S.lanes|=o;break}E=E.next}}else if(f.tag===10)m=f.type===t.type?null:f.child;else if(f.tag===18){if(m=f.return,m===null)throw Error(c(341));m.lanes|=o,S=m.alternate,S!==null&&(S.lanes|=o),il(m,o,t),m=f.sibling}else m=f.child;if(m!==null)m.return=f;else for(m=f;m!==null;){if(m===t){m=null;break}if(f=m.sibling,f!==null){f.return=m.return,m=f;break}m=m.return}f=m}tt(e,t,u.children,o),t=t.child}return t;case 9:return u=t.type,s=t.pendingProps.children,wr(t,o),u=Tt(u),s=s(u),t.flags|=1,tt(e,t,s,o),t.child;case 14:return s=t.type,u=Ut(s,t.pendingProps),u=Ut(s.type,u),vc(e,t,s,u,o);case 15:return Sc(e,t,t.type,t.pendingProps,o);case 17:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Ut(s,u),vi(e,t),t.tag=1,lt(s)?(e=!0,Yo(t)):e=!1,wr(t,o),dc(t,s,u),Cl(t,s,u,o),Il(null,t,s,!0,e,o);case 19:return Fc(e,t,o);case 22:return Cc(e,t,o)}throw Error(c(156,t.tag))};function Xc(e,t){return Ks(e,t)}function Bh(e,t,o,s){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,o,s){return new Bh(e,t,o,s)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uh(e){if(typeof e=="function")return ql(e)?1:0;if(e!=null){if(e=e.$$typeof,e===I)return 11;if(e===P)return 14}return 2}function Rn(e,t){var o=e.alternate;return o===null?(o=Ot(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Di(e,t,o,s,u,f){var m=2;if(s=e,typeof e=="function")ql(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case y:return tr(o.children,u,f,t);case v:m=8,u|=8;break;case k:return e=Ot(12,o,t,u|2),e.elementType=k,e.lanes=f,e;case z:return e=Ot(13,o,t,u),e.elementType=z,e.lanes=f,e;case L:return e=Ot(19,o,t,u),e.elementType=L,e.lanes=f,e;case R:return Ai(o,u,f,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:m=10;break e;case w:m=9;break e;case I:m=11;break e;case P:m=14;break e;case T:m=16,s=null;break e}throw Error(c(130,e==null?e:typeof e,""))}return t=Ot(m,o,t,u),t.elementType=e,t.type=s,t.lanes=f,t}function tr(e,t,o,s){return e=Ot(7,e,s,t),e.lanes=o,e}function Ai(e,t,o,s){return e=Ot(22,e,s,t),e.elementType=R,e.lanes=o,e.stateNode={isHidden:!1},e}function Yl(e,t,o){return e=Ot(6,e,null,t),e.lanes=o,e}function Jl(e,t,o){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jh(e,t,o,s,u){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ds,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ws(0),this.expirationTimes=Ws(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ws(0),this.identifierPrefix=s,this.onRecoverableError=u,It&&(this.mutableSourceEagerHydrationData=null)}function Zc(e,t,o,s,u,f,m,S,E){return e=new jh(e,t,o,S,E),t===1?(t=1,f===!0&&(t|=8)):t=0,f=Ot(3,null,null,t),e.current=f,f.stateNode=e,f.memoizedState={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},ll(f),e}function ed(e){if(!e)return Fn;e=e._reactInternals;e:{if(V(e)!==e||e.tag!==1)throw Error(c(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(lt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(c(171))}if(e.tag===1){var o=e.type;if(lt(o))return _u(e,o,t)}return t}function td(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=pe(t),e===null?null:e.stateNode}function nd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o=b&&f>=X&&u<=B&&m<=D){e.splice(t,1);break}else if(s!==b||o.width!==E.width||Dm){if(!(f!==X||o.height!==E.height||Bu)){b>s&&(E.width+=b-s,E.x=s),Bf&&(E.height+=X-f,E.y=f),Do&&(o=m)),mjl&&(t.flags|=128,s=!0,lo(u,!1),t.lanes=4194304)}else{if(!s)if(e=di(f),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),lo(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Se)return We(t),null}else 2*Pe()-u.renderingStartTime>jl&&o!==1073741824&&(t.flags|=128,s=!0,lo(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(e=u.last,e!==null?e.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Pe(),t.sibling=null,e=_e.current,me(_e,s?e&1|2:e&1),t):(We(t),null);case 22:case 23:return Kl(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(vt&1073741824)!==0&&(We(t),xt&&t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(c(156,t.tag))}function Fh(e,t){switch(Xs(t),t.tag){case 1:return lt(t.type)&&qo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Er(),ye(st),ye($e),dl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ul(t),null;case 13:if(ye(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ye(_e),null;case 4:return Er(),null;case 10:return ol(t.type._context),null;case 22:case 23:return Kl(),null;case 24:return null;default:return null}}var wi=!1,Ge=!1,Th=typeof WeakSet=="function"?WeakSet:Set,H=null;function kr(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){Ce(e,t,s)}else o.current=null}function bl(e,t,o){try{o()}catch(s){Ce(e,t,s)}}var zc=!1;function bh(e,t){for(gr(e.containerInfo),H=t;H!==null;)if(e=H,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,H=t;else for(;H!==null;){e=H;try{var o=e.alternate;if((e.flags&1024)!==0)switch(e.tag){case 0:case 11:case 15:break;case 1:if(o!==null){var s=o.memoizedProps,u=o.memoizedState,f=e.stateNode,m=f.getSnapshotBeforeUpdate(e.elementType===e.type?s:Bt(e.type,s),u);f.__reactInternalSnapshotBeforeUpdate=m}break;case 3:xt&&Pg(e.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(c(163))}}catch(S){Ce(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,H=t;break}H=e.return}return o=zc,zc=!1,o}function ao(e,t,o){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var u=s=s.next;do{if((u.tag&e)===e){var f=u.destroy;u.destroy=void 0,f!==void 0&&bl(t,o,f)}u=u.next}while(u!==s)}}function _i(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var s=o.create;o.destroy=s()}o=o.next}while(o!==t)}}function zl(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=q(o);break;default:e=o}typeof t=="function"?t(e):t.current=e}}function Pc(e){var t=e.alternate;t!==null&&(e.alternate=null,Pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&cg(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Oc(e){return e.tag===5||e.tag===3||e.tag===4}function Lc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pl(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?Ig(o,e,t):Sg(o,e);else if(s!==4&&(e=e.child,e!==null))for(Pl(e,t,o),e=e.sibling;e!==null;)Pl(e,t,o),e=e.sibling}function Ol(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?Eg(o,e,t):vg(o,e);else if(s!==4&&(e=e.child,e!==null))for(Ol(e,t,o),e=e.sibling;e!==null;)Ol(e,t,o),e=e.sibling}var He=null,Ut=!1;function Zt(e,t,o){for(o=o.child;o!==null;)Ll(e,t,o),o=o.sibling}function Ll(e,t,o){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(ei,o)}catch{}switch(o.tag){case 5:Ge||kr(o,t);case 6:if(xt){var s=He,u=Ut;He=null,Zt(e,t,o),He=s,Ut=u,He!==null&&(Ut?Ng(He,o.stateNode):kg(He,o.stateNode))}else Zt(e,t,o);break;case 18:xt&&He!==null&&(Ut?Yg(He,o.stateNode):qg(He,o.stateNode));break;case 4:xt?(s=He,u=Ut,He=o.stateNode.containerInfo,Ut=!0,Zt(e,t,o),He=s,Ut=u):(Ko&&(s=o.stateNode.containerInfo,u=xu(s),As(s,u)),Zt(e,t,o));break;case 0:case 11:case 14:case 15:if(!Ge&&(s=o.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){u=s=s.next;do{var f=u,m=f.destroy;f=f.tag,m!==void 0&&((f&2)!==0||(f&4)!==0)&&bl(o,t,m),u=u.next}while(u!==s)}Zt(e,t,o);break;case 1:if(!Ge&&(kr(o,t),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(S){Ce(o,t,S)}Zt(e,t,o);break;case 21:Zt(e,t,o);break;case 22:o.mode&1?(Ge=(s=Ge)||o.memoizedState!==null,Zt(e,t,o),Ge=s):Zt(e,t,o);break;default:Zt(e,t,o)}}function Rc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Th),t.forEach(function(s){var u=Hh.bind(null,e,s);o.has(s)||(o.add(s),s.then(u,u))})}}function jt(e,t){var o=t.deletions;if(o!==null)for(var s=0;s";case Ii:return":has("+(Dl(e)||"")+")";case ki:return'[role="'+e.value+'"]';case Fi:return'"'+e.value+'"';case Ni:return'[data-testname="'+e.value+'"]';default:throw Error(c(365))}}function Uc(e,t){var o=[];e=[e,0];for(var s=0;su&&(u=m),s&=~f}if(s=u,s=Pe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Ph(s/1960))-s,10e?16:e,Pn===null)var s=!1;else{if(e=Pn,Pn=null,Oi=0,(ne&6)!==0)throw Error(c(331));var u=ne;for(ne|=4,H=e.current;H!==null;){var f=H,m=f.child;if((H.flags&16)!==0){var S=f.deletions;if(S!==null){for(var E=0;EPe()-Ul?Xn(e,0):Bl|=o),ct(e,t)}function Yc(e,t){t===0&&((e.mode&1)===0?t=1:(t=Xo,Xo<<=1,(Xo&130023424)===0&&(Xo=4194304)));var o=Ke();e=qt(e,t),e!==null&&(Yr(e,t,o),ct(e,o))}function Ah(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),Yc(e,o)}function Hh(e,t){var o=0;switch(e.tag){case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(o=u.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(c(314))}s!==null&&s.delete(t),Yc(e,o)}var Jc;Jc=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)at=!0;else{if((e.lanes&o)===0&&(t.flags&128)===0)return at=!1,kh(e,t,o);at=(e.flags&131072)!==0}else at=!1,Se&&(t.flags&1048576)!==0&&Tu(t,ri,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;vi(e,t),e=t.pendingProps;var u=mr(t,$e.current);wr(t,o),u=gl(null,t,s,e,u,o);var f=hl();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,lt(s)?(f=!0,Yo(t)):f=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,ll(t),u.updater=xi,t.stateNode=u,u._reactInternals=t,Cl(t,s,e,o),t=Il(null,t,s,!0,f,o)):(t.tag=0,Se&&f&&Js(t),tt(null,t,u,o),t=t.child),t;case 16:s=t.elementType;e:{switch(vi(e,t),e=t.pendingProps,u=s._init,s=u(s._payload),t.type=s,u=t.tag=Uh(s),e=Bt(s,e),u){case 0:t=El(null,t,s,e,o);break e;case 1:t=_c(null,t,s,e,o);break e;case 11:t=yc(null,t,s,e,o);break e;case 14:t=vc(null,t,s,Bt(s.type,e),o);break e}throw Error(c(306,s,""))}return t;case 0:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Bt(s,u),El(e,t,s,u,o);case 1:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Bt(s,u),_c(e,t,s,u,o);case 3:e:{if(Ec(t),e===null)throw Error(c(387));s=t.pendingProps,f=t.memoizedState,u=f.element,Hu(e,t),ci(t,s,null,o);var m=t.memoizedState;if(s=m.element,Et&&f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){u=Ir(Error(c(423)),t),t=Ic(e,t,s,o,u);break e}else if(s!==u){u=Ir(Error(c(424)),t),t=Ic(e,t,s,o,u);break e}else for(Et&&(Nt=Ug(t.stateNode.containerInfo),yt=t,Se=!0,Ht=null,Jr=!1),o=Mu(t,null,s,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(vr(),s===u){t=fn(e,t,o);break e}tt(e,t,s,o)}t=t.child}return t;case 5:return ju(t),e===null&&el(t),s=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,m=u.children,Ms(s,u)?m=null:f!==null&&Ms(s,f)&&(t.flags|=32),wc(e,t),tt(e,t,m,o),t.child;case 6:return e===null&&el(t),null;case 13:return kc(e,t,o);case 4:return al(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Sr(t,null,s,o):tt(e,t,s,o),t.child;case 11:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Bt(s,u),yc(e,t,s,u,o);case 7:return tt(e,t,t.pendingProps,o),t.child;case 8:return tt(e,t,t.pendingProps.children,o),t.child;case 12:return tt(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(s=t.type._context,u=t.pendingProps,f=t.memoizedProps,m=u.value,Du(t,s,m),f!==null)if(At(f.value,m)){if(f.children===u.children&&!st.current){t=fn(e,t,o);break e}}else for(f=t.child,f!==null&&(f.return=t);f!==null;){var S=f.dependencies;if(S!==null){m=f.child;for(var E=S.firstContext;E!==null;){if(E.context===s){if(f.tag===1){E=dn(-1,o&-o),E.tag=2;var b=f.updateQueue;if(b!==null){b=b.shared;var B=b.pending;B===null?E.next=E:(E.next=B.next,B.next=E),b.pending=E}}f.lanes|=o,E=f.alternate,E!==null&&(E.lanes|=o),il(f.return,o,t),S.lanes|=o;break}E=E.next}}else if(f.tag===10)m=f.type===t.type?null:f.child;else if(f.tag===18){if(m=f.return,m===null)throw Error(c(341));m.lanes|=o,S=m.alternate,S!==null&&(S.lanes|=o),il(m,o,t),m=f.sibling}else m=f.child;if(m!==null)m.return=f;else for(m=f;m!==null;){if(m===t){m=null;break}if(f=m.sibling,f!==null){f.return=m.return,m=f;break}m=m.return}f=m}tt(e,t,u.children,o),t=t.child}return t;case 9:return u=t.type,s=t.pendingProps.children,wr(t,o),u=Ft(u),s=s(u),t.flags|=1,tt(e,t,s,o),t.child;case 14:return s=t.type,u=Bt(s,t.pendingProps),u=Bt(s.type,u),vc(e,t,s,u,o);case 15:return Sc(e,t,t.type,t.pendingProps,o);case 17:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:Bt(s,u),vi(e,t),t.tag=1,lt(s)?(e=!0,Yo(t)):e=!1,wr(t,o),dc(t,s,u),Cl(t,s,u,o),Il(null,t,s,!0,e,o);case 19:return Fc(e,t,o);case 22:return Cc(e,t,o)}throw Error(c(156,t.tag))};function Xc(e,t){return Ks(e,t)}function Bh(e,t,o,s){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,o,s){return new Bh(e,t,o,s)}function ql(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uh(e){if(typeof e=="function")return ql(e)?1:0;if(e!=null){if(e=e.$$typeof,e===I)return 11;if(e===P)return 14}return 2}function Rn(e,t){var o=e.alternate;return o===null?(o=Pt(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Di(e,t,o,s,u,f){var m=2;if(s=e,typeof e=="function")ql(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case y:return tr(o.children,u,f,t);case v:m=8,u|=8;break;case k:return e=Pt(12,o,t,u|2),e.elementType=k,e.lanes=f,e;case z:return e=Pt(13,o,t,u),e.elementType=z,e.lanes=f,e;case L:return e=Pt(19,o,t,u),e.elementType=L,e.lanes=f,e;case R:return Ai(o,u,f,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:m=10;break e;case w:m=9;break e;case I:m=11;break e;case P:m=14;break e;case T:m=16,s=null;break e}throw Error(c(130,e==null?e:typeof e,""))}return t=Pt(m,o,t,u),t.elementType=e,t.type=s,t.lanes=f,t}function tr(e,t,o,s){return e=Pt(7,e,s,t),e.lanes=o,e}function Ai(e,t,o,s){return e=Pt(22,e,s,t),e.elementType=R,e.lanes=o,e.stateNode={isHidden:!1},e}function Yl(e,t,o){return e=Pt(6,e,null,t),e.lanes=o,e}function Jl(e,t,o){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jh(e,t,o,s,u){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Ds,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ws(0),this.expirationTimes=Ws(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ws(0),this.identifierPrefix=s,this.onRecoverableError=u,Et&&(this.mutableSourceEagerHydrationData=null)}function Zc(e,t,o,s,u,f,m,S,E){return e=new jh(e,t,o,S,E),t===1?(t=1,f===!0&&(t|=8)):t=0,f=Pt(3,null,null,t),e.current=f,f.stateNode=e,f.memoizedState={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},ll(f),e}function ed(e){if(!e)return Fn;e=e._reactInternals;e:{if(V(e)!==e||e.tag!==1)throw Error(c(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(lt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(c(171))}if(e.tag===1){var o=e.type;if(lt(o))return _u(e,o,t)}return t}function td(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=pe(t),e===null?null:e.stateNode}function nd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o=b&&f>=X&&u<=B&&m<=D){e.splice(t,1);break}else if(s!==b||o.width!==E.width||Dm){if(!(f!==X||o.height!==E.height||Bu)){b>s&&(E.width+=b-s,E.x=s),Bf&&(E.height+=X-f,E.y=f),Do&&(o=m)),m ")+`
No matching component was found for:
- `)+e.join(" > ")}return null},i.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return q(e.child.stateNode);default:return e.child.stateNode}},i.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:p.ReactCurrentDispatcher,findHostInstanceByFiber:$h,findFiberByHostInstance:e.findFiberByHostInstance||Vh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{ei=t.inject(e),Qt=t}catch{}e=!!t.checkDCE}}return e},i.isAlreadyRendering=function(){return!1},i.observeVisibleRects=function(e,t,o,s){if(!Gr)throw Error(c(363));e=Al(e,t);var u=yg(e,o,s).disconnect;return{disconnect:function(){u()}}},i.registerMutableSourceForHydration=function(e,t){var o=t._getVersion;o=o(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,o]:e.mutableSourceEagerHydrationData.push(t,o)},i.runWithPriority=function(e,t){var o=ce;try{return ce=e,t()}finally{ce=o}},i.shouldError=function(){return null},i.shouldSuspend=function(){return!1},i.updateContainer=function(e,t,o,s){var u=t.current,f=Ke(),m=On(u);return o=ed(o),t.context===null?t.context=o:t.pendingContext=o,t=fn(f,m),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=bn(u,t,m),e!==null&&(Pt(e,u,m,f),ui(e,u,m)),m},i}});var wf=mn((Ty,Cf)=>{"use strict";Cf.exports=Sf()});var Vo=re(oe());import*as Vr from"mshell";import*as Or from"mshell";var Y=r=>typeof r=="string",ho=()=>{let r,n,i=new Promise((a,l)=>{r=a,n=l});return i.resolve=r,i.reject=n,i},xd=r=>r==null?"":""+r,pm=(r,n,i)=>{r.forEach(a=>{n[a]&&(i[a]=n[a])})},gm=/###/g,yd=r=>r&&r.indexOf("###")>-1?r.replace(gm,"."):r,vd=r=>!r||Y(r),mo=(r,n,i)=>{let a=Y(n)?n.split("."):n,l=0;for(;l{let{obj:a,k:l}=mo(r,n,Object);if(a!==void 0||n.length===1){a[l]=i;return}let d=n[n.length-1],c=n.slice(0,n.length-1),p=mo(r,c,Object);for(;p.obj===void 0&&c.length;)d=`${c[c.length-1]}.${d}`,c=c.slice(0,c.length-1),p=mo(r,c,Object),p?.obj&&typeof p.obj[`${p.k}.${d}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${d}`]=i},hm=(r,n,i,a)=>{let{obj:l,k:d}=mo(r,n,Object);l[d]=l[d]||[],l[d].push(i)},Vi=(r,n)=>{let{obj:i,k:a}=mo(r,n);if(i&&Object.prototype.hasOwnProperty.call(i,a))return i[a]},mm=(r,n,i)=>{let a=Vi(r,i);return a!==void 0?a:Vi(n,i)},Nd=(r,n,i)=>{for(let a in n)a!=="__proto__"&&a!=="constructor"&&(a in r?Y(r[a])||r[a]instanceof String||Y(n[a])||n[a]instanceof String?i&&(r[a]=n[a]):Nd(r[a],n[a],i):r[a]=n[a]);return r},nr=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),xm={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},ym=r=>Y(r)?r.replace(/[&<>"'\/]/g,n=>xm[n]):r,sa=class{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){let i=this.regExpMap.get(n);if(i!==void 0)return i;let a=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,a),this.regExpQueue.push(n),a}},vm=[" ",",","?","!",";"],Sm=new sa(20),Cm=(r,n,i)=>{n=n||"",i=i||"";let a=vm.filter(c=>n.indexOf(c)<0&&i.indexOf(c)<0);if(a.length===0)return!0;let l=Sm.getRegExp(`(${a.map(c=>c==="?"?"\\?":c).join("|")})`),d=!l.test(r);if(!d){let c=r.indexOf(i);c>0&&!l.test(r.substring(0,c))&&(d=!0)}return d},la=(r,n,i=".")=>{if(!r)return;if(r[n])return Object.prototype.hasOwnProperty.call(r,n)?r[n]:void 0;let a=n.split(i),l=r;for(let d=0;d-1&&gr?.replace(/_/g,"-"),wm={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,n){console?.[r]?.apply?.(console,n)}},aa=class r{constructor(n,i={}){this.init(n,i)}init(n,i={}){this.prefix=i.prefix||"i18next:",this.logger=n||wm,this.options=i,this.debug=i.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,i,a,l){return l&&!this.debug?null:(Y(n[0])&&(n[0]=`${a}${this.prefix} ${n[0]}`),this.logger[i](n))}create(n){return new r(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new r(this.logger,n)}},nn=new aa,br=class{constructor(){this.observers={}}on(n,i){return n.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let l=this.observers[a].get(i)||0;this.observers[a].set(i,l+1)}),this}off(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n].delete(i)}}emit(n,...i){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([l,d])=>{for(let c=0;c{for(let c=0;c-1&&this.options.ns.splice(i,1)}getResource(n,i,a,l={}){let d=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,c=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,p;n.indexOf(".")>-1?p=n.split("."):(p=[n,i],a&&(Array.isArray(a)?p.push(...a):Y(a)&&d?p.push(...a.split(d)):p.push(a)));let g=Vi(this.data,p);return!g&&!i&&!a&&n.indexOf(".")>-1&&(n=p[0],i=p[1],a=p.slice(2).join(".")),g||!c||!Y(a)?g:la(this.data?.[n]?.[i],a,d)}addResource(n,i,a,l,d={silent:!1}){let c=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,p=[n,i];a&&(p=p.concat(c?a.split(c):a)),n.indexOf(".")>-1&&(p=n.split("."),l=i,i=p[1]),this.addNamespaces(i),Sd(this.data,p,l),d.silent||this.emit("added",n,i,a,l)}addResources(n,i,a,l={silent:!1}){for(let d in a)(Y(a[d])||Array.isArray(a[d]))&&this.addResource(n,i,d,a[d],{silent:!0});l.silent||this.emit("added",n,i,a)}addResourceBundle(n,i,a,l,d,c={silent:!1,skipCopy:!1}){let p=[n,i];n.indexOf(".")>-1&&(p=n.split("."),l=a,a=i,i=p[1]),this.addNamespaces(i);let g=Vi(this.data,p)||{};c.skipCopy||(a=JSON.parse(JSON.stringify(a))),l?Nd(g,a,d):g={...g,...a},Sd(this.data,p,g),c.silent||this.emit("added",n,i,a)}removeResourceBundle(n,i){this.hasResourceBundle(n,i)&&delete this.data[n][i],this.removeNamespaces(i),this.emit("removed",n,i)}hasResourceBundle(n,i){return this.getResource(n,i)!==void 0}getResourceBundle(n,i){return i||(i=this.options.defaultNS),this.getResource(n,i)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){let i=this.getDataByLanguage(n);return!!(i&&Object.keys(i)||[]).find(l=>i[l]&&Object.keys(i[l]).length>0)}toJSON(){return this.data}},Fd={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,n,i,a,l){return r.forEach(d=>{n=this.processors[d]?.process(n,i,a,l)??n}),n}},Td=Symbol("i18next/PATH_KEY");function _m(){let r=[],n=Object.create(null),i;return n.get=(a,l)=>(i?.revoke?.(),l===Td?r:(r.push(l),i=Proxy.revocable(a,n),i.proxy)),Proxy.revocable(Object.create(null),n).proxy}function Gi(r,n){let{[Td]:i}=r(_m());return i.join(n?.keySeparator??".")}var Cd={},ra=r=>!Y(r)&&typeof r!="boolean"&&typeof r!="number",Ki=class r extends br{constructor(n,i={}){super(),pm(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nn.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,i={interpolation:{}}){let a={...i};if(n==null)return!1;let l=this.resolve(n,a);if(l?.res===void 0)return!1;let d=ra(l.res);return!(a.returnObjects===!1&&d)}extractFromKey(n,i){let a=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");let l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,d=i.ns||this.options.defaultNS||[],c=a&&n.indexOf(a)>-1,p=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!Cm(n,a,l);if(c&&!p){let g=n.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:n,namespaces:Y(d)?[d]:d};let x=n.split(a);(a!==l||a===l&&this.options.ns.indexOf(x[0])>-1)&&(d=x.shift()),n=x.join(l)}return{key:n,namespaces:Y(d)?[d]:d}}translate(n,i,a){let l=typeof i=="object"?{...i}:i;if(typeof l!="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),typeof l=="object"&&(l={...l}),l||(l={}),n==null)return"";typeof n=="function"&&(n=Gi(n,{...this.options,...l})),Array.isArray(n)||(n=[String(n)]);let d=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,{key:p,namespaces:g}=this.extractFromKey(n[n.length-1],l),x=g[g.length-1],y=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");let v=l.lng||this.language,k=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return k?d?{res:`${x}${y}${p}`,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(l)}:`${x}${y}${p}`:d?{res:p,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(l)}:p;let F=this.resolve(n,l),w=F?.res,I=F?.usedKey||p,z=F?.exactUsedKey||p,L=["[object Number]","[object Function]","[object RegExp]"],P=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,R=l.count!==void 0&&!Y(l.count),K=r.hasDefaultValue(l),se=R?this.pluralResolver.getSuffix(v,l.count,l):"",le=l.ordinal&&R?this.pluralResolver.getSuffix(v,l.count,{ordinal:!1}):"",Ne=R&&!l.ordinal&&l.count===0,V=Ne&&l[`defaultValue${this.options.pluralSeparator}zero`]||l[`defaultValue${se}`]||l[`defaultValue${le}`]||l.defaultValue,Q=w;T&&!w&&K&&(Q=V);let te=ra(Q),pe=Object.prototype.toString.apply(Q);if(T&&Q&&te&&L.indexOf(pe)<0&&!(Y(P)&&Array.isArray(Q))){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,Q,{...l,ns:g}):`key '${p} (${this.language})' returned an object instead of string.`;return d?(F.res=ue,F.usedParams=this.getUsedParamsDetails(l),F):ue}if(c){let ue=Array.isArray(Q),j=ue?[]:{},J=ue?z:I;for(let q in Q)if(Object.prototype.hasOwnProperty.call(Q,q)){let je=`${J}${c}${q}`;K&&!w?j[q]=this.translate(je,{...l,defaultValue:ra(V)?V[q]:void 0,joinArrays:!1,ns:g}):j[q]=this.translate(je,{...l,joinArrays:!1,ns:g}),j[q]===je&&(j[q]=Q[q])}w=j}}else if(T&&Y(P)&&Array.isArray(w))w=w.join(P),w&&(w=this.extendTranslation(w,n,l,a));else{let ue=!1,j=!1;!this.isValidLookup(w)&&K&&(ue=!0,w=V),this.isValidLookup(w)||(j=!0,w=p);let q=(l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:w,je=K&&V!==w&&this.options.updateMissing;if(j||ue||je){if(this.logger.log(je?"updateKey":"missingKey",v,x,p,je?V:w),c){let et=this.resolve(p,{...l,keySeparator:!1});et&&et.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 Wn=[],gr=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&gr&&gr[0])for(let et=0;et{let Wr=K&&kn!==w?kn:q;this.options.missingKeyHandler?this.options.missingKeyHandler(et,x,Dt,Wr,je,l):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(et,x,Dt,Wr,je,l),this.emit("missingKey",et,x,Dt,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?Wn.forEach(et=>{let Dt=this.pluralResolver.getSuffixes(et,l);Ne&&l[`defaultValue${this.options.pluralSeparator}zero`]&&Dt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Dt.push(`${this.options.pluralSeparator}zero`),Dt.forEach(kn=>{Wo([et],p+kn,l[`defaultValue${kn}`]||V)})}):Wo(Wn,p,V))}w=this.extendTranslation(w,n,l,F,a),j&&w===p&&this.options.appendNamespaceToMissingKey&&(w=`${x}${y}${p}`),(j||ue)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${x}${y}${p}`:p,ue?w:void 0,l))}return d?(F.res=w,F.usedParams=this.getUsedParamsDetails(l),F):w}extendTranslation(n,i,a,l,d){if(this.i18nFormat?.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});let g=Y(n)&&(a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),x;if(g){let v=n.match(this.interpolator.nestingRegexp);x=v&&v.length}let y=a.replace&&!Y(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),n=this.interpolator.interpolate(n,y,a.lng||this.language||l.usedLng,a),g){let v=n.match(this.interpolator.nestingRegexp),k=v&&v.length;xd?.[0]===v[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${i[0]}`),null):this.translate(...v,i),a)),a.interpolation&&this.interpolator.reset()}let c=a.postProcess||this.options.postProcess,p=Y(c)?[c]:c;return n!=null&&p?.length&&a.applyPostProcessor!==!1&&(n=Fd.handle(p,n,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),n}resolve(n,i={}){let a,l,d,c,p;return Y(n)&&(n=[n]),n.forEach(g=>{if(this.isValidLookup(a))return;let x=this.extractFromKey(g,i),y=x.key;l=y;let v=x.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));let k=i.count!==void 0&&!Y(i.count),F=k&&!i.ordinal&&i.count===0,w=i.context!==void 0&&(Y(i.context)||typeof i.context=="number")&&i.context!=="",I=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);v.forEach(z=>{this.isValidLookup(a)||(p=z,!Cd[`${I[0]}-${z}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(p)&&(Cd[`${I[0]}-${z}`]=!0,this.logger.warn(`key "${l}" for languages "${I.join(", ")}" won't get resolved as namespace "${p}" 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!!!")),I.forEach(L=>{if(this.isValidLookup(a))return;c=L;let P=[y];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(P,y,L,z,i);else{let R;k&&(R=this.pluralResolver.getSuffix(L,i.count,i));let K=`${this.options.pluralSeparator}zero`,se=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(k&&(i.ordinal&&R.indexOf(se)===0&&P.push(y+R.replace(se,this.options.pluralSeparator)),P.push(y+R),F&&P.push(y+K)),w){let le=`${y}${this.options.contextSeparator||"_"}${i.context}`;P.push(le),k&&(i.ordinal&&R.indexOf(se)===0&&P.push(le+R.replace(se,this.options.pluralSeparator)),P.push(le+R),F&&P.push(le+K))}}let T;for(;T=P.pop();)this.isValidLookup(a)||(d=T,a=this.getResource(L,z,T,i))}))})}),{res:a,usedKey:l,exactUsedKey:d,usedLng:c,usedNS:p}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,i,a,l={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(n,i,a,l):this.resourceStore.getResource(n,i,a,l)}getUsedParamsDetails(n={}){let i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=n.replace&&!Y(n.replace),l=a?n.replace:n;if(a&&typeof n.count<"u"&&(l.count=n.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!a){l={...l};for(let d of i)delete l[d]}return l}static hasDefaultValue(n){let i="defaultValue";for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)&&i===a.substring(0,i.length)&&n[a]!==void 0)return!0;return!1}},Qi=class{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nn.create("languageUtils")}getScriptPartFromCode(n){if(n=xo(n),!n||n.indexOf("-")<0)return null;let i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(n){if(n=xo(n),!n||n.indexOf("-")<0)return n;let i=n.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(n){if(Y(n)&&n.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(n)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let i;return n.forEach(a=>{if(i)return;let l=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(l))&&(i=l)}),!i&&this.options.supportedLngs&&n.forEach(a=>{if(i)return;let l=this.getScriptPartFromCode(a);if(this.isSupportedCode(l))return i=l;let d=this.getLanguagePartFromCode(a);if(this.isSupportedCode(d))return i=d;i=this.options.supportedLngs.find(c=>{if(c===d)return c;if(!(c.indexOf("-")<0&&d.indexOf("-")<0)&&(c.indexOf("-")>0&&d.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===d||c.indexOf(d)===0&&d.length>1))return c})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),Y(n)&&(n=[n]),Array.isArray(n))return n;if(!i)return n.default||[];let a=n[i];return a||(a=n[this.getScriptPartFromCode(i)]),a||(a=n[this.formatLanguageCode(i)]),a||(a=n[this.getLanguagePartFromCode(i)]),a||(a=n.default),a||[]}toResolveHierarchy(n,i){let a=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],n),l=[],d=c=>{c&&(this.isSupportedCode(c)?l.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return Y(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(n))):Y(n)&&d(this.formatLanguageCode(n)),a.forEach(c=>{l.indexOf(c)<0&&d(this.formatLanguageCode(c))}),l}},wd={zero:0,one:1,two:2,few:3,many:4,other:5},_d={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},ua=class{constructor(n,i={}){this.languageUtils=n,this.options=i,this.logger=nn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(n,i={}){let a=xo(n==="dev"?"en":n),l=i.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:a,type:l});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let c;try{c=new Intl.PluralRules(a,{type:l})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),_d;if(!n.match(/-|_/))return _d;let g=this.languageUtils.getLanguagePartFromCode(n);c=this.getRule(g,i)}return this.pluralRulesCache[d]=c,c}needsPlural(n,i={}){let a=this.getRule(n,i);return a||(a=this.getRule("dev",i)),a?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(n,i,a={}){return this.getSuffixes(n,a).map(l=>`${i}${l}`)}getSuffixes(n,i={}){let a=this.getRule(n,i);return a||(a=this.getRule("dev",i)),a?a.resolvedOptions().pluralCategories.sort((l,d)=>wd[l]-wd[d]).map(l=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${l}`):[]}getSuffix(n,i,a={}){let l=this.getRule(n,a);return l?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${l.select(i)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",i,a))}},Ed=(r,n,i,a=".",l=!0)=>{let d=mm(r,n,i);return!d&&l&&Y(i)&&(d=la(r,i,a),d===void 0&&(d=la(n,i,a))),d},oa=r=>r.replace(/\$/g,"$$$$"),qi=class{constructor(n={}){this.logger=nn.create("interpolator"),this.options=n,this.format=n?.interpolation?.format||(i=>i),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});let{escape:i,escapeValue:a,useRawValueToEscape:l,prefix:d,prefixEscaped:c,suffix:p,suffixEscaped:g,formatSeparator:x,unescapeSuffix:y,unescapePrefix:v,nestingPrefix:k,nestingPrefixEscaped:F,nestingSuffix:w,nestingSuffixEscaped:I,nestingOptionsSeparator:z,maxReplaces:L,alwaysFormat:P}=n.interpolation;this.escape=i!==void 0?i:ym,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=d?nr(d):c||"{{",this.suffix=p?nr(p):g||"}}",this.formatSeparator=x||",",this.unescapePrefix=y?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=k?nr(k):F||nr("$t("),this.nestingSuffix=w?nr(w):I||nr(")"),this.nestingOptionsSeparator=z||",",this.maxReplaces=L||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let n=(i,a)=>i?.source===a?(i.lastIndex=0,i):new RegExp(a,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(n,i,a,l){let d,c,p,g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},x=F=>{if(F.indexOf(this.formatSeparator)<0){let L=Ed(i,g,F,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,a,{...l,...i,interpolationkey:F}):L}let w=F.split(this.formatSeparator),I=w.shift().trim(),z=w.join(this.formatSeparator).trim();return this.format(Ed(i,g,I,this.options.keySeparator,this.options.ignoreJSONStructure),z,a,{...l,...i,interpolationkey:I})};this.resetRegExp();let y=l?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=l?.interpolation?.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:F=>oa(F)},{regex:this.regexp,safeValue:F=>this.escapeValue?oa(this.escape(F)):oa(F)}].forEach(F=>{for(p=0;d=F.regex.exec(n);){let w=d[1].trim();if(c=x(w),c===void 0)if(typeof y=="function"){let z=y(n,d,l);c=Y(z)?z:""}else if(l&&Object.prototype.hasOwnProperty.call(l,w))c="";else if(v){c=d[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${n}`),c="";else!Y(c)&&!this.useRawValueToEscape&&(c=xd(c));let I=F.safeValue(c);if(n=n.replace(d[0],I),v?(F.regex.lastIndex+=c.length,F.regex.lastIndex-=d[0].length):F.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),n}nest(n,i,a={}){let l,d,c,p=(g,x)=>{let y=this.nestingOptionsSeparator;if(g.indexOf(y)<0)return g;let v=g.split(new RegExp(`${nr(y)}[ ]*{`)),k=`{${v[1]}`;g=v[0],k=this.interpolate(k,c);let F=k.match(/'/g),w=k.match(/"/g);((F?.length??0)%2===0&&!w||(w?.length??0)%2!==0)&&(k=k.replace(/'/g,'"'));try{c=JSON.parse(k),x&&(c={...x,...c})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,I),`${g}${y}${k}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,g};for(;l=this.nestingRegexp.exec(n);){let g=[];c={...a},c=c.replace&&!Y(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;let x=/{.*}/.test(l[1])?l[1].lastIndexOf("}")+1:l[1].indexOf(this.formatSeparator);if(x!==-1&&(g=l[1].slice(x).split(this.formatSeparator).map(y=>y.trim()).filter(Boolean),l[1]=l[1].slice(0,x)),d=i(p.call(this,l[1].trim(),c),c),d&&l[0]===n&&!Y(d))return d;Y(d)||(d=xd(d)),d||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${n}`),d=""),g.length&&(d=g.reduce((y,v)=>this.format(y,v,a.lng,{...a,interpolationkey:l[1].trim()}),d.trim())),n=n.replace(l[0],d),this.regexp.lastIndex=0}return n}},Em=r=>{let n=r.toLowerCase().trim(),i={};if(r.indexOf("(")>-1){let a=r.split("(");n=a[0].toLowerCase().trim();let l=a[1].substring(0,a[1].length-1);n==="currency"&&l.indexOf(":")<0?i.currency||(i.currency=l.trim()):n==="relativetime"&&l.indexOf(":")<0?i.range||(i.range=l.trim()):l.split(";").forEach(c=>{if(c){let[p,...g]=c.split(":"),x=g.join(":").trim().replace(/^'+|'+$/g,""),y=p.trim();i[y]||(i[y]=x),x==="false"&&(i[y]=!1),x==="true"&&(i[y]=!0),isNaN(x)||(i[y]=parseInt(x,10))}})}return{formatName:n,formatOptions:i}},Id=r=>{let n={};return(i,a,l)=>{let d=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(d={...d,[l.interpolationkey]:void 0});let c=a+JSON.stringify(d),p=n[c];return p||(p=r(xo(a),l),n[c]=p),p(i)}},Im=r=>(n,i,a)=>r(xo(i),a)(n),ca=class{constructor(n={}){this.logger=nn.create("formatter"),this.options=n,this.init(n)}init(n,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";let a=i.cacheInBuiltFormats?Id:Im;this.formats={number:a((l,d)=>{let c=new Intl.NumberFormat(l,{...d});return p=>c.format(p)}),currency:a((l,d)=>{let c=new Intl.NumberFormat(l,{...d,style:"currency"});return p=>c.format(p)}),datetime:a((l,d)=>{let c=new Intl.DateTimeFormat(l,{...d});return p=>c.format(p)}),relativetime:a((l,d)=>{let c=new Intl.RelativeTimeFormat(l,{...d});return p=>c.format(p,d.range||"day")}),list:a((l,d)=>{let c=new Intl.ListFormat(l,{...d});return p=>c.format(p)})}}add(n,i){this.formats[n.toLowerCase().trim()]=i}addCached(n,i){this.formats[n.toLowerCase().trim()]=Id(i)}format(n,i,a,l={}){let d=i.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(p=>p.indexOf(")")>-1)){let p=d.findIndex(g=>g.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,p)].join(this.formatSeparator)}return d.reduce((p,g)=>{let{formatName:x,formatOptions:y}=Em(g);if(this.formats[x]){let v=p;try{let k=l?.formatParams?.[l.interpolationkey]||{},F=k.locale||k.lng||l.locale||l.lng||a;v=this.formats[x](p,F,{...y,...l,...k})}catch(k){this.logger.warn(k)}return v}else this.logger.warn(`there was no format function for ${x}`);return p},n)}},km=(r,n)=>{r.pending[n]!==void 0&&(delete r.pending[n],r.pendingCount--)},da=class extends br{constructor(n,i,a,l={}){super(),this.backend=n,this.store=i,this.services=a,this.languageUtils=a.languageUtils,this.options=l,this.logger=nn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(a,l.backend,l)}queueLoad(n,i,a,l){let d={},c={},p={},g={};return n.forEach(x=>{let y=!0;i.forEach(v=>{let k=`${x}|${v}`;!a.reload&&this.store.hasResourceBundle(x,v)?this.state[k]=2:this.state[k]<0||(this.state[k]===1?c[k]===void 0&&(c[k]=!0):(this.state[k]=1,y=!1,c[k]===void 0&&(c[k]=!0),d[k]===void 0&&(d[k]=!0),g[v]===void 0&&(g[v]=!0)))}),y||(p[x]=!0)}),(Object.keys(d).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(c),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(g)}}loaded(n,i,a){let l=n.split("|"),d=l[0],c=l[1];i&&this.emit("failedLoading",d,c,i),!i&&a&&this.store.addResourceBundle(d,c,a,void 0,void 0,{skipCopy:!0}),this.state[n]=i?-1:2,i&&a&&(this.state[n]=0);let p={};this.queue.forEach(g=>{hm(g.loaded,[d],c),km(g,n),i&&g.errors.push(i),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(x=>{p[x]||(p[x]={});let y=g.loaded[x];y.length&&y.forEach(v=>{p[x][v]===void 0&&(p[x][v]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(g=>!g.done)}read(n,i,a,l=0,d=this.retryTimeout,c){if(!n.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:i,fcName:a,tried:l,wait:d,callback:c});return}this.readingCalls++;let p=(x,y)=>{if(this.readingCalls--,this.waitingReads.length>0){let v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(x&&y&&l{this.read.call(this,n,i,a,l+1,d*2,c)},d);return}c(x,y)},g=this.backend[a].bind(this.backend);if(g.length===2){try{let x=g(n,i);x&&typeof x.then=="function"?x.then(y=>p(null,y)).catch(p):p(null,x)}catch(x){p(x)}return}return g(n,i,p)}prepareLoading(n,i,a={},l){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();Y(n)&&(n=this.languageUtils.toResolveHierarchy(n)),Y(i)&&(i=[i]);let d=this.queueLoad(n,i,a,l);if(!d.toLoad.length)return d.pending.length||l(),null;d.toLoad.forEach(c=>{this.loadOne(c)})}load(n,i,a){this.prepareLoading(n,i,{},a)}reload(n,i,a){this.prepareLoading(n,i,{reload:!0},a)}loadOne(n,i=""){let a=n.split("|"),l=a[0],d=a[1];this.read(l,d,"read",void 0,void 0,(c,p)=>{c&&this.logger.warn(`${i}loading namespace ${d} for language ${l} failed`,c),!c&&p&&this.logger.log(`${i}loaded namespace ${d} for language ${l}`,p),this.loaded(n,c,p)})}saveMissing(n,i,a,l,d,c={},p=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${a}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend?.create){let g={...c,isUpdate:d},x=this.backend.create.bind(this.backend);if(x.length<6)try{let y;x.length===5?y=x(n,i,a,l,g):y=x(n,i,a,l),y&&typeof y.then=="function"?y.then(v=>p(null,v)).catch(p):p(null,y)}catch(y){p(y)}else x(n,i,a,l,p,g)}!n||!n[0]||this.store.addResource(n[0],i,a,l)}}},ia=()=>({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:r=>{let n={};if(typeof r[1]=="object"&&(n=r[1]),Y(r[1])&&(n.defaultValue=r[1]),Y(r[2])&&(n.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){let i=r[3]||r[2];Object.keys(i).forEach(a=>{n[a]=i[a]})}return n},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),kd=r=>(Y(r.ns)&&(r.ns=[r.ns]),Y(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),Y(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs?.indexOf?.("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r),$i=()=>{},Nm=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(i=>{typeof r[i]=="function"&&(r[i]=r[i].bind(r))})},bd="__i18next_supportNoticeShown",Fm=()=>typeof globalThis<"u"&&!!globalThis[bd],Tm=()=>{typeof globalThis<"u"&&(globalThis[bd]=!0)},bm=r=>!!(r?.modules?.backend?.name?.indexOf("Locize")>0||r?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||r?.options?.backend?.backends&&r.options.backend.backends.some(n=>n?.name?.indexOf("Locize")>0||n?.constructor?.name?.indexOf("Locize")>0)||r?.options?.backend?.projectId||r?.options?.backend?.backendOptions&&r.options.backend.backendOptions.some(n=>n?.projectId)),fa=class r extends br{constructor(n={},i){if(super(),this.options=kd(n),this.services={},this.logger=nn,this.modules={external:[]},Nm(this),i&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,i),this;setTimeout(()=>{this.init(n,i)},0)}}init(n={},i){this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),n.defaultNS==null&&n.ns&&(Y(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let a=ia();this.options={...a,...this.options,...kd(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!bm(this)&&!Fm()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("\u{1F310} i18next is maintained with support from Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}"),Tm());let l=x=>x?typeof x=="function"?new x:x:null;if(!this.options.isClone){this.modules.logger?nn.init(l(this.modules.logger),this.options):nn.init(null,this.options);let x;this.modules.formatter?x=this.modules.formatter:x=ca;let y=new Qi(this.options);this.store=new Wi(this.options.resources,this.options);let v=this.services;v.logger=nn,v.resourceStore=this.store,v.languageUtils=y,v.pluralResolver=new ua(y,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.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"),x&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(v.formatter=l(x),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new qi(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new da(l(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(F,...w)=>{this.emit(F,...w)}),this.modules.languageDetector&&(v.languageDetector=l(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=l(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Ki(this.services,this.options),this.translator.on("*",(F,...w)=>{this.emit(F,...w)}),this.modules.external.forEach(F=>{F.init&&F.init(this)})}if(this.format=this.options.interpolation.format,i||(i=$i),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(x=>{this[x]=(...y)=>this.store[x](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(x=>{this[x]=(...y)=>(this.store[x](...y),this)});let p=ho(),g=()=>{let x=(y,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(v),i(y,v)};if(this.languages&&!this.isInitialized)return x(null,this.t.bind(this));this.changeLanguage(this.options.lng,x)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),p}loadResources(n,i=$i){let a=i,l=Y(n)?n:this.language;if(typeof n=="function"&&(a=n),!this.options.resources||this.options.partialBundledLanguages){if(l?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();let d=[],c=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(x=>{x!=="cimode"&&d.indexOf(x)<0&&d.push(x)})};l?c(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>c(g)),this.options.preload?.forEach?.(p=>c(p)),this.services.backendConnector.load(d,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(p)})}else a(null)}reloadResources(n,i,a){let l=ho();return typeof n=="function"&&(a=n,n=void 0),typeof i=="function"&&(a=i,i=void 0),n||(n=this.languages),i||(i=this.options.ns),a||(a=$i),this.services.backendConnector.reload(n,i,d=>{l.resolve(),a(d)}),l}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Fd.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let i=0;i-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,i){this.isLanguageChangingTo=n;let a=ho();this.emit("languageChanging",n);let l=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},d=(p,g)=>{g?this.isLanguageChangingTo===n&&(l(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,a.resolve((...x)=>this.t(...x)),i&&i(p,(...x)=>this.t(...x))},c=p=>{!n&&!p&&this.services.languageDetector&&(p=[]);let g=Y(p)?p:p&&p[0],x=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(Y(p)?[p]:p);x&&(this.language||l(x),this.translator.language||this.translator.changeLanguage(x),this.services.languageDetector?.cacheUserLanguage?.(x)),this.loadResources(x,y=>{d(y,x)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(n),a}getFixedT(n,i,a){let l=(d,c,...p)=>{let g;typeof c!="object"?g=this.options.overloadTranslationOptionHandler([d,c].concat(p)):g={...c},g.lng=g.lng||l.lng,g.lngs=g.lngs||l.lngs,g.ns=g.ns||l.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||a||l.keyPrefix);let x=this.options.keySeparator||".",y;return g.keyPrefix&&Array.isArray(d)?y=d.map(v=>(typeof v=="function"&&(v=Gi(v,{...this.options,...c})),`${g.keyPrefix}${x}${v}`)):(typeof d=="function"&&(d=Gi(d,{...this.options,...c})),y=g.keyPrefix?`${g.keyPrefix}${x}${d}`:d),this.t(y,g)};return Y(n)?l.lng=n:l.lngs=n,l.ns=i,l.keyPrefix=a,l}t(...n){return this.translator?.translate(...n)}exists(...n){return this.translator?.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,i={}){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;let a=i.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;let c=(p,g)=>{let x=this.services.backendConnector.state[`${p}|${g}`];return x===-1||x===0||x===2};if(i.precheck){let p=i.precheck(this,c);if(p!==void 0)return p}return!!(this.hasResourceBundle(a,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(a,n)&&(!l||c(d,n)))}loadNamespaces(n,i){let a=ho();return this.options.ns?(Y(n)&&(n=[n]),n.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{a.resolve(),i&&i(l)}),a):(i&&i(),Promise.resolve())}loadLanguages(n,i){let a=ho();Y(n)&&(n=[n]);let l=this.options.preload||[],d=n.filter(c=>l.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return d.length?(this.options.preload=l.concat(d),this.loadResources(c=>{a.resolve(),i&&i(c)}),a):(i&&i(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!n)return"rtl";try{let l=new Intl.Locale(n);if(l&&l.getTextInfo){let d=l.getTextInfo();if(d&&d.direction)return d.direction}}catch{}let i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services?.languageUtils||new Qi(ia());return n.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(a.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},i){let a=new r(n,i);return a.createInstance=r.createInstance,a}cloneInstance(n={},i=$i){let a=n.forkResourceStore;a&&delete n.forkResourceStore;let l={...this.options,...n,isClone:!0},d=new r(l);if((n.debug!==void 0||n.prefix!==void 0)&&(d.logger=d.logger.clone(n)),["store","services","language"].forEach(p=>{d[p]=this[p]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},a){let p=Object.keys(this.store.data).reduce((g,x)=>(g[x]={...this.store.data[x]},g[x]=Object.keys(g[x]).reduce((y,v)=>(y[v]={...g[x][v]},y),g[x]),g),{});d.store=new Wi(p,l),d.services.resourceStore=d.store}if(n.interpolation){let g={...ia().interpolation,...this.options.interpolation,...n.interpolation},x={...l,interpolation:g};d.services.interpolator=new qi(x)}return d.translator=new Ki(d.services,l),d.translator.on("*",(p,...g)=>{d.emit(p,...g)}),d.init(l,i),d.translator.options=l,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},be=fa.createInstance(),y0=be.createInstance,v0=be.dir,S0=be.init,C0=be.loadResources,w0=be.reloadResources,_0=be.use,E0=be.changeLanguage,I0=be.getFixedT,k0=be.t,N0=be.exists,F0=be.setDefaultNamespace,T0=be.hasLoadedNamespace,b0=be.loadNamespaces,z0=be.loadLanguages;var Dm=re(oe(),1);var vo=re(oe(),1);var zm=re(Pd());var Yi=(r,n,i,a)=>{let l=[i,{code:n,...a||{}}];if(r?.services?.logger?.forward)return r.services.logger.forward(l,"warn","react-i18next::",!0);Vt(l[0])&&(l[0]=`react-i18next:: ${l[0]}`),r?.services?.logger?.warn?r.services.logger.warn(...l):console?.warn&&console.warn(...l)},Od={},rr=(r,n,i,a)=>{Vt(i)&&Od[i]||(Vt(i)&&(Od[i]=new Date),Yi(r,n,i,a))},Ld=(r,n)=>()=>{if(r.isInitialized)n();else{let i=()=>{setTimeout(()=>{r.off("initialized",i)},0),n()};r.on("initialized",i)}},Ji=(r,n,i)=>{r.loadNamespaces(n,Ld(r,i))},pa=(r,n,i,a)=>{if(Vt(i)&&(i=[i]),r.options.preload&&r.options.preload.indexOf(n)>-1)return Ji(r,i,a);i.forEach(l=>{r.options.ns.indexOf(l)<0&&r.options.ns.push(l)}),r.loadLanguages(n,Ld(r,a))},Rd=(r,n,i={})=>!n.languages||!n.languages.length?(rr(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(r,{lng:i.lng,precheck:(a,l)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!l(a.isLanguageChangingTo,r))return!1}});var Vt=r=>typeof r=="string",ga=r=>typeof r=="object"&&r!==null;var Pm=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Om={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},Lm=r=>Om[r],ha=r=>r.replace(Pm,Lm);var ma={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ha,transDefaultProps:void 0},Xi=(r={})=>{ma={...ma,...r}},yo=()=>ma;var Md,Zi=r=>{Md=r},Wt=()=>Md;var Dd=re(oe(),1);var es={type:"3rdParty",init(r){Xi(r.options.react),Zi(r)}};var Dn=(0,Dd.createContext)(),ts=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};var jd=re(oe(),1);var or=re(oe(),1);var zr=class r extends Error{constructor(n,i,a){super(n),this.name="TranslationParserError",this.position=i,this.translationString=a,Error.captureStackTrace&&Error.captureStackTrace(this,r)}};var Ad={" ":"\xA0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xA9","®":"\xAE","™":"\u2122","…":"\u2026","–":"\u2013","—":"\u2014","‘":"\u2018","’":"\u2019","‚":"\u201A","“":"\u201C","”":"\u201D","„":"\u201E","†":"\u2020","‡":"\u2021","•":"\u2022","′":"\u2032","″":"\u2033","‹":"\u2039","›":"\u203A","§":"\xA7","¶":"\xB6","·":"\xB7"," ":"\u2002"," ":"\u2003"," ":"\u2009","€":"\u20AC","£":"\xA3","¥":"\xA5","¢":"\xA2","¤":"\xA4","×":"\xD7","÷":"\xF7","−":"\u2212","±":"\xB1","≠":"\u2260","≤":"\u2264","≥":"\u2265","≈":"\u2248","≡":"\u2261","∞":"\u221E","∫":"\u222B","∑":"\u2211","∏":"\u220F","√":"\u221A","∂":"\u2202","‰":"\u2030","°":"\xB0","µ":"\xB5","←":"\u2190","↑":"\u2191","→":"\u2192","↓":"\u2193","↔":"\u2194","↵":"\u21B5","⇐":"\u21D0","⇑":"\u21D1","⇒":"\u21D2","⇓":"\u21D3","⇔":"\u21D4","α":"\u03B1","β":"\u03B2","γ":"\u03B3","δ":"\u03B4","ε":"\u03B5","ζ":"\u03B6","η":"\u03B7","θ":"\u03B8","ι":"\u03B9","κ":"\u03BA","λ":"\u03BB","μ":"\u03BC","ν":"\u03BD","ξ":"\u03BE","ο":"\u03BF","π":"\u03C0","ρ":"\u03C1","σ":"\u03C3","τ":"\u03C4","υ":"\u03C5","φ":"\u03C6","χ":"\u03C7","ψ":"\u03C8","ω":"\u03C9","Α":"\u0391","Β":"\u0392","Γ":"\u0393","Δ":"\u0394","Ε":"\u0395","Ζ":"\u0396","Η":"\u0397","Θ":"\u0398","Ι":"\u0399","Κ":"\u039A","Λ":"\u039B","Μ":"\u039C","Ν":"\u039D","Ξ":"\u039E","Ο":"\u039F","Π":"\u03A0","Ρ":"\u03A1","Σ":"\u03A3","Τ":"\u03A4","Υ":"\u03A5","Φ":"\u03A6","Χ":"\u03A7","Ψ":"\u03A8","Ω":"\u03A9","À":"\xC0","Á":"\xC1","Â":"\xC2","Ã":"\xC3","Ä":"\xC4","Å":"\xC5","Æ":"\xC6","Ç":"\xC7","È":"\xC8","É":"\xC9","Ê":"\xCA","Ë":"\xCB","Ì":"\xCC","Í":"\xCD","Î":"\xCE","Ï":"\xCF","Ð":"\xD0","Ñ":"\xD1","Ò":"\xD2","Ó":"\xD3","Ô":"\xD4","Õ":"\xD5","Ö":"\xD6","Ø":"\xD8","Ù":"\xD9","Ú":"\xDA","Û":"\xDB","Ü":"\xDC","Ý":"\xDD","Þ":"\xDE","ß":"\xDF","à":"\xE0","á":"\xE1","â":"\xE2","ã":"\xE3","ä":"\xE4","å":"\xE5","æ":"\xE6","ç":"\xE7","è":"\xE8","é":"\xE9","ê":"\xEA","ë":"\xEB","ì":"\xEC","í":"\xED","î":"\xEE","ï":"\xEF","ð":"\xF0","ñ":"\xF1","ò":"\xF2","ó":"\xF3","ô":"\xF4","õ":"\xF5","ö":"\xF6","ø":"\xF8","ù":"\xF9","ú":"\xFA","û":"\xFB","ü":"\xFC","ý":"\xFD","þ":"\xFE","ÿ":"\xFF","¡":"\xA1","¿":"\xBF","ƒ":"\u0192","ˆ":"\u02C6","˜":"\u02DC","Œ":"\u0152","œ":"\u0153","Š":"\u0160","š":"\u0161","Ÿ":"\u0178","ª":"\xAA","º":"\xBA","¯":"\xAF","´":"\xB4","¸":"\xB8","¹":"\xB9","²":"\xB2","³":"\xB3","¼":"\xBC","½":"\xBD","¾":"\xBE","♠":"\u2660","♣":"\u2663","♥":"\u2665","♦":"\u2666","◊":"\u25CA","‾":"\u203E","⁄":"\u2044","℘":"\u2118","ℑ":"\u2111","ℜ":"\u211C","ℵ":"\u2135"},Am=new RegExp(Object.keys(Ad).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),Hd=r=>r.replace(Am,n=>Ad[n]).replace(/(\d+);/g,(n,i)=>String.fromCharCode(parseInt(i,10))).replace(/([0-9a-fA-F]+);/g,(n,i)=>String.fromCharCode(parseInt(i,16)));var Bd=r=>{let n=[],i=0,a="",l=()=>{a&&(n.push({type:"Text",value:a,position:i-a.length}),a="")};for(;i/);if(c)l(),n.push({type:"TagOpen",value:c[0],position:i,tagNumber:parseInt(c[1],10)}),i+=c[0].length;else{let p=r.slice(i).match(/^<\/(\d+)>/);p?(l(),n.push({type:"TagClose",value:p[0],position:i,tagNumber:parseInt(p[1],10)}),i+=p[0].length):(a+=d,i+=1)}}else a+=d,i+=1}return l(),n};var So=re(oe(),1);var Hm=(r,n,i)=>{let{type:a,props:l={}}=r;if(l.children&&Array.isArray(l.children)&&i){let{children:d,...c}=l;return So.default.createElement(a,c,...n)}return n.length===0?So.default.createElement(a,l):n.length===1?So.default.createElement(a,l,n[0]):So.default.createElement(a,l,...n)},Ud=(r,n=[])=>{if(!r)return[];let i=Bd(r),a=[],l=[],d=new Set,c=()=>{if(l.length===0)return n;let p=l[l.length-1];return p.declaration.props?.children&&Array.isArray(p.declaration.props.children)?p.declaration.props.children:p.declarations};if(i.forEach(p=>{switch(p.type){case"Text":{let g=Hd(p.value);(l.length>0?l[l.length-1].children:a).push(g)}break;case"TagOpen":{let{tagNumber:g}=p,x=c(),y=x[g];if(!y){d.add(g);let v=`<${g}>`;(l.length>0?l[l.length-1].children:a).push(v);break}l.push({tagNumber:g,children:[],position:p.position,declaration:y,declarations:x})}break;case"TagClose":{let{tagNumber:g}=p;if(d.has(g)){let k=`${g}>`;(l.length>0?l[l.length-1].children:a).push(k),d.delete(g);break}if(l.length===0)throw new zr(`Unexpected closing tag ${g}> at position ${p.position}`,p.position,r);let x=l.pop();if(x.tagNumber!==g)throw new zr(`Mismatched tags: expected ${x.tagNumber}> but got ${g}> at position ${p.position}`,p.position,r);let y=Hm(x.declaration,x.children,x.declarations);(l.length>0?l[l.length-1].children:a).push(y)}break}}),l.length>0){let p=l[l.length-1];throw new zr(`Unclosed tag <${p.tagNumber}> at position ${p.position}`,p.position,r)}return a};function ns({i18nKey:r,defaultTranslation:n,content:i,ns:a,values:l={},i18n:d,t:c}){let p=d||Wt();if(!p)return rr(p,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),or.default.createElement(or.default.Fragment,{},n);let g=c||p.t?.bind(p)||(k=>k),x=a||g.ns||p.options?.defaultNS;x=Vt(x)?[x]:x||["translation"];let y=l;p.options?.interpolation?.defaultVariables&&(y=l&&Object.keys(l).length>0?{...l,...p.options.interpolation.defaultVariables}:{...p.options.interpolation.defaultVariables});let v=g(r,{defaultValue:n,...y,ns:x});try{let k=Ud(v,i);return or.default.createElement(or.default.Fragment,{},...k)}catch(k){return Yi(p,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${r}": ${k.message}`,{i18nKey:r,error:k}),or.default.createElement(or.default.Fragment,{},v)}}ns.displayName="IcuTransWithoutContext";function $d({i18nKey:r,defaultTranslation:n,content:i,ns:a,values:l={},i18n:d,t:c}){let{i18n:p,defaultNS:g}=(0,jd.useContext)(Dn)||{},x=d||p||Wt(),y=c||x?.t.bind(x);return ns({i18nKey:r,defaultTranslation:n,content:i,ns:a||y?.ns||g||x?.options?.defaultNS,values:l,i18n:x,t:c})}$d.displayName="IcuTrans";var Me=re(oe(),1),Qd=re(Kd(),1);var qm=(r,n)=>Vt(n)?n:ga(n)&&Vt(n.defaultValue)?n.defaultValue:Array.isArray(r)?r[r.length-1]:r,Ym={t:qm,ready:!1},Jm=()=>()=>{},he=(r,n={})=>{let{i18n:i}=n,{i18n:a,defaultNS:l}=(0,Me.useContext)(Dn)||{},d=i||a||Wt();d&&!d.reportNamespaces&&(d.reportNamespaces=new ts),d||rr(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let c=(0,Me.useMemo)(()=>({...yo(),...d?.options?.react,...n}),[d,n]),{useSuspense:p,keyPrefix:g}=c,x=r||l||d?.options?.defaultNS,y=Vt(x)?[x]:x||["translation"],v=(0,Me.useMemo)(()=>y,y);d?.reportNamespaces?.addUsedNamespaces?.(v);let k=(0,Me.useRef)(0),F=(0,Me.useCallback)(V=>{if(!d)return Jm;let{bindI18n:Q,bindI18nStore:te}=c,pe=()=>{k.current+=1,V()};return Q&&d.on(Q,pe),te&&d.store.on(te,pe),()=>{Q&&Q.split(" ").forEach(ue=>d.off(ue,pe)),te&&te.split(" ").forEach(ue=>d.store.off(ue,pe))}},[d,c]),w=(0,Me.useRef)(),I=(0,Me.useCallback)(()=>{if(!d)return Ym;let V=!!(d.isInitialized||d.initializedStoreOnce)&&v.every(J=>Rd(J,d,c)),Q=n.lng||d.language,te=k.current,pe=w.current;if(pe&&pe.ready===V&&pe.lng===Q&&pe.keyPrefix===g&&pe.revision===te)return pe;let j={t:d.getFixedT(Q,c.nsMode==="fallback"?v:v[0],g),ready:V,lng:Q,keyPrefix:g,revision:te};return w.current=j,j},[d,v,g,c,n.lng]),[z,L]=(0,Me.useState)(0),{t:P,ready:T}=(0,Qd.useSyncExternalStore)(F,I,I);(0,Me.useEffect)(()=>{if(d&&!T&&!p){let V=()=>L(Q=>Q+1);n.lng?pa(d,n.lng,v,V):Ji(d,v,V)}},[d,n.lng,v,T,p,z]);let R=d||{},K=(0,Me.useRef)(null),se=(0,Me.useRef)(),le=V=>{let Q=Object.getOwnPropertyDescriptors(V);Q.__original&&delete Q.__original;let te=Object.create(Object.getPrototypeOf(V),Q);if(!Object.prototype.hasOwnProperty.call(te,"__original"))try{Object.defineProperty(te,"__original",{value:V,writable:!1,enumerable:!1,configurable:!1})}catch{}return te},Ne=(0,Me.useMemo)(()=>{let V=R,Q=V?.language,te=V;V&&(K.current&&K.current.__original===V?se.current!==Q?(te=le(V),K.current=te,se.current=Q):te=K.current:(te=le(V),K.current=te,se.current=Q));let pe=[P,te,T];return pe.t=P,pe.i18n=te,pe.ready=T,pe},[P,R,T,R.resolvedLanguage,R.language,R.languages]);if(d&&p&&!T)throw new Promise(V=>{let Q=()=>V();n.lng?pa(d,n.lng,v,Q):Ji(d,v,Q)});return Ne};var qd=re(oe(),1);var Yd=re(oe(),1);var n1=re(oe(),1);var Zm=re(oe(),1);import*as Zd from"mshell";var Jd={app:{title:"Breeze Shell",manage:"\u7BA1\u7406 Breeze Shell"},sidebar:{mainConfig:"\u8BBE\u7F6E",update:"\u66F4\u65B0",pluginStore:"\u63D2\u4EF6\u5546\u5E97",pluginConfig:"\u63D2\u4EF6\u914D\u7F6E",updateSource:"\u66F4\u65B0\u6E90",problems:"\u95EE\u9898",logs:"\u65E5\u5FD7"},settings:{title:"\u8BBE\u7F6E",theme:"\u4E3B\u9898",animation:"\u52A8\u753B",misc:"\u6742\u9879",language:"\u8BED\u8A00",debugConsole:"\u51FA\u73B0\u95EE\u9898\u65F6\u901A\u77E5\u6211",vsync:"\u5782\u76F4\u540C\u6B65",ignoreOwnerDraw:"\u5FFD\u7565\u81EA\u7ED8\u83DC\u5355",reverseIfOpenToUp:"\u5411\u4E0A\u5C55\u5F00\u65F6\u53CD\u5411\u6392\u5217",tryWin11RoundCorner:"\u5C1D\u8BD5\u4F7F\u7528 Windows 11 \u5706\u89D2",acrylicBackground:"\u4E9A\u514B\u529B\u80CC\u666F",hotkeys:"\u952E\u76D8\u70ED\u952E",showSettingsButton:"\u663E\u793A\u8BBE\u7F6E\u6309\u94AE",patchExplorerFrameDll:"ExplorerFrame \u8865\u4E01",appearance:"\u5916\u89C2",behavior:"\u83DC\u5355\u884C\u4E3A",general:"\u901A\u7528",on:"\u5F00",off:"\u5173",themeDesc:"\u9009\u62E9\u53F3\u952E\u83DC\u5355\u7684\u5C3A\u5BF8\u3001\u95F4\u8DDD\u4E0E\u5706\u89D2\u98CE\u683C",animationDesc:"\u9009\u62E9\u83DC\u5355\u5C55\u5F00\u4E0E\u60AC\u505C\u65F6\u7684\u52A8\u753B\u6548\u679C",acrylicBackgroundDesc:"\u83DC\u5355\u80CC\u666F\u4F7F\u7528\u534A\u900F\u660E\u7684\u6A21\u7CCA\u6750\u8D28",vsyncDesc:"\u4E0E\u663E\u793A\u5668\u5237\u65B0\u7387\u540C\u6B65\u7ED8\u5236\uFF0C\u51CF\u5C11\u753B\u9762\u6495\u88C2",ignoreOwnerDrawDesc:"\u8DF3\u8FC7\u7531\u7A0B\u5E8F\u81EA\u884C\u7ED8\u5236\u7684\u83DC\u5355\u9879\uFF0C\u907F\u514D\u663E\u793A\u5F02\u5E38",reverseIfOpenToUpDesc:"\u83DC\u5355\u5411\u4E0A\u5F39\u51FA\u65F6\u628A\u5E38\u7528\u9879\u4FDD\u6301\u5728\u9760\u8FD1\u9F20\u6807\u7684\u4F4D\u7F6E",hotkeysDesc:"\u5141\u8BB8\u4F7F\u7528\u952E\u76D8\u5FEB\u6377\u952E\u64CD\u4F5C\u83DC\u5355",showSettingsButtonDesc:"\u5728\u83DC\u5355\u5DE6\u4E0A\u89D2\u663E\u793A\u8FDB\u5165 Breeze \u8BBE\u7F6E\u7684\u6309\u94AE",patchExplorerFrameDllDesc:"\u8BA9\u8D44\u6E90\u7BA1\u7406\u5668\u5DE6\u4FA7\u5BFC\u822A\u680F\u4E5F\u4F7F\u7528 Breeze \u53F3\u952E\u83DC\u5355",languageDesc:"\u8BBE\u7F6E\u754C\u9762\u4E0E\u83DC\u5355\u4F7F\u7528\u7684\u8BED\u8A00",debugConsoleDesc:"\u68C0\u6D4B\u5230\u914D\u7F6E\u6216\u811A\u672C\u95EE\u9898\u65F6\u5F39\u51FA\u901A\u77E5"},plugin:{title:"\u63D2\u4EF6",config:"\u63D2\u4EF6\u914D\u7F6E",store:"\u63D2\u4EF6\u5E02\u573A",source:"\u63D2\u4EF6\u6E90",priorityLoad:"\u4F18\u5148\u52A0\u8F7D\u63D2\u4EF6",installed:"\u5DF2\u5B89\u88C5\u63D2\u4EF6",setPriority:"\u8BBE\u4E3A\u4F18\u5148\u52A0\u8F7D",cancelPriority:"\u53D6\u6D88\u4F18\u5148\u52A0\u8F7D",installSuccess:"\u63D2\u4EF6\u5B89\u88C5\u6210\u529F: ",installFailed:"\u63D2\u4EF6\u5B89\u88C5\u5931\u8D25: ",installing:"\u5B89\u88C5\u4E2D...",install:"\u5B89\u88C5",update:"\u66F4\u65B0",notInstalled:"\u672A\u5B89\u88C5",alreadyInstalled:"\u5DF2\u5B89\u88C5",configParseFailed:"\u914D\u7F6E\u6587\u4EF6\u89E3\u6790\u5931\u8D25: ",configChanged:"\u914D\u7F6E\u6587\u4EF6\u53D8\u66F4: ",priorityShort:"\u4F18\u5148",configSubtitle:"\u5DF2\u5B89\u88C5 {{n}} \u4E2A\u63D2\u4EF6",openFolder:"\u6253\u5F00\u63D2\u4EF6\u76EE\u5F55",empty:"\u8FD8\u6CA1\u6709\u5B89\u88C5\u63D2\u4EF6",emptyDesc:"\u53EF\u4EE5\u5728\u63D2\u4EF6\u5546\u5E97\u4E2D\u6D4F\u89C8\u5E76\u5B89\u88C5\u63D2\u4EF6\u3002",storeSubtitle:"\u6765\u81EA {{source}} \u7684\u63D2\u4EF6",reinstall:"\u91CD\u65B0\u5B89\u88C5"},update:{title:"\u66F4\u65B0",currentVersion:"\u5F53\u524D\u7248\u672C",latestVersion:"\u6700\u65B0\u7248\u672C",autoUpdate:"\u542F\u52A8\u65F6\u81EA\u52A8\u66F4\u65B0",changelog:"\u66F4\u65B0\u65E5\u5FD7",updating:"\u66F4\u65B0\u4E2D...",downloading:"\u4E0B\u8F7D\u4E2D",verifying:"\u6B63\u5728\u6821\u9A8C\u6587\u4EF6...",applying:"\u6B63\u5728\u66FF\u6362\u6587\u4EF6...",updateSuccess:"\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\uFF0C\u5C06\u4E8E\u4E0B\u6B21\u91CD\u542F\u8D44\u6E90\u7BA1\u7406\u5668\u751F\u6548",updateFailed:"\u66F4\u65B0\u5931\u8D25: ",cannotMoveFile:"\u65E0\u6CD5\u79FB\u52A8\u5F53\u524D\u6587\u4EF6",pendingRestart:"\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\uFF0C\u7B49\u5F85\u91CD\u542F\u8D44\u6E90\u7BA1\u7406\u5668",restartNow:"\u91CD\u542F\u8D44\u6E90\u7BA1\u7406\u5668",injectorVersion:"\u6CE8\u5165\u5668\u7248\u672C",injectorNotInstalled:"\u672A\u5B89\u88C5",autoUpdateDesc:"Breeze \u542F\u52A8\u65F6\u5728\u540E\u53F0\u68C0\u67E5\u5E76\u4E0B\u8F7D\u65B0\u7248\u672C",available:"\u53D1\u73B0\u65B0\u7248\u672C {{version}}",upToDate:"\u5DF2\u662F\u6700\u65B0\u7248\u672C",updateNow:"\u7ACB\u5373\u66F4\u65B0",checked:"\u5DF2\u662F\u6700\u65B0"},common:{loading:"\u52A0\u8F7D\u4E2D...",loadFailed:"\u52A0\u8F7D\u5931\u8D25",pleaseWait:"\u8BF7\u7A0D\u5019",switching:"\u5207\u6362\u6E90\u4E2D...",switchSuccess:"\u5207\u6362\u6E90\u6210\u529F",networkError:"\u7F51\u7EDC\u9519\u8BEF",delete:"\u5220\u9664",version:"\u7248\u672C: ",author:"\u4F5C\u8005: ",currentSource:"\u5F53\u524D\u6E90: ",changeSource:"\u6362\u6E90"},preset:{default:"\u9ED8\u8BA4",compact:"\u7D27\u51D1",loose:"\u5BBD\u677E",rounded:"\u5706\u89D2",square:"\u65B9\u89D2",fast:"\u5FEB\u901F",none:"\u65E0",custom:"\u81EA\u5B9A\u4E49"},customEditor:{theme:{title:"\u81EA\u5B9A\u4E49\u4E3B\u9898",done:"\u5B8C\u6210",sizeSettings:"\u5C3A\u5BF8\u8BBE\u7F6E",radius:"\u5706\u89D2\u5927\u5C0F",itemHeight:"\u9879\u9AD8\u5EA6",itemGap:"\u9879\u95F4\u8DDD",itemRadius:"\u9879\u5706\u89D2",margin:"\u5916\u8FB9\u8DDD",padding:"\u5185\u8FB9\u8DDD",textAndIcon:"\u6587\u672C\u4E0E\u56FE\u6807",fontSize:"\u5B57\u4F53\u5927\u5C0F",textPadding:"\u6587\u672C\u5185\u8FB9\u8DDD",iconPadding:"\u56FE\u6807\u5185\u8FB9\u8DDD",rightIconPadding:"\u53F3\u4FA7\u56FE\u6807\u8FB9\u8DDD",effects:"\u6548\u679C\u8BBE\u7F6E",useDwm:"\u4F18\u5148\u4F7F\u7528\u7CFB\u7EDF\u5706\u89D2\u4E0E\u6750\u8D28",acrylic:"\u4E9A\u514B\u529B\u6548\u679C",backgroundOpacity:"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",preview:"\u5B9E\u65F6\u9884\u89C8",previewDesc:"\u8C03\u6574\u4E0B\u65B9\u7684\u6570\u503C\uFF0C\u9884\u89C8\u4F1A\u7ACB\u5373\u66F4\u65B0\uFF1B\u4FEE\u6539\u4F1A\u81EA\u52A8\u4FDD\u5B58\u5E76\u5E94\u7528\u5230\u4E0B\u4E00\u6B21\u6253\u5F00\u7684\u83DC\u5355\u3002",multibuttonLineGap:"\u591A\u6309\u94AE\u884C\u95F4\u8DDD",borderWidth:"\u8FB9\u6846\u5BBD\u5EA6",shadowSize:"\u9634\u5F71\u5927\u5C0F",useDwmDesc:"\u7CFB\u7EDF\u652F\u6301\u65F6\u7531 DWM \u7ED8\u5236\u83DC\u5355\u80CC\u666F"},animation:{title:"\u81EA\u5B9A\u4E49\u52A8\u753B",done:"\u5B8C\u6210",menuItem:"\u83DC\u5355\u9879",mainBg:"\u4E3B\u83DC\u5355\u80CC\u666F",submenuBg:"\u5B50\u83DC\u5355\u80CC\u666F",opacity:"\u900F\u660E\u5EA6",x:"X \u8F74\u4F4D\u79FB",y:"Y \u8F74\u4F4D\u79FB",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",blur:"\u6A21\u7CCA",duration:"\u6301\u7EED\u65F6\u957F",easing:"\u52A8\u753B\u66F2\u7EBF",delayScale:"\u5EF6\u8FDF\u500D\u7387",linear:"\u7EBF\u6027",easeIn:"\u7F13\u5165",easeOut:"\u7F13\u51FA",easeInOut:"\u7F13\u5165\u7F13\u51FA",instant:"\u65E0\u52A8\u753B",global:"\u5168\u5C40",globalTitle:"\u9ED8\u8BA4\u52A8\u753B",globalDesc:"\u672A\u5355\u72EC\u8BBE\u7F6E\u7684\u52A8\u753B\u5C5E\u6027\u90FD\u4F1A\u4F7F\u7528\u8FD9\u91CC\u7684\u53C2\u6570",fallback:"\u9ED8\u8BA4\u66F2\u7EBF",contextMenu:"\u53F3\u952E\u83DC\u5355",modified:"\u5DF2\u4FEE\u6539 {{n}} \u9879",mainMenu:"\u83DC\u5355\u5F39\u51FA",mainMenuDesc:"\u83DC\u5355\u6574\u4F53\u51FA\u73B0\u65F6\u7684\u4F4D\u79FB",menuItemDesc:"\u6BCF\u4E2A\u83DC\u5355\u9879\u51FA\u73B0\u4E0E\u60AC\u505C\u65F6\u7684\u52A8\u753B",mainBgDesc:"\u4E3B\u83DC\u5355\u80CC\u666F\u7684\u5C55\u5F00\u52A8\u753B",submenuBgDesc:"\u5B50\u83DC\u5355\u80CC\u666F\u7684\u5C55\u5F00\u52A8\u753B",appearBlur:"\u51FA\u73B0\u65F6\u6A21\u7CCA",appearWScale:"\u51FA\u73B0\u65F6\u5BBD\u5EA6\u6BD4\u4F8B",appearHScale:"\u51FA\u73B0\u65F6\u9AD8\u5EA6\u6BD4\u4F8B"},reset:"\u6062\u590D\u9ED8\u8BA4"},logs:{title:"\u65E5\u5FD7",subtitle:"\u672C\u6B21\u4F1A\u8BDD\u5171\u6355\u83B7 {{n}} \u6761",pause:"\u6682\u505C",resume:"\u7EE7\u7EED",search:"\u6309\u6587\u672C\u3001\u5B57\u6BB5\u6216\u6765\u6E90\u7B5B\u9009",empty:"\u6CA1\u6709\u7B26\u5408\u5F53\u524D\u7B5B\u9009\u6761\u4EF6\u7684\u65E5\u5FD7",level:{debug:"\u8C03\u8BD5",info:"\u4FE1\u606F",warn:"\u8B66\u544A",error:"\u9519\u8BEF",critical:"\u4E25\u91CD"}},problems:{title:"\u95EE\u9898",subtitle:"Breeze \u68C0\u6D4B\u5230\u7684\u914D\u7F6E\u3001\u811A\u672C\u4E0E\u8FD0\u884C\u65F6\u95EE\u9898",summary:"\u5171 {{n}} \u4E2A\u95EE\u9898\uFF0C\u5176\u4E2D {{errors}} \u4E2A\u9519\u8BEF",none:"\u8FD9\u91CC\u6CA1\u6709\u95EE\u9898",healthy:{title:"\u4E00\u5207\u6B63\u5E38",message:"Breeze \u6CA1\u6709\u68C0\u6D4B\u5230\u4EFB\u4F55\u914D\u7F6E\u3001\u811A\u672C\u6216\u8FD0\u884C\u65F6\u95EE\u9898\u3002"},tab:{all:"\u5168\u90E8",config:"\u914D\u7F6E",script:"\u811A\u672C",runtime:"\u8FD0\u884C\u65F6"},category:{config:"\u914D\u7F6E",script:"\u811A\u672C",runtime:"\u8FD0\u884C\u65F6"},config:{title:"\u5F53\u524D\u751F\u6548\u7684\u914D\u7F6E",reload:"\u91CD\u65B0\u52A0\u8F7D",overrides:"{{n}} \u9879\u8BBE\u7F6E\u4E0E\u9ED8\u8BA4\u503C\u4E0D\u540C",default:"\u9ED8\u8BA4"},copy:"\u590D\u5236",open:"\u6253\u5F00",clearRuntime:"\u6E05\u9664\u8FD0\u884C\u65F6\u95EE\u9898",justNow:"\u521A\u521A",minutesAgo:"{{n}} \u5206\u949F\u524D",hoursAgo:"{{n}} \u5C0F\u65F6\u524D",toastTitle:"Breeze \u53D1\u73B0\u4E86\u95EE\u9898",toastMore:"\u4EE5\u53CA\u53E6\u5916 {{n}} \u4E2A",toastView:"\u67E5\u770B\u8BE6\u60C5"},test:{title:"\u6D4B\u8BD5",cpu_exception_crash:"\u5F02\u5E38\u5D29\u6E83",cpp_exception_crash:"C++ \u5F02\u5E38\u5D29\u6E83",js_exception_crash:"JavaScript \u5F02\u5E38\u5D29\u6E83"}};var Xd={app:{title:"Breeze Shell",manage:"Manage Breeze Shell"},sidebar:{mainConfig:"Settings",update:"Update",pluginStore:"Plugin Store",pluginConfig:"Plugin Config",updateSource:"Update source",problems:"Problems",logs:"Logs"},settings:{title:"Settings",theme:"Theme",animation:"Animation",misc:"Miscellaneous",language:"Language",debugConsole:"Notify me about problems",vsync:"Vertical sync",ignoreOwnerDraw:"Ignore owner-drawn menus",reverseIfOpenToUp:"Reverse when opening upward",tryWin11RoundCorner:"Try Windows 11 Round Corners",acrylicBackground:"Acrylic background",hotkeys:"Keyboard hotkeys",showSettingsButton:"Show settings button",patchExplorerFrameDll:"ExplorerFrame patch",appearance:"Appearance",behavior:"Menu behavior",general:"General",on:"On",off:"Off",themeDesc:"Pick the size, spacing and corner style of the context menu",animationDesc:"Pick how menus animate when they open and on hover",acrylicBackgroundDesc:"Use a translucent blurred material behind menus",vsyncDesc:"Sync drawing with the display refresh rate to avoid tearing",ignoreOwnerDrawDesc:"Skip items that applications draw themselves",reverseIfOpenToUpDesc:"Keep common items close to the cursor when a menu opens upward",hotkeysDesc:"Allow keyboard shortcuts inside menus",showSettingsButtonDesc:"Show a Breeze settings button at the top-left of menus",patchExplorerFrameDllDesc:"Use Breeze menus in the Explorer navigation pane too",languageDesc:"Language used by settings and menus",debugConsoleDesc:"Show a notification when configuration or script problems are found"},plugin:{title:"Plugins",config:"Plugin Config",store:"Plugin Store",source:"Plugin Source",priorityLoad:"Priority Load Plugins",installed:"Installed Plugins",setPriority:"Set Priority Load",cancelPriority:"Cancel Priority Load",installSuccess:"Plugin installed: ",installFailed:"Plugin installation failed: ",installing:"Installing...",install:"Install",update:"Update",notInstalled:"Not Installed",alreadyInstalled:"Installed",configParseFailed:"Config file parse failed: ",configChanged:"Config file changed: ",priorityShort:"Priority",configSubtitle:"{{n}} plugins installed",openFolder:"Open plugin folder",empty:"No plugins installed yet",emptyDesc:"Browse the plugin store to find and install plugins.",storeSubtitle:"Plugins from {{source}}",reinstall:"Reinstall"},update:{title:"Update",currentVersion:"Current Version",latestVersion:"Latest Version",autoUpdate:"Auto Update on Startup",changelog:"Changelog",updating:"Updating...",downloading:"Downloading",verifying:"Verifying file...",applying:"Replacing files...",updateSuccess:"New version downloaded, will take effect next time the file manager is restarted",updateFailed:"Update failed: ",cannotMoveFile:"Cannot move current file",pendingRestart:"New version downloaded, waiting for Explorer restart",restartNow:"Restart Explorer",injectorVersion:"Injector Version",injectorNotInstalled:"Not installed",autoUpdateDesc:"Check for and download new versions in the background on startup",available:"Version {{version}} is available",upToDate:"You're up to date",updateNow:"Update now",checked:"Up to date"},common:{loading:"Loading...",loadFailed:"Load Failed",pleaseWait:"Please Wait",switching:"Switching source...",switchSuccess:"Switch Success",networkError:"Network Error",delete:"Delete",version:"Version: ",author:"Author: ",currentSource:"Current source: ",changeSource:"Change Source"},preset:{default:"Default",compact:"Compact",loose:"Loose",rounded:"Rounded",square:"Square",fast:"Fast",none:"None",custom:"Custom"},customEditor:{theme:{title:"Custom Theme",done:"Done",sizeSettings:"Size Settings",radius:"Border Radius",itemHeight:"Item Height",itemGap:"Item Gap",itemRadius:"Item Radius",margin:"Margin",padding:"Padding",textAndIcon:"Text & Icon",fontSize:"Font Size",textPadding:"Text Padding",iconPadding:"Icon Padding",rightIconPadding:"Right Icon Padding",effects:"Effects",useDwm:"Prefer system corners and material",acrylic:"Acrylic Effect",backgroundOpacity:"Background opacity",preview:"Live preview",previewDesc:"Adjust the values below and the preview updates instantly. Changes are saved and apply to the next menu you open.",multibuttonLineGap:"Multi-button line gap",borderWidth:"Border width",shadowSize:"Shadow size",useDwmDesc:"Let DWM draw the menu background when supported"},animation:{title:"Custom Animation",done:"Done",menuItem:"Menu items",mainBg:"Main menu background",submenuBg:"Submenu background",opacity:"Opacity",x:"X Position",y:"Y Position",width:"Width",height:"Height",blur:"Blur",duration:"Duration",easing:"Easing",delayScale:"Delay scale",linear:"Linear",easeIn:"Ease In",easeOut:"Ease Out",easeInOut:"Ease In Out",instant:"No animation",global:"Global",globalTitle:"Default animation",globalDesc:"Used by every animated property without its own settings",fallback:"Default curve",contextMenu:"Context menu",modified:"{{n}} changed",mainMenu:"Menu pop-up",mainMenuDesc:"Offset of the whole menu as it appears",menuItemDesc:"How each item appears and reacts to hover",mainBgDesc:"Expansion of the main menu background",submenuBgDesc:"Expansion of submenu backgrounds",appearBlur:"Blur on appear",appearWScale:"Initial width scale",appearHScale:"Initial height scale"},reset:"Reset to default"},logs:{title:"Logs",subtitle:"{{n}} entries captured in this session",pause:"Pause",resume:"Resume",search:"Filter by text, field or source",empty:"No log entries match the current filters",level:{debug:"Debug",info:"Info",warn:"Warning",error:"Error",critical:"Critical"}},problems:{title:"Problems",subtitle:"Configuration, script and runtime issues detected by Breeze",summary:"{{n}} problems detected, {{errors}} of them errors",none:"Nothing to report here",healthy:{title:"Everything looks good",message:"Breeze has not detected any configuration, script or runtime problems."},tab:{all:"All",config:"Config",script:"Scripts",runtime:"Runtime"},category:{config:"Config",script:"Script",runtime:"Runtime"},config:{title:"Active configuration",reload:"Reload",overrides:"{{n}} settings differ from the defaults",default:"default"},copy:"Copy",open:"Open",clearRuntime:"Clear runtime",justNow:"just now",minutesAgo:"{{n}} min ago",hoursAgo:"{{n}} h ago",toastTitle:"Breeze found a problem",toastMore:"and {{n}} more",toastView:"View details"},test:{title:"Test",crash:"Crash"}};be.use(es).init({lng:Zd.breeze.user_language()||"zh-CN",fallbackLng:"zh-CN",resources:{"zh-CN":{translation:Jd},"en-US":{translation:Xd}},interpolation:{escapeValue:!1}});var ya=r=>{be.changeLanguage(r)},ef=()=>be.language,va=be;var i1=()=>{try{return!!JSON.parse(Or.diagnostics.effective_config()).debug_console}catch{return!1}},Sa=r=>{if(typeof r=="string")return r;if(r instanceof Error)return`${r.message}${r.stack?`
+ `)+e.join(" > ")}return null},i.getPublicRootInstance=function(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return q(e.child.stateNode);default:return e.child.stateNode}},i.injectIntoDevTools=function(e){if(e={bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:p.ReactCurrentDispatcher,findHostInstanceByFiber:$h,findFiberByHostInstance:e.findFiberByHostInstance||Vh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")e=!1;else{var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)e=!0;else{try{ei=t.inject(e),Kt=t}catch{}e=!!t.checkDCE}}return e},i.isAlreadyRendering=function(){return!1},i.observeVisibleRects=function(e,t,o,s){if(!Gr)throw Error(c(363));e=Al(e,t);var u=yg(e,o,s).disconnect;return{disconnect:function(){u()}}},i.registerMutableSourceForHydration=function(e,t){var o=t._getVersion;o=o(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,o]:e.mutableSourceEagerHydrationData.push(t,o)},i.runWithPriority=function(e,t){var o=ce;try{return ce=e,t()}finally{ce=o}},i.shouldError=function(){return null},i.shouldSuspend=function(){return!1},i.updateContainer=function(e,t,o,s){var u=t.current,f=Ke(),m=On(u);return o=ed(o),t.context===null?t.context=o:t.pendingContext=o,t=dn(f,m),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=bn(u,t,m),e!==null&&(zt(e,u,m,f),ui(e,u,m)),m},i}});var wf=hn((Ty,Cf)=>{"use strict";Cf.exports=Sf()});var Vo=re(oe());import*as Vr from"mshell";import*as Or from"mshell";var Y=r=>typeof r=="string",ho=()=>{let r,n,i=new Promise((a,l)=>{r=a,n=l});return i.resolve=r,i.reject=n,i},xd=r=>r==null?"":""+r,pm=(r,n,i)=>{r.forEach(a=>{n[a]&&(i[a]=n[a])})},gm=/###/g,yd=r=>r&&r.indexOf("###")>-1?r.replace(gm,"."):r,vd=r=>!r||Y(r),mo=(r,n,i)=>{let a=Y(n)?n.split("."):n,l=0;for(;l{let{obj:a,k:l}=mo(r,n,Object);if(a!==void 0||n.length===1){a[l]=i;return}let d=n[n.length-1],c=n.slice(0,n.length-1),p=mo(r,c,Object);for(;p.obj===void 0&&c.length;)d=`${c[c.length-1]}.${d}`,c=c.slice(0,c.length-1),p=mo(r,c,Object),p?.obj&&typeof p.obj[`${p.k}.${d}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${d}`]=i},hm=(r,n,i,a)=>{let{obj:l,k:d}=mo(r,n,Object);l[d]=l[d]||[],l[d].push(i)},Vi=(r,n)=>{let{obj:i,k:a}=mo(r,n);if(i&&Object.prototype.hasOwnProperty.call(i,a))return i[a]},mm=(r,n,i)=>{let a=Vi(r,i);return a!==void 0?a:Vi(n,i)},Nd=(r,n,i)=>{for(let a in n)a!=="__proto__"&&a!=="constructor"&&(a in r?Y(r[a])||r[a]instanceof String||Y(n[a])||n[a]instanceof String?i&&(r[a]=n[a]):Nd(r[a],n[a],i):r[a]=n[a]);return r},nr=r=>r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),xm={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},ym=r=>Y(r)?r.replace(/[&<>"'\/]/g,n=>xm[n]):r,sa=class{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){let i=this.regExpMap.get(n);if(i!==void 0)return i;let a=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,a),this.regExpQueue.push(n),a}},vm=[" ",",","?","!",";"],Sm=new sa(20),Cm=(r,n,i)=>{n=n||"",i=i||"";let a=vm.filter(c=>n.indexOf(c)<0&&i.indexOf(c)<0);if(a.length===0)return!0;let l=Sm.getRegExp(`(${a.map(c=>c==="?"?"\\?":c).join("|")})`),d=!l.test(r);if(!d){let c=r.indexOf(i);c>0&&!l.test(r.substring(0,c))&&(d=!0)}return d},la=(r,n,i=".")=>{if(!r)return;if(r[n])return Object.prototype.hasOwnProperty.call(r,n)?r[n]:void 0;let a=n.split(i),l=r;for(let d=0;d-1&&gr?.replace(/_/g,"-"),wm={type:"logger",log(r){this.output("log",r)},warn(r){this.output("warn",r)},error(r){this.output("error",r)},output(r,n){console?.[r]?.apply?.(console,n)}},aa=class r{constructor(n,i={}){this.init(n,i)}init(n,i={}){this.prefix=i.prefix||"i18next:",this.logger=n||wm,this.options=i,this.debug=i.debug}log(...n){return this.forward(n,"log","",!0)}warn(...n){return this.forward(n,"warn","",!0)}error(...n){return this.forward(n,"error","")}deprecate(...n){return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(n,i,a,l){return l&&!this.debug?null:(Y(n[0])&&(n[0]=`${a}${this.prefix} ${n[0]}`),this.logger[i](n))}create(n){return new r(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new r(this.logger,n)}},tn=new aa,br=class{constructor(){this.observers={}}on(n,i){return n.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);let l=this.observers[a].get(i)||0;this.observers[a].set(i,l+1)}),this}off(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n].delete(i)}}emit(n,...i){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([l,d])=>{for(let c=0;c{for(let c=0;c-1&&this.options.ns.splice(i,1)}getResource(n,i,a,l={}){let d=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,c=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,p;n.indexOf(".")>-1?p=n.split("."):(p=[n,i],a&&(Array.isArray(a)?p.push(...a):Y(a)&&d?p.push(...a.split(d)):p.push(a)));let g=Vi(this.data,p);return!g&&!i&&!a&&n.indexOf(".")>-1&&(n=p[0],i=p[1],a=p.slice(2).join(".")),g||!c||!Y(a)?g:la(this.data?.[n]?.[i],a,d)}addResource(n,i,a,l,d={silent:!1}){let c=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,p=[n,i];a&&(p=p.concat(c?a.split(c):a)),n.indexOf(".")>-1&&(p=n.split("."),l=i,i=p[1]),this.addNamespaces(i),Sd(this.data,p,l),d.silent||this.emit("added",n,i,a,l)}addResources(n,i,a,l={silent:!1}){for(let d in a)(Y(a[d])||Array.isArray(a[d]))&&this.addResource(n,i,d,a[d],{silent:!0});l.silent||this.emit("added",n,i,a)}addResourceBundle(n,i,a,l,d,c={silent:!1,skipCopy:!1}){let p=[n,i];n.indexOf(".")>-1&&(p=n.split("."),l=a,a=i,i=p[1]),this.addNamespaces(i);let g=Vi(this.data,p)||{};c.skipCopy||(a=JSON.parse(JSON.stringify(a))),l?Nd(g,a,d):g={...g,...a},Sd(this.data,p,g),c.silent||this.emit("added",n,i,a)}removeResourceBundle(n,i){this.hasResourceBundle(n,i)&&delete this.data[n][i],this.removeNamespaces(i),this.emit("removed",n,i)}hasResourceBundle(n,i){return this.getResource(n,i)!==void 0}getResourceBundle(n,i){return i||(i=this.options.defaultNS),this.getResource(n,i)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){let i=this.getDataByLanguage(n);return!!(i&&Object.keys(i)||[]).find(l=>i[l]&&Object.keys(i[l]).length>0)}toJSON(){return this.data}},Fd={processors:{},addPostProcessor(r){this.processors[r.name]=r},handle(r,n,i,a,l){return r.forEach(d=>{n=this.processors[d]?.process(n,i,a,l)??n}),n}},Td=Symbol("i18next/PATH_KEY");function _m(){let r=[],n=Object.create(null),i;return n.get=(a,l)=>(i?.revoke?.(),l===Td?r:(r.push(l),i=Proxy.revocable(a,n),i.proxy)),Proxy.revocable(Object.create(null),n).proxy}function Gi(r,n){let{[Td]:i}=r(_m());return i.join(n?.keySeparator??".")}var Cd={},ra=r=>!Y(r)&&typeof r!="boolean"&&typeof r!="number",Ki=class r extends br{constructor(n,i={}){super(),pm(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=tn.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,i={interpolation:{}}){let a={...i};if(n==null)return!1;let l=this.resolve(n,a);if(l?.res===void 0)return!1;let d=ra(l.res);return!(a.returnObjects===!1&&d)}extractFromKey(n,i){let a=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");let l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,d=i.ns||this.options.defaultNS||[],c=a&&n.indexOf(a)>-1,p=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!Cm(n,a,l);if(c&&!p){let g=n.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:n,namespaces:Y(d)?[d]:d};let x=n.split(a);(a!==l||a===l&&this.options.ns.indexOf(x[0])>-1)&&(d=x.shift()),n=x.join(l)}return{key:n,namespaces:Y(d)?[d]:d}}translate(n,i,a){let l=typeof i=="object"?{...i}:i;if(typeof l!="object"&&this.options.overloadTranslationOptionHandler&&(l=this.options.overloadTranslationOptionHandler(arguments)),typeof l=="object"&&(l={...l}),l||(l={}),n==null)return"";typeof n=="function"&&(n=Gi(n,{...this.options,...l})),Array.isArray(n)||(n=[String(n)]);let d=l.returnDetails!==void 0?l.returnDetails:this.options.returnDetails,c=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,{key:p,namespaces:g}=this.extractFromKey(n[n.length-1],l),x=g[g.length-1],y=l.nsSeparator!==void 0?l.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");let v=l.lng||this.language,k=l.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(v?.toLowerCase()==="cimode")return k?d?{res:`${x}${y}${p}`,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(l)}:`${x}${y}${p}`:d?{res:p,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:x,usedParams:this.getUsedParamsDetails(l)}:p;let F=this.resolve(n,l),w=F?.res,I=F?.usedKey||p,z=F?.exactUsedKey||p,L=["[object Number]","[object Function]","[object RegExp]"],P=l.joinArrays!==void 0?l.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,R=l.count!==void 0&&!Y(l.count),K=r.hasDefaultValue(l),se=R?this.pluralResolver.getSuffix(v,l.count,l):"",le=l.ordinal&&R?this.pluralResolver.getSuffix(v,l.count,{ordinal:!1}):"",Ne=R&&!l.ordinal&&l.count===0,V=Ne&&l[`defaultValue${this.options.pluralSeparator}zero`]||l[`defaultValue${se}`]||l[`defaultValue${le}`]||l.defaultValue,Q=w;T&&!w&&K&&(Q=V);let te=ra(Q),pe=Object.prototype.toString.apply(Q);if(T&&Q&&te&&L.indexOf(pe)<0&&!(Y(P)&&Array.isArray(Q))){if(!l.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,Q,{...l,ns:g}):`key '${p} (${this.language})' returned an object instead of string.`;return d?(F.res=ue,F.usedParams=this.getUsedParamsDetails(l),F):ue}if(c){let ue=Array.isArray(Q),j=ue?[]:{},J=ue?z:I;for(let q in Q)if(Object.prototype.hasOwnProperty.call(Q,q)){let je=`${J}${c}${q}`;K&&!w?j[q]=this.translate(je,{...l,defaultValue:ra(V)?V[q]:void 0,joinArrays:!1,ns:g}):j[q]=this.translate(je,{...l,joinArrays:!1,ns:g}),j[q]===je&&(j[q]=Q[q])}w=j}}else if(T&&Y(P)&&Array.isArray(w))w=w.join(P),w&&(w=this.extendTranslation(w,n,l,a));else{let ue=!1,j=!1;!this.isValidLookup(w)&&K&&(ue=!0,w=V),this.isValidLookup(w)||(j=!0,w=p);let q=(l.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:w,je=K&&V!==w&&this.options.updateMissing;if(j||ue||je){if(this.logger.log(je?"updateKey":"missingKey",v,x,p,je?V:w),c){let et=this.resolve(p,{...l,keySeparator:!1});et&&et.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 Wn=[],gr=this.languageUtils.getFallbackCodes(this.options.fallbackLng,l.lng||this.language);if(this.options.saveMissingTo==="fallback"&&gr&&gr[0])for(let et=0;et{let Wr=K&&kn!==w?kn:q;this.options.missingKeyHandler?this.options.missingKeyHandler(et,x,Mt,Wr,je,l):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(et,x,Mt,Wr,je,l),this.emit("missingKey",et,x,Mt,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?Wn.forEach(et=>{let Mt=this.pluralResolver.getSuffixes(et,l);Ne&&l[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(kn=>{Wo([et],p+kn,l[`defaultValue${kn}`]||V)})}):Wo(Wn,p,V))}w=this.extendTranslation(w,n,l,F,a),j&&w===p&&this.options.appendNamespaceToMissingKey&&(w=`${x}${y}${p}`),(j||ue)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${x}${y}${p}`:p,ue?w:void 0,l))}return d?(F.res=w,F.usedParams=this.getUsedParamsDetails(l),F):w}extendTranslation(n,i,a,l,d){if(this.i18nFormat?.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});let g=Y(n)&&(a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),x;if(g){let v=n.match(this.interpolator.nestingRegexp);x=v&&v.length}let y=a.replace&&!Y(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),n=this.interpolator.interpolate(n,y,a.lng||this.language||l.usedLng,a),g){let v=n.match(this.interpolator.nestingRegexp),k=v&&v.length;xd?.[0]===v[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${i[0]}`),null):this.translate(...v,i),a)),a.interpolation&&this.interpolator.reset()}let c=a.postProcess||this.options.postProcess,p=Y(c)?[c]:c;return n!=null&&p?.length&&a.applyPostProcessor!==!1&&(n=Fd.handle(p,n,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...l,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),n}resolve(n,i={}){let a,l,d,c,p;return Y(n)&&(n=[n]),n.forEach(g=>{if(this.isValidLookup(a))return;let x=this.extractFromKey(g,i),y=x.key;l=y;let v=x.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));let k=i.count!==void 0&&!Y(i.count),F=k&&!i.ordinal&&i.count===0,w=i.context!==void 0&&(Y(i.context)||typeof i.context=="number")&&i.context!=="",I=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);v.forEach(z=>{this.isValidLookup(a)||(p=z,!Cd[`${I[0]}-${z}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(p)&&(Cd[`${I[0]}-${z}`]=!0,this.logger.warn(`key "${l}" for languages "${I.join(", ")}" won't get resolved as namespace "${p}" 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!!!")),I.forEach(L=>{if(this.isValidLookup(a))return;c=L;let P=[y];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(P,y,L,z,i);else{let R;k&&(R=this.pluralResolver.getSuffix(L,i.count,i));let K=`${this.options.pluralSeparator}zero`,se=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(k&&(i.ordinal&&R.indexOf(se)===0&&P.push(y+R.replace(se,this.options.pluralSeparator)),P.push(y+R),F&&P.push(y+K)),w){let le=`${y}${this.options.contextSeparator||"_"}${i.context}`;P.push(le),k&&(i.ordinal&&R.indexOf(se)===0&&P.push(le+R.replace(se,this.options.pluralSeparator)),P.push(le+R),F&&P.push(le+K))}}let T;for(;T=P.pop();)this.isValidLookup(a)||(d=T,a=this.getResource(L,z,T,i))}))})}),{res:a,usedKey:l,exactUsedKey:d,usedLng:c,usedNS:p}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,i,a,l={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(n,i,a,l):this.resourceStore.getResource(n,i,a,l)}getUsedParamsDetails(n={}){let i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=n.replace&&!Y(n.replace),l=a?n.replace:n;if(a&&typeof n.count<"u"&&(l.count=n.count),this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),!a){l={...l};for(let d of i)delete l[d]}return l}static hasDefaultValue(n){let i="defaultValue";for(let a in n)if(Object.prototype.hasOwnProperty.call(n,a)&&i===a.substring(0,i.length)&&n[a]!==void 0)return!0;return!1}},Qi=class{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tn.create("languageUtils")}getScriptPartFromCode(n){if(n=xo(n),!n||n.indexOf("-")<0)return null;let i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(n){if(n=xo(n),!n||n.indexOf("-")<0)return n;let i=n.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(n){if(Y(n)&&n.indexOf("-")>-1){let i;try{i=Intl.getCanonicalLocales(n)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?n.toLowerCase():n)}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}isSupportedCode(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}getBestMatchFromCodes(n){if(!n)return null;let i;return n.forEach(a=>{if(i)return;let l=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(l))&&(i=l)}),!i&&this.options.supportedLngs&&n.forEach(a=>{if(i)return;let l=this.getScriptPartFromCode(a);if(this.isSupportedCode(l))return i=l;let d=this.getLanguagePartFromCode(a);if(this.isSupportedCode(d))return i=d;i=this.options.supportedLngs.find(c=>{if(c===d)return c;if(!(c.indexOf("-")<0&&d.indexOf("-")<0)&&(c.indexOf("-")>0&&d.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===d||c.indexOf(d)===0&&d.length>1))return c})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),Y(n)&&(n=[n]),Array.isArray(n))return n;if(!i)return n.default||[];let a=n[i];return a||(a=n[this.getScriptPartFromCode(i)]),a||(a=n[this.formatLanguageCode(i)]),a||(a=n[this.getLanguagePartFromCode(i)]),a||(a=n.default),a||[]}toResolveHierarchy(n,i){let a=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],n),l=[],d=c=>{c&&(this.isSupportedCode(c)?l.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return Y(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(n))):Y(n)&&d(this.formatLanguageCode(n)),a.forEach(c=>{l.indexOf(c)<0&&d(this.formatLanguageCode(c))}),l}},wd={zero:0,one:1,two:2,few:3,many:4,other:5},_d={select:r=>r===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},ua=class{constructor(n,i={}){this.languageUtils=n,this.options=i,this.logger=tn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(n,i={}){let a=xo(n==="dev"?"en":n),l=i.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:a,type:l});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let c;try{c=new Intl.PluralRules(a,{type:l})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),_d;if(!n.match(/-|_/))return _d;let g=this.languageUtils.getLanguagePartFromCode(n);c=this.getRule(g,i)}return this.pluralRulesCache[d]=c,c}needsPlural(n,i={}){let a=this.getRule(n,i);return a||(a=this.getRule("dev",i)),a?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(n,i,a={}){return this.getSuffixes(n,a).map(l=>`${i}${l}`)}getSuffixes(n,i={}){let a=this.getRule(n,i);return a||(a=this.getRule("dev",i)),a?a.resolvedOptions().pluralCategories.sort((l,d)=>wd[l]-wd[d]).map(l=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${l}`):[]}getSuffix(n,i,a={}){let l=this.getRule(n,a);return l?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${l.select(i)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",i,a))}},Ed=(r,n,i,a=".",l=!0)=>{let d=mm(r,n,i);return!d&&l&&Y(i)&&(d=la(r,i,a),d===void 0&&(d=la(n,i,a))),d},oa=r=>r.replace(/\$/g,"$$$$"),qi=class{constructor(n={}){this.logger=tn.create("interpolator"),this.options=n,this.format=n?.interpolation?.format||(i=>i),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});let{escape:i,escapeValue:a,useRawValueToEscape:l,prefix:d,prefixEscaped:c,suffix:p,suffixEscaped:g,formatSeparator:x,unescapeSuffix:y,unescapePrefix:v,nestingPrefix:k,nestingPrefixEscaped:F,nestingSuffix:w,nestingSuffixEscaped:I,nestingOptionsSeparator:z,maxReplaces:L,alwaysFormat:P}=n.interpolation;this.escape=i!==void 0?i:ym,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=l!==void 0?l:!1,this.prefix=d?nr(d):c||"{{",this.suffix=p?nr(p):g||"}}",this.formatSeparator=x||",",this.unescapePrefix=y?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=k?nr(k):F||nr("$t("),this.nestingSuffix=w?nr(w):I||nr(")"),this.nestingOptionsSeparator=z||",",this.maxReplaces=L||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let n=(i,a)=>i?.source===a?(i.lastIndex=0,i):new RegExp(a,"g");this.regexp=n(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=n(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=n(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(n,i,a,l){let d,c,p,g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},x=F=>{if(F.indexOf(this.formatSeparator)<0){let L=Ed(i,g,F,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(L,void 0,a,{...l,...i,interpolationkey:F}):L}let w=F.split(this.formatSeparator),I=w.shift().trim(),z=w.join(this.formatSeparator).trim();return this.format(Ed(i,g,I,this.options.keySeparator,this.options.ignoreJSONStructure),z,a,{...l,...i,interpolationkey:I})};this.resetRegExp();let y=l?.missingInterpolationHandler||this.options.missingInterpolationHandler,v=l?.interpolation?.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:F=>oa(F)},{regex:this.regexp,safeValue:F=>this.escapeValue?oa(this.escape(F)):oa(F)}].forEach(F=>{for(p=0;d=F.regex.exec(n);){let w=d[1].trim();if(c=x(w),c===void 0)if(typeof y=="function"){let z=y(n,d,l);c=Y(z)?z:""}else if(l&&Object.prototype.hasOwnProperty.call(l,w))c="";else if(v){c=d[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${n}`),c="";else!Y(c)&&!this.useRawValueToEscape&&(c=xd(c));let I=F.safeValue(c);if(n=n.replace(d[0],I),v?(F.regex.lastIndex+=c.length,F.regex.lastIndex-=d[0].length):F.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),n}nest(n,i,a={}){let l,d,c,p=(g,x)=>{let y=this.nestingOptionsSeparator;if(g.indexOf(y)<0)return g;let v=g.split(new RegExp(`${nr(y)}[ ]*{`)),k=`{${v[1]}`;g=v[0],k=this.interpolate(k,c);let F=k.match(/'/g),w=k.match(/"/g);((F?.length??0)%2===0&&!w||(w?.length??0)%2!==0)&&(k=k.replace(/'/g,'"'));try{c=JSON.parse(k),x&&(c={...x,...c})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,I),`${g}${y}${k}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,g};for(;l=this.nestingRegexp.exec(n);){let g=[];c={...a},c=c.replace&&!Y(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.defaultValue;let x=/{.*}/.test(l[1])?l[1].lastIndexOf("}")+1:l[1].indexOf(this.formatSeparator);if(x!==-1&&(g=l[1].slice(x).split(this.formatSeparator).map(y=>y.trim()).filter(Boolean),l[1]=l[1].slice(0,x)),d=i(p.call(this,l[1].trim(),c),c),d&&l[0]===n&&!Y(d))return d;Y(d)||(d=xd(d)),d||(this.logger.warn(`missed to resolve ${l[1]} for nesting ${n}`),d=""),g.length&&(d=g.reduce((y,v)=>this.format(y,v,a.lng,{...a,interpolationkey:l[1].trim()}),d.trim())),n=n.replace(l[0],d),this.regexp.lastIndex=0}return n}},Em=r=>{let n=r.toLowerCase().trim(),i={};if(r.indexOf("(")>-1){let a=r.split("(");n=a[0].toLowerCase().trim();let l=a[1].substring(0,a[1].length-1);n==="currency"&&l.indexOf(":")<0?i.currency||(i.currency=l.trim()):n==="relativetime"&&l.indexOf(":")<0?i.range||(i.range=l.trim()):l.split(";").forEach(c=>{if(c){let[p,...g]=c.split(":"),x=g.join(":").trim().replace(/^'+|'+$/g,""),y=p.trim();i[y]||(i[y]=x),x==="false"&&(i[y]=!1),x==="true"&&(i[y]=!0),isNaN(x)||(i[y]=parseInt(x,10))}})}return{formatName:n,formatOptions:i}},Id=r=>{let n={};return(i,a,l)=>{let d=l;l&&l.interpolationkey&&l.formatParams&&l.formatParams[l.interpolationkey]&&l[l.interpolationkey]&&(d={...d,[l.interpolationkey]:void 0});let c=a+JSON.stringify(d),p=n[c];return p||(p=r(xo(a),l),n[c]=p),p(i)}},Im=r=>(n,i,a)=>r(xo(i),a)(n),ca=class{constructor(n={}){this.logger=tn.create("formatter"),this.options=n,this.init(n)}init(n,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";let a=i.cacheInBuiltFormats?Id:Im;this.formats={number:a((l,d)=>{let c=new Intl.NumberFormat(l,{...d});return p=>c.format(p)}),currency:a((l,d)=>{let c=new Intl.NumberFormat(l,{...d,style:"currency"});return p=>c.format(p)}),datetime:a((l,d)=>{let c=new Intl.DateTimeFormat(l,{...d});return p=>c.format(p)}),relativetime:a((l,d)=>{let c=new Intl.RelativeTimeFormat(l,{...d});return p=>c.format(p,d.range||"day")}),list:a((l,d)=>{let c=new Intl.ListFormat(l,{...d});return p=>c.format(p)})}}add(n,i){this.formats[n.toLowerCase().trim()]=i}addCached(n,i){this.formats[n.toLowerCase().trim()]=Id(i)}format(n,i,a,l={}){let d=i.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(p=>p.indexOf(")")>-1)){let p=d.findIndex(g=>g.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,p)].join(this.formatSeparator)}return d.reduce((p,g)=>{let{formatName:x,formatOptions:y}=Em(g);if(this.formats[x]){let v=p;try{let k=l?.formatParams?.[l.interpolationkey]||{},F=k.locale||k.lng||l.locale||l.lng||a;v=this.formats[x](p,F,{...y,...l,...k})}catch(k){this.logger.warn(k)}return v}else this.logger.warn(`there was no format function for ${x}`);return p},n)}},km=(r,n)=>{r.pending[n]!==void 0&&(delete r.pending[n],r.pendingCount--)},da=class extends br{constructor(n,i,a,l={}){super(),this.backend=n,this.store=i,this.services=a,this.languageUtils=a.languageUtils,this.options=l,this.logger=tn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=l.maxParallelReads||10,this.readingCalls=0,this.maxRetries=l.maxRetries>=0?l.maxRetries:5,this.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(a,l.backend,l)}queueLoad(n,i,a,l){let d={},c={},p={},g={};return n.forEach(x=>{let y=!0;i.forEach(v=>{let k=`${x}|${v}`;!a.reload&&this.store.hasResourceBundle(x,v)?this.state[k]=2:this.state[k]<0||(this.state[k]===1?c[k]===void 0&&(c[k]=!0):(this.state[k]=1,y=!1,c[k]===void 0&&(c[k]=!0),d[k]===void 0&&(d[k]=!0),g[v]===void 0&&(g[v]=!0)))}),y||(p[x]=!0)}),(Object.keys(d).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(d),pending:Object.keys(c),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(g)}}loaded(n,i,a){let l=n.split("|"),d=l[0],c=l[1];i&&this.emit("failedLoading",d,c,i),!i&&a&&this.store.addResourceBundle(d,c,a,void 0,void 0,{skipCopy:!0}),this.state[n]=i?-1:2,i&&a&&(this.state[n]=0);let p={};this.queue.forEach(g=>{hm(g.loaded,[d],c),km(g,n),i&&g.errors.push(i),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(x=>{p[x]||(p[x]={});let y=g.loaded[x];y.length&&y.forEach(v=>{p[x][v]===void 0&&(p[x][v]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(g=>!g.done)}read(n,i,a,l=0,d=this.retryTimeout,c){if(!n.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:i,fcName:a,tried:l,wait:d,callback:c});return}this.readingCalls++;let p=(x,y)=>{if(this.readingCalls--,this.waitingReads.length>0){let v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(x&&y&&l{this.read.call(this,n,i,a,l+1,d*2,c)},d);return}c(x,y)},g=this.backend[a].bind(this.backend);if(g.length===2){try{let x=g(n,i);x&&typeof x.then=="function"?x.then(y=>p(null,y)).catch(p):p(null,x)}catch(x){p(x)}return}return g(n,i,p)}prepareLoading(n,i,a={},l){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();Y(n)&&(n=this.languageUtils.toResolveHierarchy(n)),Y(i)&&(i=[i]);let d=this.queueLoad(n,i,a,l);if(!d.toLoad.length)return d.pending.length||l(),null;d.toLoad.forEach(c=>{this.loadOne(c)})}load(n,i,a){this.prepareLoading(n,i,{},a)}reload(n,i,a){this.prepareLoading(n,i,{reload:!0},a)}loadOne(n,i=""){let a=n.split("|"),l=a[0],d=a[1];this.read(l,d,"read",void 0,void 0,(c,p)=>{c&&this.logger.warn(`${i}loading namespace ${d} for language ${l} failed`,c),!c&&p&&this.logger.log(`${i}loaded namespace ${d} for language ${l}`,p),this.loaded(n,c,p)})}saveMissing(n,i,a,l,d,c={},p=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${a}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend?.create){let g={...c,isUpdate:d},x=this.backend.create.bind(this.backend);if(x.length<6)try{let y;x.length===5?y=x(n,i,a,l,g):y=x(n,i,a,l),y&&typeof y.then=="function"?y.then(v=>p(null,v)).catch(p):p(null,y)}catch(y){p(y)}else x(n,i,a,l,p,g)}!n||!n[0]||this.store.addResource(n[0],i,a,l)}}},ia=()=>({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:r=>{let n={};if(typeof r[1]=="object"&&(n=r[1]),Y(r[1])&&(n.defaultValue=r[1]),Y(r[2])&&(n.tDescription=r[2]),typeof r[2]=="object"||typeof r[3]=="object"){let i=r[3]||r[2];Object.keys(i).forEach(a=>{n[a]=i[a]})}return n},interpolation:{escapeValue:!0,format:r=>r,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),kd=r=>(Y(r.ns)&&(r.ns=[r.ns]),Y(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),Y(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),r.supportedLngs?.indexOf?.("cimode")<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r),$i=()=>{},Nm=r=>{Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(i=>{typeof r[i]=="function"&&(r[i]=r[i].bind(r))})},bd="__i18next_supportNoticeShown",Fm=()=>typeof globalThis<"u"&&!!globalThis[bd],Tm=()=>{typeof globalThis<"u"&&(globalThis[bd]=!0)},bm=r=>!!(r?.modules?.backend?.name?.indexOf("Locize")>0||r?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||r?.options?.backend?.backends&&r.options.backend.backends.some(n=>n?.name?.indexOf("Locize")>0||n?.constructor?.name?.indexOf("Locize")>0)||r?.options?.backend?.projectId||r?.options?.backend?.backendOptions&&r.options.backend.backendOptions.some(n=>n?.projectId)),fa=class r extends br{constructor(n={},i){if(super(),this.options=kd(n),this.services={},this.logger=tn,this.modules={external:[]},Nm(this),i&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,i),this;setTimeout(()=>{this.init(n,i)},0)}}init(n={},i){this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),n.defaultNS==null&&n.ns&&(Y(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let a=ia();this.options={...a,...this.options,...kd(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!bm(this)&&!Fm()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("\u{1F310} i18next is maintained with support from Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}"),Tm());let l=x=>x?typeof x=="function"?new x:x:null;if(!this.options.isClone){this.modules.logger?tn.init(l(this.modules.logger),this.options):tn.init(null,this.options);let x;this.modules.formatter?x=this.modules.formatter:x=ca;let y=new Qi(this.options);this.store=new Wi(this.options.resources,this.options);let v=this.services;v.logger=tn,v.resourceStore=this.store,v.languageUtils=y,v.pluralResolver=new ua(y,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.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"),x&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(v.formatter=l(x),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new qi(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new da(l(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(F,...w)=>{this.emit(F,...w)}),this.modules.languageDetector&&(v.languageDetector=l(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=l(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Ki(this.services,this.options),this.translator.on("*",(F,...w)=>{this.emit(F,...w)}),this.modules.external.forEach(F=>{F.init&&F.init(this)})}if(this.format=this.options.interpolation.format,i||(i=$i),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.length>0&&x[0]!=="dev"&&(this.options.lng=x[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(x=>{this[x]=(...y)=>this.store[x](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(x=>{this[x]=(...y)=>(this.store[x](...y),this)});let p=ho(),g=()=>{let x=(y,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(v),i(y,v)};if(this.languages&&!this.isInitialized)return x(null,this.t.bind(this));this.changeLanguage(this.options.lng,x)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),p}loadResources(n,i=$i){let a=i,l=Y(n)?n:this.language;if(typeof n=="function"&&(a=n),!this.options.resources||this.options.partialBundledLanguages){if(l?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();let d=[],c=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(x=>{x!=="cimode"&&d.indexOf(x)<0&&d.push(x)})};l?c(l):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>c(g)),this.options.preload?.forEach?.(p=>c(p)),this.services.backendConnector.load(d,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(p)})}else a(null)}reloadResources(n,i,a){let l=ho();return typeof n=="function"&&(a=n,n=void 0),typeof i=="function"&&(a=i,i=void 0),n||(n=this.languages),i||(i=this.options.ns),a||(a=$i),this.services.backendConnector.reload(n,i,d=>{l.resolve(),a(d)}),l}use(n){if(!n)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!n.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return n.type==="backend"&&(this.modules.backend=n),(n.type==="logger"||n.log&&n.warn&&n.error)&&(this.modules.logger=n),n.type==="languageDetector"&&(this.modules.languageDetector=n),n.type==="i18nFormat"&&(this.modules.i18nFormat=n),n.type==="postProcessor"&&Fd.addPostProcessor(n),n.type==="formatter"&&(this.modules.formatter=n),n.type==="3rdParty"&&this.modules.external.push(n),this}setResolvedLanguage(n){if(!(!n||!this.languages)&&!(["cimode","dev"].indexOf(n)>-1)){for(let i=0;i-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,i){this.isLanguageChangingTo=n;let a=ho();this.emit("languageChanging",n);let l=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},d=(p,g)=>{g?this.isLanguageChangingTo===n&&(l(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,a.resolve((...x)=>this.t(...x)),i&&i(p,(...x)=>this.t(...x))},c=p=>{!n&&!p&&this.services.languageDetector&&(p=[]);let g=Y(p)?p:p&&p[0],x=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(Y(p)?[p]:p);x&&(this.language||l(x),this.translator.language||this.translator.changeLanguage(x),this.services.languageDetector?.cacheUserLanguage?.(x)),this.loadResources(x,y=>{d(y,x)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(n),a}getFixedT(n,i,a){let l=(d,c,...p)=>{let g;typeof c!="object"?g=this.options.overloadTranslationOptionHandler([d,c].concat(p)):g={...c},g.lng=g.lng||l.lng,g.lngs=g.lngs||l.lngs,g.ns=g.ns||l.ns,g.keyPrefix!==""&&(g.keyPrefix=g.keyPrefix||a||l.keyPrefix);let x=this.options.keySeparator||".",y;return g.keyPrefix&&Array.isArray(d)?y=d.map(v=>(typeof v=="function"&&(v=Gi(v,{...this.options,...c})),`${g.keyPrefix}${x}${v}`)):(typeof d=="function"&&(d=Gi(d,{...this.options,...c})),y=g.keyPrefix?`${g.keyPrefix}${x}${d}`:d),this.t(y,g)};return Y(n)?l.lng=n:l.lngs=n,l.ns=i,l.keyPrefix=a,l}t(...n){return this.translator?.translate(...n)}exists(...n){return this.translator?.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,i={}){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;let a=i.lng||this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;let c=(p,g)=>{let x=this.services.backendConnector.state[`${p}|${g}`];return x===-1||x===0||x===2};if(i.precheck){let p=i.precheck(this,c);if(p!==void 0)return p}return!!(this.hasResourceBundle(a,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(a,n)&&(!l||c(d,n)))}loadNamespaces(n,i){let a=ho();return this.options.ns?(Y(n)&&(n=[n]),n.forEach(l=>{this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}),this.loadResources(l=>{a.resolve(),i&&i(l)}),a):(i&&i(),Promise.resolve())}loadLanguages(n,i){let a=ho();Y(n)&&(n=[n]);let l=this.options.preload||[],d=n.filter(c=>l.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return d.length?(this.options.preload=l.concat(d),this.loadResources(c=>{a.resolve(),i&&i(c)}),a):(i&&i(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!n)return"rtl";try{let l=new Intl.Locale(n);if(l&&l.getTextInfo){let d=l.getTextInfo();if(d&&d.direction)return d.direction}}catch{}let i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services?.languageUtils||new Qi(ia());return n.toLowerCase().indexOf("-latn")>1?"ltr":i.indexOf(a.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},i){let a=new r(n,i);return a.createInstance=r.createInstance,a}cloneInstance(n={},i=$i){let a=n.forkResourceStore;a&&delete n.forkResourceStore;let l={...this.options,...n,isClone:!0},d=new r(l);if((n.debug!==void 0||n.prefix!==void 0)&&(d.logger=d.logger.clone(n)),["store","services","language"].forEach(p=>{d[p]=this[p]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},a){let p=Object.keys(this.store.data).reduce((g,x)=>(g[x]={...this.store.data[x]},g[x]=Object.keys(g[x]).reduce((y,v)=>(y[v]={...g[x][v]},y),g[x]),g),{});d.store=new Wi(p,l),d.services.resourceStore=d.store}if(n.interpolation){let g={...ia().interpolation,...this.options.interpolation,...n.interpolation},x={...l,interpolation:g};d.services.interpolator=new qi(x)}return d.translator=new Ki(d.services,l),d.translator.on("*",(p,...g)=>{d.emit(p,...g)}),d.init(l,i),d.translator.options=l,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},be=fa.createInstance(),y0=be.createInstance,v0=be.dir,S0=be.init,C0=be.loadResources,w0=be.reloadResources,_0=be.use,E0=be.changeLanguage,I0=be.getFixedT,k0=be.t,N0=be.exists,F0=be.setDefaultNamespace,T0=be.hasLoadedNamespace,b0=be.loadNamespaces,z0=be.loadLanguages;var Dm=re(oe(),1);var vo=re(oe(),1);var zm=re(Pd());var Yi=(r,n,i,a)=>{let l=[i,{code:n,...a||{}}];if(r?.services?.logger?.forward)return r.services.logger.forward(l,"warn","react-i18next::",!0);$t(l[0])&&(l[0]=`react-i18next:: ${l[0]}`),r?.services?.logger?.warn?r.services.logger.warn(...l):console?.warn&&console.warn(...l)},Od={},rr=(r,n,i,a)=>{$t(i)&&Od[i]||($t(i)&&(Od[i]=new Date),Yi(r,n,i,a))},Ld=(r,n)=>()=>{if(r.isInitialized)n();else{let i=()=>{setTimeout(()=>{r.off("initialized",i)},0),n()};r.on("initialized",i)}},Ji=(r,n,i)=>{r.loadNamespaces(n,Ld(r,i))},pa=(r,n,i,a)=>{if($t(i)&&(i=[i]),r.options.preload&&r.options.preload.indexOf(n)>-1)return Ji(r,i,a);i.forEach(l=>{r.options.ns.indexOf(l)<0&&r.options.ns.push(l)}),r.loadLanguages(n,Ld(r,a))},Rd=(r,n,i={})=>!n.languages||!n.languages.length?(rr(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(r,{lng:i.lng,precheck:(a,l)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!l(a.isLanguageChangingTo,r))return!1}});var $t=r=>typeof r=="string",ga=r=>typeof r=="object"&&r!==null;var Pm=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Om={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xA9","©":"\xA9","®":"\xAE","®":"\xAE","…":"\u2026","…":"\u2026","/":"/","/":"/"},Lm=r=>Om[r],ha=r=>r.replace(Pm,Lm);var ma={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ha,transDefaultProps:void 0},Xi=(r={})=>{ma={...ma,...r}},yo=()=>ma;var Md,Zi=r=>{Md=r},Vt=()=>Md;var Dd=re(oe(),1);var es={type:"3rdParty",init(r){Xi(r.options.react),Zi(r)}};var Dn=(0,Dd.createContext)(),ts=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}};var jd=re(oe(),1);var or=re(oe(),1);var zr=class r extends Error{constructor(n,i,a){super(n),this.name="TranslationParserError",this.position=i,this.translationString=a,Error.captureStackTrace&&Error.captureStackTrace(this,r)}};var Ad={" ":"\xA0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xA9","®":"\xAE","™":"\u2122","…":"\u2026","–":"\u2013","—":"\u2014","‘":"\u2018","’":"\u2019","‚":"\u201A","“":"\u201C","”":"\u201D","„":"\u201E","†":"\u2020","‡":"\u2021","•":"\u2022","′":"\u2032","″":"\u2033","‹":"\u2039","›":"\u203A","§":"\xA7","¶":"\xB6","·":"\xB7"," ":"\u2002"," ":"\u2003"," ":"\u2009","€":"\u20AC","£":"\xA3","¥":"\xA5","¢":"\xA2","¤":"\xA4","×":"\xD7","÷":"\xF7","−":"\u2212","±":"\xB1","≠":"\u2260","≤":"\u2264","≥":"\u2265","≈":"\u2248","≡":"\u2261","∞":"\u221E","∫":"\u222B","∑":"\u2211","∏":"\u220F","√":"\u221A","∂":"\u2202","‰":"\u2030","°":"\xB0","µ":"\xB5","←":"\u2190","↑":"\u2191","→":"\u2192","↓":"\u2193","↔":"\u2194","↵":"\u21B5","⇐":"\u21D0","⇑":"\u21D1","⇒":"\u21D2","⇓":"\u21D3","⇔":"\u21D4","α":"\u03B1","β":"\u03B2","γ":"\u03B3","δ":"\u03B4","ε":"\u03B5","ζ":"\u03B6","η":"\u03B7","θ":"\u03B8","ι":"\u03B9","κ":"\u03BA","λ":"\u03BB","μ":"\u03BC","ν":"\u03BD","ξ":"\u03BE","ο":"\u03BF","π":"\u03C0","ρ":"\u03C1","σ":"\u03C3","τ":"\u03C4","υ":"\u03C5","φ":"\u03C6","χ":"\u03C7","ψ":"\u03C8","ω":"\u03C9","Α":"\u0391","Β":"\u0392","Γ":"\u0393","Δ":"\u0394","Ε":"\u0395","Ζ":"\u0396","Η":"\u0397","Θ":"\u0398","Ι":"\u0399","Κ":"\u039A","Λ":"\u039B","Μ":"\u039C","Ν":"\u039D","Ξ":"\u039E","Ο":"\u039F","Π":"\u03A0","Ρ":"\u03A1","Σ":"\u03A3","Τ":"\u03A4","Υ":"\u03A5","Φ":"\u03A6","Χ":"\u03A7","Ψ":"\u03A8","Ω":"\u03A9","À":"\xC0","Á":"\xC1","Â":"\xC2","Ã":"\xC3","Ä":"\xC4","Å":"\xC5","Æ":"\xC6","Ç":"\xC7","È":"\xC8","É":"\xC9","Ê":"\xCA","Ë":"\xCB","Ì":"\xCC","Í":"\xCD","Î":"\xCE","Ï":"\xCF","Ð":"\xD0","Ñ":"\xD1","Ò":"\xD2","Ó":"\xD3","Ô":"\xD4","Õ":"\xD5","Ö":"\xD6","Ø":"\xD8","Ù":"\xD9","Ú":"\xDA","Û":"\xDB","Ü":"\xDC","Ý":"\xDD","Þ":"\xDE","ß":"\xDF","à":"\xE0","á":"\xE1","â":"\xE2","ã":"\xE3","ä":"\xE4","å":"\xE5","æ":"\xE6","ç":"\xE7","è":"\xE8","é":"\xE9","ê":"\xEA","ë":"\xEB","ì":"\xEC","í":"\xED","î":"\xEE","ï":"\xEF","ð":"\xF0","ñ":"\xF1","ò":"\xF2","ó":"\xF3","ô":"\xF4","õ":"\xF5","ö":"\xF6","ø":"\xF8","ù":"\xF9","ú":"\xFA","û":"\xFB","ü":"\xFC","ý":"\xFD","þ":"\xFE","ÿ":"\xFF","¡":"\xA1","¿":"\xBF","ƒ":"\u0192","ˆ":"\u02C6","˜":"\u02DC","Œ":"\u0152","œ":"\u0153","Š":"\u0160","š":"\u0161","Ÿ":"\u0178","ª":"\xAA","º":"\xBA","¯":"\xAF","´":"\xB4","¸":"\xB8","¹":"\xB9","²":"\xB2","³":"\xB3","¼":"\xBC","½":"\xBD","¾":"\xBE","♠":"\u2660","♣":"\u2663","♥":"\u2665","♦":"\u2666","◊":"\u25CA","‾":"\u203E","⁄":"\u2044","℘":"\u2118","ℑ":"\u2111","ℜ":"\u211C","ℵ":"\u2135"},Am=new RegExp(Object.keys(Ad).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),Hd=r=>r.replace(Am,n=>Ad[n]).replace(/(\d+);/g,(n,i)=>String.fromCharCode(parseInt(i,10))).replace(/([0-9a-fA-F]+);/g,(n,i)=>String.fromCharCode(parseInt(i,16)));var Bd=r=>{let n=[],i=0,a="",l=()=>{a&&(n.push({type:"Text",value:a,position:i-a.length}),a="")};for(;i/);if(c)l(),n.push({type:"TagOpen",value:c[0],position:i,tagNumber:parseInt(c[1],10)}),i+=c[0].length;else{let p=r.slice(i).match(/^<\/(\d+)>/);p?(l(),n.push({type:"TagClose",value:p[0],position:i,tagNumber:parseInt(p[1],10)}),i+=p[0].length):(a+=d,i+=1)}}else a+=d,i+=1}return l(),n};var So=re(oe(),1);var Hm=(r,n,i)=>{let{type:a,props:l={}}=r;if(l.children&&Array.isArray(l.children)&&i){let{children:d,...c}=l;return So.default.createElement(a,c,...n)}return n.length===0?So.default.createElement(a,l):n.length===1?So.default.createElement(a,l,n[0]):So.default.createElement(a,l,...n)},Ud=(r,n=[])=>{if(!r)return[];let i=Bd(r),a=[],l=[],d=new Set,c=()=>{if(l.length===0)return n;let p=l[l.length-1];return p.declaration.props?.children&&Array.isArray(p.declaration.props.children)?p.declaration.props.children:p.declarations};if(i.forEach(p=>{switch(p.type){case"Text":{let g=Hd(p.value);(l.length>0?l[l.length-1].children:a).push(g)}break;case"TagOpen":{let{tagNumber:g}=p,x=c(),y=x[g];if(!y){d.add(g);let v=`<${g}>`;(l.length>0?l[l.length-1].children:a).push(v);break}l.push({tagNumber:g,children:[],position:p.position,declaration:y,declarations:x})}break;case"TagClose":{let{tagNumber:g}=p;if(d.has(g)){let k=`${g}>`;(l.length>0?l[l.length-1].children:a).push(k),d.delete(g);break}if(l.length===0)throw new zr(`Unexpected closing tag ${g}> at position ${p.position}`,p.position,r);let x=l.pop();if(x.tagNumber!==g)throw new zr(`Mismatched tags: expected ${x.tagNumber}> but got ${g}> at position ${p.position}`,p.position,r);let y=Hm(x.declaration,x.children,x.declarations);(l.length>0?l[l.length-1].children:a).push(y)}break}}),l.length>0){let p=l[l.length-1];throw new zr(`Unclosed tag <${p.tagNumber}> at position ${p.position}`,p.position,r)}return a};function ns({i18nKey:r,defaultTranslation:n,content:i,ns:a,values:l={},i18n:d,t:c}){let p=d||Vt();if(!p)return rr(p,"NO_I18NEXT_INSTANCE","IcuTrans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),or.default.createElement(or.default.Fragment,{},n);let g=c||p.t?.bind(p)||(k=>k),x=a||g.ns||p.options?.defaultNS;x=$t(x)?[x]:x||["translation"];let y=l;p.options?.interpolation?.defaultVariables&&(y=l&&Object.keys(l).length>0?{...l,...p.options.interpolation.defaultVariables}:{...p.options.interpolation.defaultVariables});let v=g(r,{defaultValue:n,...y,ns:x});try{let k=Ud(v,i);return or.default.createElement(or.default.Fragment,{},...k)}catch(k){return Yi(p,"ICU_TRANS_RENDER_ERROR",`IcuTrans component error for key "${r}": ${k.message}`,{i18nKey:r,error:k}),or.default.createElement(or.default.Fragment,{},v)}}ns.displayName="IcuTransWithoutContext";function $d({i18nKey:r,defaultTranslation:n,content:i,ns:a,values:l={},i18n:d,t:c}){let{i18n:p,defaultNS:g}=(0,jd.useContext)(Dn)||{},x=d||p||Vt(),y=c||x?.t.bind(x);return ns({i18nKey:r,defaultTranslation:n,content:i,ns:a||y?.ns||g||x?.options?.defaultNS,values:l,i18n:x,t:c})}$d.displayName="IcuTrans";var Me=re(oe(),1),Qd=re(Kd(),1);var qm=(r,n)=>$t(n)?n:ga(n)&&$t(n.defaultValue)?n.defaultValue:Array.isArray(r)?r[r.length-1]:r,Ym={t:qm,ready:!1},Jm=()=>()=>{},he=(r,n={})=>{let{i18n:i}=n,{i18n:a,defaultNS:l}=(0,Me.useContext)(Dn)||{},d=i||a||Vt();d&&!d.reportNamespaces&&(d.reportNamespaces=new ts),d||rr(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let c=(0,Me.useMemo)(()=>({...yo(),...d?.options?.react,...n}),[d,n]),{useSuspense:p,keyPrefix:g}=c,x=r||l||d?.options?.defaultNS,y=$t(x)?[x]:x||["translation"],v=(0,Me.useMemo)(()=>y,y);d?.reportNamespaces?.addUsedNamespaces?.(v);let k=(0,Me.useRef)(0),F=(0,Me.useCallback)(V=>{if(!d)return Jm;let{bindI18n:Q,bindI18nStore:te}=c,pe=()=>{k.current+=1,V()};return Q&&d.on(Q,pe),te&&d.store.on(te,pe),()=>{Q&&Q.split(" ").forEach(ue=>d.off(ue,pe)),te&&te.split(" ").forEach(ue=>d.store.off(ue,pe))}},[d,c]),w=(0,Me.useRef)(),I=(0,Me.useCallback)(()=>{if(!d)return Ym;let V=!!(d.isInitialized||d.initializedStoreOnce)&&v.every(J=>Rd(J,d,c)),Q=n.lng||d.language,te=k.current,pe=w.current;if(pe&&pe.ready===V&&pe.lng===Q&&pe.keyPrefix===g&&pe.revision===te)return pe;let j={t:d.getFixedT(Q,c.nsMode==="fallback"?v:v[0],g),ready:V,lng:Q,keyPrefix:g,revision:te};return w.current=j,j},[d,v,g,c,n.lng]),[z,L]=(0,Me.useState)(0),{t:P,ready:T}=(0,Qd.useSyncExternalStore)(F,I,I);(0,Me.useEffect)(()=>{if(d&&!T&&!p){let V=()=>L(Q=>Q+1);n.lng?pa(d,n.lng,v,V):Ji(d,v,V)}},[d,n.lng,v,T,p,z]);let R=d||{},K=(0,Me.useRef)(null),se=(0,Me.useRef)(),le=V=>{let Q=Object.getOwnPropertyDescriptors(V);Q.__original&&delete Q.__original;let te=Object.create(Object.getPrototypeOf(V),Q);if(!Object.prototype.hasOwnProperty.call(te,"__original"))try{Object.defineProperty(te,"__original",{value:V,writable:!1,enumerable:!1,configurable:!1})}catch{}return te},Ne=(0,Me.useMemo)(()=>{let V=R,Q=V?.language,te=V;V&&(K.current&&K.current.__original===V?se.current!==Q?(te=le(V),K.current=te,se.current=Q):te=K.current:(te=le(V),K.current=te,se.current=Q));let pe=[P,te,T];return pe.t=P,pe.i18n=te,pe.ready=T,pe},[P,R,T,R.resolvedLanguage,R.language,R.languages]);if(d&&p&&!T)throw new Promise(V=>{let Q=()=>V();n.lng?pa(d,n.lng,v,Q):Ji(d,v,Q)});return Ne};var qd=re(oe(),1);var Yd=re(oe(),1);var n1=re(oe(),1);var Zm=re(oe(),1);import*as Zd from"mshell";var Jd={app:{title:"Breeze Shell",manage:"\u7BA1\u7406 Breeze Shell"},sidebar:{mainConfig:"\u8BBE\u7F6E",update:"\u66F4\u65B0",pluginStore:"\u63D2\u4EF6\u5546\u5E97",pluginConfig:"\u63D2\u4EF6\u914D\u7F6E",updateSource:"\u66F4\u65B0\u6E90",problems:"\u95EE\u9898",logs:"\u65E5\u5FD7"},settings:{title:"\u8BBE\u7F6E",theme:"\u4E3B\u9898",animation:"\u52A8\u753B",misc:"\u6742\u9879",language:"\u8BED\u8A00",debugConsole:"\u51FA\u73B0\u95EE\u9898\u65F6\u901A\u77E5\u6211",vsync:"\u5782\u76F4\u540C\u6B65",ignoreOwnerDraw:"\u5FFD\u7565\u81EA\u7ED8\u83DC\u5355",reverseIfOpenToUp:"\u5411\u4E0A\u5C55\u5F00\u65F6\u53CD\u5411\u6392\u5217",tryWin11RoundCorner:"\u5C1D\u8BD5\u4F7F\u7528 Windows 11 \u5706\u89D2",acrylicBackground:"\u4E9A\u514B\u529B\u80CC\u666F",hotkeys:"\u952E\u76D8\u70ED\u952E",showSettingsButton:"\u663E\u793A\u8BBE\u7F6E\u6309\u94AE",patchExplorerFrameDll:"ExplorerFrame \u8865\u4E01",appearance:"\u5916\u89C2",behavior:"\u83DC\u5355\u884C\u4E3A",general:"\u901A\u7528",on:"\u5F00",off:"\u5173",themeDesc:"\u9009\u62E9\u53F3\u952E\u83DC\u5355\u7684\u5C3A\u5BF8\u3001\u95F4\u8DDD\u4E0E\u5706\u89D2\u98CE\u683C",animationDesc:"\u9009\u62E9\u83DC\u5355\u5C55\u5F00\u4E0E\u60AC\u505C\u65F6\u7684\u52A8\u753B\u6548\u679C",acrylicBackgroundDesc:"\u83DC\u5355\u80CC\u666F\u4F7F\u7528\u534A\u900F\u660E\u7684\u6A21\u7CCA\u6750\u8D28",vsyncDesc:"\u4E0E\u663E\u793A\u5668\u5237\u65B0\u7387\u540C\u6B65\u7ED8\u5236\uFF0C\u51CF\u5C11\u753B\u9762\u6495\u88C2",ignoreOwnerDrawDesc:"\u8DF3\u8FC7\u7531\u7A0B\u5E8F\u81EA\u884C\u7ED8\u5236\u7684\u83DC\u5355\u9879\uFF0C\u907F\u514D\u663E\u793A\u5F02\u5E38",reverseIfOpenToUpDesc:"\u83DC\u5355\u5411\u4E0A\u5F39\u51FA\u65F6\u628A\u5E38\u7528\u9879\u4FDD\u6301\u5728\u9760\u8FD1\u9F20\u6807\u7684\u4F4D\u7F6E",hotkeysDesc:"\u5141\u8BB8\u4F7F\u7528\u952E\u76D8\u5FEB\u6377\u952E\u64CD\u4F5C\u83DC\u5355",showSettingsButtonDesc:"\u5728\u83DC\u5355\u5DE6\u4E0A\u89D2\u663E\u793A\u8FDB\u5165 Breeze \u8BBE\u7F6E\u7684\u6309\u94AE",patchExplorerFrameDllDesc:"\u8BA9\u8D44\u6E90\u7BA1\u7406\u5668\u5DE6\u4FA7\u5BFC\u822A\u680F\u4E5F\u4F7F\u7528 Breeze \u53F3\u952E\u83DC\u5355",languageDesc:"\u8BBE\u7F6E\u754C\u9762\u4E0E\u83DC\u5355\u4F7F\u7528\u7684\u8BED\u8A00",debugConsoleDesc:"\u68C0\u6D4B\u5230\u914D\u7F6E\u6216\u811A\u672C\u95EE\u9898\u65F6\u5F39\u51FA\u901A\u77E5"},plugin:{title:"\u63D2\u4EF6",config:"\u63D2\u4EF6\u914D\u7F6E",store:"\u63D2\u4EF6\u5E02\u573A",source:"\u63D2\u4EF6\u6E90",priorityLoad:"\u4F18\u5148\u52A0\u8F7D\u63D2\u4EF6",installed:"\u5DF2\u5B89\u88C5\u63D2\u4EF6",setPriority:"\u8BBE\u4E3A\u4F18\u5148\u52A0\u8F7D",cancelPriority:"\u53D6\u6D88\u4F18\u5148\u52A0\u8F7D",installSuccess:"\u63D2\u4EF6\u5B89\u88C5\u6210\u529F: ",installFailed:"\u63D2\u4EF6\u5B89\u88C5\u5931\u8D25: ",installing:"\u5B89\u88C5\u4E2D...",install:"\u5B89\u88C5",update:"\u66F4\u65B0",notInstalled:"\u672A\u5B89\u88C5",alreadyInstalled:"\u5DF2\u5B89\u88C5",configParseFailed:"\u914D\u7F6E\u6587\u4EF6\u89E3\u6790\u5931\u8D25: ",configChanged:"\u914D\u7F6E\u6587\u4EF6\u53D8\u66F4: ",priorityShort:"\u4F18\u5148",configSubtitle:"\u5DF2\u5B89\u88C5 {{n}} \u4E2A\u63D2\u4EF6",openFolder:"\u6253\u5F00\u63D2\u4EF6\u76EE\u5F55",empty:"\u8FD8\u6CA1\u6709\u5B89\u88C5\u63D2\u4EF6",emptyDesc:"\u53EF\u4EE5\u5728\u63D2\u4EF6\u5546\u5E97\u4E2D\u6D4F\u89C8\u5E76\u5B89\u88C5\u63D2\u4EF6\u3002",storeSubtitle:"\u6765\u81EA {{source}} \u7684\u63D2\u4EF6",reinstall:"\u91CD\u65B0\u5B89\u88C5"},update:{title:"\u66F4\u65B0",currentVersion:"\u5F53\u524D\u7248\u672C",latestVersion:"\u6700\u65B0\u7248\u672C",autoUpdate:"\u542F\u52A8\u65F6\u81EA\u52A8\u66F4\u65B0",changelog:"\u66F4\u65B0\u65E5\u5FD7",updating:"\u66F4\u65B0\u4E2D...",downloading:"\u4E0B\u8F7D\u4E2D",verifying:"\u6B63\u5728\u6821\u9A8C\u6587\u4EF6...",applying:"\u6B63\u5728\u66FF\u6362\u6587\u4EF6...",updateSuccess:"\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\uFF0C\u5C06\u4E8E\u4E0B\u6B21\u91CD\u542F\u8D44\u6E90\u7BA1\u7406\u5668\u751F\u6548",updateFailed:"\u66F4\u65B0\u5931\u8D25: ",cannotMoveFile:"\u65E0\u6CD5\u79FB\u52A8\u5F53\u524D\u6587\u4EF6",pendingRestart:"\u65B0\u7248\u672C\u5DF2\u4E0B\u8F7D\uFF0C\u7B49\u5F85\u91CD\u542F\u8D44\u6E90\u7BA1\u7406\u5668",restartNow:"\u91CD\u542F\u8D44\u6E90\u7BA1\u7406\u5668",injectorVersion:"\u6CE8\u5165\u5668\u7248\u672C",injectorNotInstalled:"\u672A\u5B89\u88C5",autoUpdateDesc:"Breeze \u542F\u52A8\u65F6\u5728\u540E\u53F0\u68C0\u67E5\u5E76\u4E0B\u8F7D\u65B0\u7248\u672C",available:"\u53D1\u73B0\u65B0\u7248\u672C {{version}}",upToDate:"\u5DF2\u662F\u6700\u65B0\u7248\u672C",updateNow:"\u7ACB\u5373\u66F4\u65B0",checked:"\u5DF2\u662F\u6700\u65B0"},common:{loading:"\u52A0\u8F7D\u4E2D...",loadFailed:"\u52A0\u8F7D\u5931\u8D25",pleaseWait:"\u8BF7\u7A0D\u5019",switching:"\u5207\u6362\u6E90\u4E2D...",switchSuccess:"\u5207\u6362\u6E90\u6210\u529F",networkError:"\u7F51\u7EDC\u9519\u8BEF",delete:"\u5220\u9664",version:"\u7248\u672C: ",author:"\u4F5C\u8005: ",currentSource:"\u5F53\u524D\u6E90: ",changeSource:"\u6362\u6E90"},preset:{default:"\u9ED8\u8BA4",compact:"\u7D27\u51D1",loose:"\u5BBD\u677E",rounded:"\u5706\u89D2",square:"\u65B9\u89D2",fast:"\u5FEB\u901F",none:"\u65E0",custom:"\u81EA\u5B9A\u4E49"},customEditor:{theme:{title:"\u81EA\u5B9A\u4E49\u4E3B\u9898",done:"\u5B8C\u6210",sizeSettings:"\u5C3A\u5BF8\u8BBE\u7F6E",radius:"\u5706\u89D2\u5927\u5C0F",itemHeight:"\u9879\u9AD8\u5EA6",itemGap:"\u9879\u95F4\u8DDD",itemRadius:"\u9879\u5706\u89D2",margin:"\u5916\u8FB9\u8DDD",padding:"\u5185\u8FB9\u8DDD",textAndIcon:"\u6587\u672C\u4E0E\u56FE\u6807",fontSize:"\u5B57\u4F53\u5927\u5C0F",textPadding:"\u6587\u672C\u5185\u8FB9\u8DDD",iconPadding:"\u56FE\u6807\u5185\u8FB9\u8DDD",rightIconPadding:"\u53F3\u4FA7\u56FE\u6807\u8FB9\u8DDD",effects:"\u6548\u679C\u8BBE\u7F6E",useDwm:"\u4F18\u5148\u4F7F\u7528\u7CFB\u7EDF\u5706\u89D2\u4E0E\u6750\u8D28",acrylic:"\u4E9A\u514B\u529B\u6548\u679C",backgroundOpacity:"\u80CC\u666F\u4E0D\u900F\u660E\u5EA6",preview:"\u5B9E\u65F6\u9884\u89C8",previewDesc:"\u8C03\u6574\u4E0B\u65B9\u7684\u6570\u503C\uFF0C\u9884\u89C8\u4F1A\u7ACB\u5373\u66F4\u65B0\uFF1B\u4FEE\u6539\u4F1A\u81EA\u52A8\u4FDD\u5B58\u5E76\u5E94\u7528\u5230\u4E0B\u4E00\u6B21\u6253\u5F00\u7684\u83DC\u5355\u3002",multibuttonLineGap:"\u591A\u6309\u94AE\u884C\u95F4\u8DDD",borderWidth:"\u8FB9\u6846\u5BBD\u5EA6",shadowSize:"\u9634\u5F71\u5927\u5C0F",useDwmDesc:"\u7CFB\u7EDF\u652F\u6301\u65F6\u7531 DWM \u7ED8\u5236\u83DC\u5355\u80CC\u666F"},animation:{title:"\u81EA\u5B9A\u4E49\u52A8\u753B",done:"\u5B8C\u6210",menuItem:"\u83DC\u5355\u9879",mainBg:"\u4E3B\u83DC\u5355\u80CC\u666F",submenuBg:"\u5B50\u83DC\u5355\u80CC\u666F",opacity:"\u900F\u660E\u5EA6",x:"X \u8F74\u4F4D\u79FB",y:"Y \u8F74\u4F4D\u79FB",width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",blur:"\u6A21\u7CCA",duration:"\u6301\u7EED\u65F6\u957F",easing:"\u52A8\u753B\u66F2\u7EBF",delayScale:"\u5EF6\u8FDF\u500D\u7387",linear:"\u7EBF\u6027",easeIn:"\u7F13\u5165",easeOut:"\u7F13\u51FA",easeInOut:"\u7F13\u5165\u7F13\u51FA",instant:"\u65E0\u52A8\u753B",global:"\u5168\u5C40",globalTitle:"\u9ED8\u8BA4\u52A8\u753B",globalDesc:"\u672A\u5355\u72EC\u8BBE\u7F6E\u7684\u52A8\u753B\u5C5E\u6027\u90FD\u4F1A\u4F7F\u7528\u8FD9\u91CC\u7684\u53C2\u6570",fallback:"\u9ED8\u8BA4\u66F2\u7EBF",contextMenu:"\u53F3\u952E\u83DC\u5355",modified:"\u5DF2\u4FEE\u6539 {{n}} \u9879",mainMenu:"\u83DC\u5355\u5F39\u51FA",mainMenuDesc:"\u83DC\u5355\u6574\u4F53\u51FA\u73B0\u65F6\u7684\u4F4D\u79FB",menuItemDesc:"\u6BCF\u4E2A\u83DC\u5355\u9879\u51FA\u73B0\u4E0E\u60AC\u505C\u65F6\u7684\u52A8\u753B",mainBgDesc:"\u4E3B\u83DC\u5355\u80CC\u666F\u7684\u5C55\u5F00\u52A8\u753B",submenuBgDesc:"\u5B50\u83DC\u5355\u80CC\u666F\u7684\u5C55\u5F00\u52A8\u753B",appearBlur:"\u51FA\u73B0\u65F6\u6A21\u7CCA",appearWScale:"\u51FA\u73B0\u65F6\u5BBD\u5EA6\u6BD4\u4F8B",appearHScale:"\u51FA\u73B0\u65F6\u9AD8\u5EA6\u6BD4\u4F8B"},reset:"\u6062\u590D\u9ED8\u8BA4"},logs:{title:"\u65E5\u5FD7",subtitle:"\u672C\u6B21\u4F1A\u8BDD\u5171\u6355\u83B7 {{n}} \u6761",pause:"\u6682\u505C",resume:"\u7EE7\u7EED",search:"\u6309\u6587\u672C\u3001\u5B57\u6BB5\u6216\u6765\u6E90\u7B5B\u9009",empty:"\u6CA1\u6709\u7B26\u5408\u5F53\u524D\u7B5B\u9009\u6761\u4EF6\u7684\u65E5\u5FD7",level:{debug:"\u8C03\u8BD5",info:"\u4FE1\u606F",warn:"\u8B66\u544A",error:"\u9519\u8BEF",critical:"\u4E25\u91CD"}},problems:{title:"\u95EE\u9898",subtitle:"Breeze \u68C0\u6D4B\u5230\u7684\u914D\u7F6E\u3001\u811A\u672C\u4E0E\u8FD0\u884C\u65F6\u95EE\u9898",summary:"\u5171 {{n}} \u4E2A\u95EE\u9898\uFF0C\u5176\u4E2D {{errors}} \u4E2A\u9519\u8BEF",none:"\u8FD9\u91CC\u6CA1\u6709\u95EE\u9898",healthy:{title:"\u4E00\u5207\u6B63\u5E38",message:"Breeze \u6CA1\u6709\u68C0\u6D4B\u5230\u4EFB\u4F55\u914D\u7F6E\u3001\u811A\u672C\u6216\u8FD0\u884C\u65F6\u95EE\u9898\u3002"},tab:{all:"\u5168\u90E8",config:"\u914D\u7F6E",script:"\u811A\u672C",runtime:"\u8FD0\u884C\u65F6"},category:{config:"\u914D\u7F6E",script:"\u811A\u672C",runtime:"\u8FD0\u884C\u65F6"},config:{title:"\u5F53\u524D\u751F\u6548\u7684\u914D\u7F6E",reload:"\u91CD\u65B0\u52A0\u8F7D",overrides:"{{n}} \u9879\u8BBE\u7F6E\u4E0E\u9ED8\u8BA4\u503C\u4E0D\u540C",default:"\u9ED8\u8BA4"},copy:"\u590D\u5236",open:"\u6253\u5F00",clearRuntime:"\u6E05\u9664\u8FD0\u884C\u65F6\u95EE\u9898",justNow:"\u521A\u521A",minutesAgo:"{{n}} \u5206\u949F\u524D",hoursAgo:"{{n}} \u5C0F\u65F6\u524D",toastTitle:"Breeze \u53D1\u73B0\u4E86\u95EE\u9898",toastMore:"\u4EE5\u53CA\u53E6\u5916 {{n}} \u4E2A",toastView:"\u67E5\u770B\u8BE6\u60C5"},test:{title:"\u6D4B\u8BD5",cpu_exception_crash:"\u5F02\u5E38\u5D29\u6E83",cpp_exception_crash:"C++ \u5F02\u5E38\u5D29\u6E83",js_exception_crash:"JavaScript \u5F02\u5E38\u5D29\u6E83"}};var Xd={app:{title:"Breeze Shell",manage:"Manage Breeze Shell"},sidebar:{mainConfig:"Settings",update:"Update",pluginStore:"Plugin Store",pluginConfig:"Plugin Config",updateSource:"Update source",problems:"Problems",logs:"Logs"},settings:{title:"Settings",theme:"Theme",animation:"Animation",misc:"Miscellaneous",language:"Language",debugConsole:"Notify me about problems",vsync:"Vertical sync",ignoreOwnerDraw:"Ignore owner-drawn menus",reverseIfOpenToUp:"Reverse when opening upward",tryWin11RoundCorner:"Try Windows 11 Round Corners",acrylicBackground:"Acrylic background",hotkeys:"Keyboard hotkeys",showSettingsButton:"Show settings button",patchExplorerFrameDll:"ExplorerFrame patch",appearance:"Appearance",behavior:"Menu behavior",general:"General",on:"On",off:"Off",themeDesc:"Pick the size, spacing and corner style of the context menu",animationDesc:"Pick how menus animate when they open and on hover",acrylicBackgroundDesc:"Use a translucent blurred material behind menus",vsyncDesc:"Sync drawing with the display refresh rate to avoid tearing",ignoreOwnerDrawDesc:"Skip items that applications draw themselves",reverseIfOpenToUpDesc:"Keep common items close to the cursor when a menu opens upward",hotkeysDesc:"Allow keyboard shortcuts inside menus",showSettingsButtonDesc:"Show a Breeze settings button at the top-left of menus",patchExplorerFrameDllDesc:"Use Breeze menus in the Explorer navigation pane too",languageDesc:"Language used by settings and menus",debugConsoleDesc:"Show a notification when configuration or script problems are found"},plugin:{title:"Plugins",config:"Plugin Config",store:"Plugin Store",source:"Plugin Source",priorityLoad:"Priority Load Plugins",installed:"Installed Plugins",setPriority:"Set Priority Load",cancelPriority:"Cancel Priority Load",installSuccess:"Plugin installed: ",installFailed:"Plugin installation failed: ",installing:"Installing...",install:"Install",update:"Update",notInstalled:"Not Installed",alreadyInstalled:"Installed",configParseFailed:"Config file parse failed: ",configChanged:"Config file changed: ",priorityShort:"Priority",configSubtitle:"{{n}} plugins installed",openFolder:"Open plugin folder",empty:"No plugins installed yet",emptyDesc:"Browse the plugin store to find and install plugins.",storeSubtitle:"Plugins from {{source}}",reinstall:"Reinstall"},update:{title:"Update",currentVersion:"Current Version",latestVersion:"Latest Version",autoUpdate:"Auto Update on Startup",changelog:"Changelog",updating:"Updating...",downloading:"Downloading",verifying:"Verifying file...",applying:"Replacing files...",updateSuccess:"New version downloaded, will take effect next time the file manager is restarted",updateFailed:"Update failed: ",cannotMoveFile:"Cannot move current file",pendingRestart:"New version downloaded, waiting for Explorer restart",restartNow:"Restart Explorer",injectorVersion:"Injector Version",injectorNotInstalled:"Not installed",autoUpdateDesc:"Check for and download new versions in the background on startup",available:"Version {{version}} is available",upToDate:"You're up to date",updateNow:"Update now",checked:"Up to date"},common:{loading:"Loading...",loadFailed:"Load Failed",pleaseWait:"Please Wait",switching:"Switching source...",switchSuccess:"Switch Success",networkError:"Network Error",delete:"Delete",version:"Version: ",author:"Author: ",currentSource:"Current source: ",changeSource:"Change Source"},preset:{default:"Default",compact:"Compact",loose:"Loose",rounded:"Rounded",square:"Square",fast:"Fast",none:"None",custom:"Custom"},customEditor:{theme:{title:"Custom Theme",done:"Done",sizeSettings:"Size Settings",radius:"Border Radius",itemHeight:"Item Height",itemGap:"Item Gap",itemRadius:"Item Radius",margin:"Margin",padding:"Padding",textAndIcon:"Text & Icon",fontSize:"Font Size",textPadding:"Text Padding",iconPadding:"Icon Padding",rightIconPadding:"Right Icon Padding",effects:"Effects",useDwm:"Prefer system corners and material",acrylic:"Acrylic Effect",backgroundOpacity:"Background opacity",preview:"Live preview",previewDesc:"Adjust the values below and the preview updates instantly. Changes are saved and apply to the next menu you open.",multibuttonLineGap:"Multi-button line gap",borderWidth:"Border width",shadowSize:"Shadow size",useDwmDesc:"Let DWM draw the menu background when supported"},animation:{title:"Custom Animation",done:"Done",menuItem:"Menu items",mainBg:"Main menu background",submenuBg:"Submenu background",opacity:"Opacity",x:"X Position",y:"Y Position",width:"Width",height:"Height",blur:"Blur",duration:"Duration",easing:"Easing",delayScale:"Delay scale",linear:"Linear",easeIn:"Ease In",easeOut:"Ease Out",easeInOut:"Ease In Out",instant:"No animation",global:"Global",globalTitle:"Default animation",globalDesc:"Used by every animated property without its own settings",fallback:"Default curve",contextMenu:"Context menu",modified:"{{n}} changed",mainMenu:"Menu pop-up",mainMenuDesc:"Offset of the whole menu as it appears",menuItemDesc:"How each item appears and reacts to hover",mainBgDesc:"Expansion of the main menu background",submenuBgDesc:"Expansion of submenu backgrounds",appearBlur:"Blur on appear",appearWScale:"Initial width scale",appearHScale:"Initial height scale"},reset:"Reset to default"},logs:{title:"Logs",subtitle:"{{n}} entries captured in this session",pause:"Pause",resume:"Resume",search:"Filter by text, field or source",empty:"No log entries match the current filters",level:{debug:"Debug",info:"Info",warn:"Warning",error:"Error",critical:"Critical"}},problems:{title:"Problems",subtitle:"Configuration, script and runtime issues detected by Breeze",summary:"{{n}} problems detected, {{errors}} of them errors",none:"Nothing to report here",healthy:{title:"Everything looks good",message:"Breeze has not detected any configuration, script or runtime problems."},tab:{all:"All",config:"Config",script:"Scripts",runtime:"Runtime"},category:{config:"Config",script:"Script",runtime:"Runtime"},config:{title:"Active configuration",reload:"Reload",overrides:"{{n}} settings differ from the defaults",default:"default"},copy:"Copy",open:"Open",clearRuntime:"Clear runtime",justNow:"just now",minutesAgo:"{{n}} min ago",hoursAgo:"{{n}} h ago",toastTitle:"Breeze found a problem",toastMore:"and {{n}} more",toastView:"View details"},test:{title:"Test",crash:"Crash"}};be.use(es).init({lng:Zd.breeze.user_language()||"zh-CN",fallbackLng:"zh-CN",resources:{"zh-CN":{translation:Jd},"en-US":{translation:Xd}},interpolation:{escapeValue:!1}});var ya=r=>{be.changeLanguage(r)},ef=()=>be.language,va=be;var i1=()=>{try{return!!JSON.parse(Or.diagnostics.effective_config()).debug_console}catch{return!1}},Sa=r=>{if(typeof r=="string")return r;if(r instanceof Error)return`${r.message}${r.stack?`
`+r.stack:""}`;try{return JSON.stringify(r)}catch{return String(r)}},s1=()=>{let n=(new Error().stack?.split(`
-`)??[]).find((i,a)=>a>2&&!i.includes("diagnostics"));return n?n.trim().replace(/^at\s+/,""):""},Co=(r,n)=>{let i=n.filter(c=>typeof c!="object"||c===null||c instanceof Error),a=n.filter(c=>typeof c=="object"&&c!==null&&!(c instanceof Error)),l="";a.length===1&&!Array.isArray(a[0])?l=Sa(a[0]):a.length>0&&(l=Sa(a));let d=i.map(Sa).join(" ")||(l?"(object)":"");Or.diagnostics.log(r,d,l,s1())},tf=()=>{globalThis.console={...globalThis.console,log:(...r)=>Co("info",r),info:(...r)=>Co("info",r),debug:(...r)=>Co("debug",r),warn:(...r)=>Co("warn",r),error:(...r)=>Co("error",r)}},nf=r=>{let n=()=>{let i=Or.diagnostics.take_new_problems().filter(c=>c.severity==="error"||c.severity==="critical");if(i.length===0||!i1())return;let a=va.t.bind(va),l=i[0],d=i.length>1?` (${a("problems.toastMore",{n:i.length-1})})`:"";Or.notification.send_with_buttons(a("problems.toastTitle"),`${l.title}${d}`,[[a("problems.toastView"),r]])};setTimeout(n,1500),setInterval(n,3e3)};var rs={"Github Raw":"https://raw.githubusercontent.com/breeze-shell/plugins-packed/refs/heads/main/",Enlysure:"https://breeze.enlysure.com/","Enlysure Shanghai":"https://breeze-c.enlysure.com/"};import*as ft from"mshell";var Ca=(r,n)=>{let i=n.split("."),a=r;for(let l of i){if(a==null)return;a=a[l]}return a},rf=(r,n,i)=>{let a=n.split("."),l=r;for(let d=0;d{for(let i of of)i(r,n)});globalThis.on_plugin_menu={};var sf=(r,n={})=>{let i="config.json",{name:a,url:l}=r,d={},c=a.endsWith(".js")?a.slice(0,-3):a,p=n,g=new Set,x={i18n:{define:(y,v)=>{d[y]=v},t:y=>d[ft.breeze.user_language()][y]||y},set_on_menu:y=>{globalThis.on_plugin_menu[c]=y},config_directory:os+c+"/",config:{read_config(){if(ft.fs.exists(x.config_directory+i))try{p=JSON.parse(ft.fs.read(x.config_directory+i))}catch(y){ft.println(`[${a}] Config file parse failed: ${y}`)}},write_config(){ft.fs.write(x.config_directory+i,JSON.stringify(p,null,4))},get(y){return Ca(p,y)||Ca(n,y)||null},set(y,v){rf(p,y,v),x.config.write_config()},all(){return p},on_reload(y){let v=()=>{g.delete(y)};return g.add(y),v}},log(...y){ft.println(`[${a}]`,...y)}};return ft.fs.mkdir(x.config_directory),x.config.read_config(),of.add((y,v)=>{if(y.replace(os,"")===`${c}\\${i}`){ft.println(`[${a}] Config file changed: ${y} ${v}`),x.config.read_config();for(let F of g)F(p)}}),x};var Ef=re(wf());import*as sr from"mshell";var If=r=>r&&typeof r.downcast=="function"?r.downcast():r,fs=(r,n,i)=>{let a=If(r),l=a?.["set_"+n];if(typeof l=="function"){l.apply(a,i);return}if(a&&n in a){a[n]=i.length<=1?i[0]:i;return}throw new Error(`Unknown binding setter: ${n}`)},La=(r,n)=>{let i=If(r),a=i?.["get_"+n];if(typeof a=="function")return a.call(i);if(i&&n in i)return i[n];throw new Error(`Unknown binding getter: ${n}`)},$=r=>({set:(n,i)=>{let a=Array.isArray(i)?i:[i];fs(n,r,a)},get:n=>La(n,r)}),a1=(r,n=4)=>({set:(i,a)=>{let l=Array.isArray(a)?a:[a];for(;l.lengthLa(i,r)}),pt=r=>({set:(n,i)=>{fs(n,r,[u1(i)])},get:n=>c1(La(n,r))}),u1=r=>{if(r.startsWith("#")){let n=r.slice(1);if(n.length===6)return[parseInt(n.slice(0,2),16)/255,parseInt(n.slice(2,4),16)/255,parseInt(n.slice(4,6),16)/255,1];if(n.length===8)return[parseInt(n.slice(0,2),16)/255,parseInt(n.slice(2,4),16)/255,parseInt(n.slice(4,6),16)/255,parseInt(n.slice(6,8),16)/255]}},c1=r=>{let n=Math.round(r[0]*255).toString(16).padStart(2,"0"),i=Math.round(r[1]*255).toString(16).padStart(2,"0"),a=Math.round(r[2]*255).toString(16).padStart(2,"0"),l=Math.round(r[3]*255).toString(16).padStart(2,"0");return`#${n}${i}${a}${l}`},d1={set:(r,n)=>{for(let i of n)r.set_animation(i,!0);r._last_animated_vars=n},get:r=>r._last_animated_vars},f1={set:(r,n)=>{for(let i of n.vars)r.set_animation_curve(i,n.duration,n.easing);r._last_animation_curve=n},get:r=>r._last_animation_curve},cs={animatedVars:d1,animationCurve:f1,x:$("x"),y:$("y"),width:$("width"),height:$("height"),flexGrow:$("flex_grow"),flexShrink:$("flex_shrink")},ds={text:{creator:sr.breeze_ui.widgets_factory.create_text_widget,props:{text:{set:(r,n)=>{r.text=Array.isArray(n)?n.join(""):n},get:r=>r.text},fontSize:$("font_size"),fontWeight:$("font_weight"),color:pt("color"),maxWidth:$("max_width"),fontFamily:$("font_family"),...cs}},textbox:{creator:sr.breeze_ui.widgets_factory.create_textbox_widget,props:{text:$("text"),value:{set:(r,n)=>{r.text=n},get:r=>r.text},placeholder:$("placeholder"),fontSize:$("font_size"),fontWeight:$("font_weight"),paddingX:$("padding_x"),paddingY:$("padding_y"),borderRadius:$("border_radius"),minHeight:$("min_height"),preferredMultilineHeight:$("preferred_multiline_height"),lineHeightMultiplier:$("line_height_multiplier"),multiline:$("multiline"),readonly:$("readonly"),disabled:$("disabled"),backgroundColor:pt("background_color"),readonlyBackgroundColor:pt("readonly_background_color"),disabledBackgroundColor:pt("disabled_background_color"),borderColor:pt("border_color"),focusBorderColor:pt("focus_border_color"),textColor:pt("text_color"),disabledTextColor:pt("disabled_text_color"),placeholderColor:pt("placeholder_color"),selectionColor:pt("selection_color"),caretColor:pt("caret_color"),compositionUnderlineColor:pt("composition_underline_color"),onChange:$("on_change"),onFocus:$("on_focus"),onBlur:$("on_blur"),onKeyDown:$("on_key_down"),...cs}},flex:{creator:sr.breeze_ui.widgets_factory.create_flex_layout_widget,props:{padding:a1("padding"),paddingTop:$("padding_top"),paddingRight:$("padding_right"),paddingBottom:$("padding_bottom"),paddingLeft:$("padding_left"),onClick:$("on_click"),onMouseEnter:$("on_mouse_enter"),onMouseLeave:$("on_mouse_leave"),onMouseDown:$("on_mouse_down"),onMouseUp:$("on_mouse_up"),onMouseMove:$("on_mouse_move"),backgroundColor:pt("background_color"),borderColor:pt("border_color"),borderRadius:$("border_radius"),borderWidth:$("border_width"),backgroundPaint:$("background_paint"),borderPaint:$("border_paint"),horizontal:$("horizontal"),autoSize:$("auto_size"),justifyContent:$("justify_content"),alignItems:$("align_items"),gap:$("gap"),flexGrow:$("flex_grow"),flexShrink:$("flex_shrink"),maxHeight:$("max_height"),enableScrolling:$("enable_scrolling"),enableChildClipping:$("enable_child_clipping"),cropOverflow:$("crop_overflow"),opacity:$("opacity"),...cs}},img:{creator:sr.breeze_ui.widgets_factory.create_image_widget,props:{svg:$("svg"),...cs}},spacer:{creator:sr.breeze_ui.widgets_factory.create_spacer_widget,props:{size:$("size")}}},_f=new Set(["animatedVars","animationCurve"]),Pa=new WeakMap,kf=r=>{let n=Pa.get(r);return n||Pa.set(r,n=[]),n},Oa=(r,n)=>{let i=kf(r),a=i.indexOf(n);a>=0&&(i.splice(a,1),r.remove_child(n))},Io=(r,n,i)=>{Oa(r,n);let a=kf(r),l=i?a.indexOf(i):-1;l<0?(a.push(n),r.append_child(n)):(a.splice(l,0,n),r.append_child_after(n,l))},Nf={getPublicInstance(r){return r},getRootHostContext(r){return null},getChildHostContext(r,n,i){return r},prepareForCommit(r){return null},resetAfterCommit(r){},createInstance(r,n,i,a,l){try{if(!ds[r])throw new Error(`Unknown component type: ${r}`);let d=ds[r].creator(),c=Object.keys(n).filter(p=>p!=="children");c.sort((p,g)=>Number(_f.has(p))-Number(_f.has(g)));for(let p of c){let g=ds[r]?.props?.[p];if(g)g.set(d,n[p]);else throw new Error(`Unknown property: ${p} for component type: ${r}`)}return d}catch(d){throw console.error(`Error creating instance of type ${r}:`,d,d.stack),d}},appendInitialChild(r,n){Io(r,n)},finalizeInitialChildren(r,n,i,a,l){return!1},prepareUpdate(r,n,i,a,l,d){let c={};for(let p in a)a[p]!==i[p]&&(c[p]=a[p]);return Object.keys(c).length>0?c:null},shouldSetTextContent(r,n){return!1},createTextInstance(r,n,i,a){let l=sr.breeze_ui.widgets_factory.create_text_widget();return l.text=r,l},scheduleTimeout:setTimeout,cancelTimeout:clearTimeout,noTimeout:-1,isPrimaryRenderer:!0,warnsIfNotActing:!0,supportsMutation:!0,supportsPersistence:!1,supportsHydration:!1,getInstanceFromNode(r){throw new Error("getInstanceFromNode not implemented")},beforeActiveInstanceBlur(){},afterActiveInstanceBlur(){},preparePortalMount(r){throw new Error("preparePortalMount not implemented")},prepareScopeUpdate(r,n){throw new Error("prepareScopeUpdate not implemented")},getInstanceFromScope(r){throw new Error("getInstanceFromScope not implemented")},getCurrentEventPriority(){return 16},detachDeletedInstance(r){},commitMount(r,n,i,a){},commitUpdate(r,n,i,a,l,d){for(let c in l){if(c==="children")continue;let p=ds[i].props[c];p&&l[c]!==a[c]&&p.set(r,l[c])}},clearContainer(r){for(let n of r.children())r.remove_child(n);Pa.delete(r)},appendChild(r,n){Io(r,n)},appendChildToContainer(r,n){Io(r,n)},removeChild(r,n){Oa(r,n)},removeChildFromContainer(r,n){Oa(r,n)},commitTextUpdate(r,n,i){r.text=i},insertBefore(r,n,i){Io(r,n,i)},insertInContainerBefore(r,n,i){Io(r,n,i)},resetTextContent(r){let n=r.downcast();("text"in n||"set_text"in n)&&fs(n,"text",[""])}},za=(0,Ef.default)(Nf),Ff=r=>{let n=za.createContainer(r,0,null,!1,null,"",i=>console.error(i),null);return{render:i=>{za.updateContainer(i,n,null,null)},unmount:()=>{za.updateContainer(null,n,null,null)}}};import*as Xp from"mshell";var ko={"Github Raw":"https://raw.githubusercontent.com/breeze-shell/plugins-packed/refs/heads/main/",Enlysure:"https://breeze.enlysure.com/","Enlysure Shanghai":"https://breeze-c.enlysure.com/"};var Tf='',bf='',zf='',ps='',Pf='',Of='',Lf='',Rf='',gs='',No='',Mf='',Df='',Ra='',Ma='',Af='',Fo='',Hf='',To='',Bf='',Uf='',jf='',hs='',$f='',Vf='',ms='',Wf='',Gf='',xs='',Kf='',Lr='',Qf='',ys='',qf='',bo=920,Rr=660,Da=220,vs=28,we=bo-Da-vs*2,ae=14,qe=Rr-100,xn={default:null,compact:{radius:4,item_height:20,item_gap:2,item_radius:3,margin:4,padding:4,text_padding:6,icon_padding:3,right_icon_padding:16,multibutton_line_gap:-4},loose:{radius:6,item_height:24,item_gap:4,item_radius:8,margin:6,padding:6,text_padding:8,icon_padding:4,right_icon_padding:20,multibutton_line_gap:-6},rounded:{radius:12,item_radius:12},square:{radius:0,item_radius:0}},ze={easing:"mutation"},zo={default:null,fast:{item:{opacity:{delay_scale:0},width:ze,x:ze,blur:ze},submenu_bg:{opacity:{delay_scale:0,duration:100}},main_bg:{opacity:ze}},none:{item:{opacity:ze,width:ze,x:ze,y:ze,blur:ze},submenu_bg:{opacity:ze,x:ze,y:ze,w:ze,h:ze},main_bg:{opacity:ze,x:ze,y:ze,w:ze,h:ze}}};import*as Hn from"mshell";var p1="Enlysure",Aa=Hn.breeze.data_directory()+"/config.json",Ss=()=>{if(!Hn.fs.exists(Aa))return{};try{let r=Hn.fs.read(Aa);return r?JSON.parse(r):{}}catch(r){return Hn.println("[Config] Failed to load config:",r),{}}},Yf=r=>{Hn.fs.write(Aa,JSON.stringify(r,null,4))},Jf=r=>r?.auto_update!==!1,Cs=r=>{let n=r?.update_source;return n&&Object.prototype.hasOwnProperty.call(rs,n)?n:p1};var Ha=()=>Ss(),Ba=r=>{Yf(r)};import*as gt from"mshell";var Ua=()=>gt.fs.readdir(gt.breeze.data_directory()+"/scripts").map(r=>r.split("/").pop()).filter(r=>r.endsWith(".js")||r.endsWith(".disabled")).map(r=>r.replace(".js","").replace(".disabled","")),ja=r=>{let n=gt.breeze.data_directory()+"/scripts/"+r;gt.fs.exists(n+".js")?gt.fs.rename(n+".js",n+".js.disabled"):gt.fs.exists(n+".js.disabled")&>.fs.rename(n+".js.disabled",n+".js")},$a=r=>{let n=gt.breeze.data_directory()+"/scripts/"+r;gt.fs.exists(n+".js")&>.fs.remove(n+".js"),gt.fs.exists(n+".js.disabled")&>.fs.remove(n+".js.disabled")};var Wa=(r,n)=>typeof r=="number"&&typeof n=="number"?Math.abs(r-n)<.001:r===n,Va=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),ar=r=>{let n=new Set;for(let i of Object.values(r))i&&Object.keys(i).forEach(a=>n.add(a));return[...n]},Bn=(r,n,i)=>Object.fromEntries(i.map(a=>[a,r?.[a]??n?.[a]])),Ga=(r,n,i)=>{let a=ar(i),l=Bn(r,n,a);for(let[d,c]of Object.entries(i)){let p=Bn(c??{},n,a);if(a.every(g=>Wa(l[g],p[g])))return d}return"custom"},Ka=(r,n,i)=>{let a=new Set(ar(i)),l={};for(let[d,c]of Object.entries(r??{}))a.has(d)||(l[d]=c);return{...l,...n??{}}},lr=(r,n="",i={})=>{if(!Va(r))return i;for(let[a,l]of Object.entries(r)){let d=n?`${n}.${a}`:a;Va(l)?lr(l,d,i):i[d]=l}return i},Qa=(r,n,i)=>{let a=lr(n),l={...a,...lr(r)};for(let[d,c]of Object.entries(i)){let p={...a,...lr(c??{})};if([...new Set([...Object.keys(l),...Object.keys(p)])].every(x=>Wa(l[x],p[x])))return d}return"custom"};var on=(r,n,i,a)=>{let[l,...d]=n.split("."),c=Va(r)?{...r}:{};if(d.length===0)i===void 0||a!==void 0&&Wa(i,a?.[l])?delete c[l]:c[l]=i;else{let p=on(c[l],d.join("."),i,a?.[l]);Object.keys(p).length===0?delete c[l]:c[l]=p}return c};var Xf=r=>r?{backdrop:"#DCE8F5",backdropTo:"#EEE4F3",menu:"#FBFBFB",stroke:"#000000",hover:"#000000",text:"#1B1B1B",textDim:"#6E6E6E",accent:"#005FB8",shadow:"#000000"}:{backdrop:"#1B2A3A",backdropTo:"#2A2034",menu:"#2C2C2C",stroke:"#FFFFFF",hover:"#FFFFFF",text:"#F2F2F2",textDim:"#A0A0A0",accent:"#60CDFF",shadow:"#000000"},U=r=>(Math.round(r*100)/100).toString(),Zf=(r,n,i,a,l)=>``,Mr=(r,n,i=176,a=112)=>{let l=Xf(n),d=Math.min(a*.8/120,i*.8/168),c=4,p=r.item_height*d,g=r.item_gap*d,x=r.padding*d,y=r.margin*d,v=168*d,k=x*2+c*p+(c-1)*g,F=(i-v)/2,w=(a-k)/2,I=Math.min(r.radius*d,k/2),z=Math.min(r.item_radius*d,p/2),L=Math.max(4,Math.min(p-4,9)),P=[.62,.78,.5,.68],T=``;T+=``;for(let R=0;R`);let Ne=K+r.icon_padding*d*2,V=se+p/2;T+=``;let Q=Ne+L+r.text_padding*d,te=K+le-Math.max(r.right_icon_padding*d,4)-(R===2?6:0),pe=Math.max(8,(te-Q)*P[R]),ue=Math.max(2.5,Math.min(p*.3,5));if(T+=``,R===2){let j=K+le-r.right_icon_padding*d*.6-3;T+=``}}return Zf(i,a,l,T,"bg")},ws=(r,n,i=176,a=112)=>{let l=Xf(n),d=4,c=4,p=i*.56,g=Math.max(8,(a*.72-16-c*(d-1))/d),x=8*2+d*g+(d-1)*c,y=i*.07,v=(a-x)/2,k=p-34,F=``;for(let T=0;T=1;le--){let Ne=K+le*(r==="fast"?3:4);F+=``}F+=``}let w=y+p+i*.07,I=i-w-i*.07,z=v+6,L=x-12,P;return r==="none"?P=`M${w} ${U(z+L)} L${w} ${z} L${w+I} ${z}`:r==="fast"?P=`M${w} ${U(z+L)} C${U(w+I*.15)} ${z} ${U(w+I*.3)} ${z} ${w+I} ${z}`:r==="custom"?P=`M${w} ${U(z+L)} C${U(w+I*.2)} ${U(z+L*.2)} ${U(w+I*.5)} ${U(z+L*.9)} ${U(w+I*.7)} ${U(z+L*.35)} S${w+I} ${z} ${w+I} ${z}`:P=`M${w} ${U(z+L)} C${U(w+I*.5)} ${U(z+L)} ${U(w+I*.5)} ${z} ${w+I} ${z}`,F+=``,F+=``,Zf(i,a,l,F,"bg")},g1={linear:r=>r,ease_in:r=>r*r,ease_out:r=>1-(1-r)*(1-r),ease_in_out:r=>.5*Math.sin(r*Math.PI-Math.PI/2)+.5},qa=(r,n,i,a=40,l=28)=>{let c=g1[r],p;if(!c)p=`M3 ${l-3} L3 3 L${a-3} 3`;else{let g=[];for(let x=0;x<=24;x++){let y=x/24;g.push(`${U(3+y*(a-3*2))} ${U(l-3-c(y)*(l-3*2))}`)}p=`M${g.join(" L")}`}return``};import{menu_controller as h1}from"mshell";var ur=r=>{let n=h1.create_detached();r(n),n.show_at_cursor()};var ep=re(oe()),cr=(0,ep.createContext)(null);var tp=re(oe()),Po=(0,tp.createContext)(null);var np=re(oe()),Ya=(0,np.createContext)(null);var rp=re(oe()),Oo=(0,rp.createContext)(null);var op=re(oe()),yn=(0,op.createContext)(null);var ip=re(oe()),vn=(0,ip.createContext)(null);var sp=re(oe()),Sn=(0,sp.createContext)(null);var lp=re(oe()),Lo=(0,lp.createContext)(null);import*as Hr from"mshell";var Mt=re(oe());var ap=re(oe());import{breeze as m1}from"mshell";var O=(0,ap.memo)(({children:r,fontSize:n=14,maxWidth:i=-1,color:a,opacity:l,fontWeight:d=400,fontFamily:c="main"})=>{if(a||(a=m1.is_light_theme()?"#000000ff":"#ffffffff"),a instanceof Array&&(a=`#${a.slice(0,4).map(g=>g.toString(16).padStart(2,"0")).join("")}`),l!==void 0){let g=parseInt(a.slice(7,9),16),x=Math.round(g*l);a=a.slice(0,7)+x.toString(16).padStart(2,"0")}let p=Array.isArray(r)?r.join(""):String(r);return h("text",{text:p,fontSize:n,maxWidth:i,color:a,fontWeight:d,fontFamily:c})});var yp=re(oe());import{breeze as x1}from"mshell";var y1=r=>{let n=r.replace("#","");if(n.length===8){let i=parseInt(n.slice(6,8),16)/255;return`fill="#${n.slice(0,6)}" fill-opacity="${i.toFixed(3)}"`}return`fill="#${n}"`},De=(r,n=14,i)=>h("img",{svg:r.replace("