
| Current Path : /var/www/bavspeed/html/assets/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/bavspeed/html/assets/index-DwoT_Ts7.js |
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const h of o)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function a(o){const h={};return o.integrity&&(h.integrity=o.integrity),o.referrerPolicy&&(h.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?h.credentials="include":o.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function r(o){if(o.ep)return;o.ep=!0;const h=a(o);fetch(o.href,h)}})();function Wx(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Hh={exports:{}},mc={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var vv;function Jx(){if(vv)return mc;vv=1;var s=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(r,o,h){var m=null;if(h!==void 0&&(m=""+h),o.key!==void 0&&(m=""+o.key),"key"in o){h={};for(var p in o)p!=="key"&&(h[p]=o[p])}else h=o;return o=h.ref,{$$typeof:s,type:r,key:m,ref:o!==void 0?o:null,props:h}}return mc.Fragment=n,mc.jsx=a,mc.jsxs=a,mc}var bv;function eE(){return bv||(bv=1,Hh.exports=Jx()),Hh.exports}var f=eE(),$h={exports:{}},Ye={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _v;function tE(){if(_v)return Ye;_v=1;var s=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),N=Symbol.iterator;function C(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,M={};function R(w,T,le){this.props=w,this.context=T,this.refs=M,this.updater=le||D}R.prototype.isReactComponent={},R.prototype.setState=function(w,T){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,T,"setState")},R.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function I(){}I.prototype=R.prototype;function H(w,T,le){this.props=w,this.context=T,this.refs=M,this.updater=le||D}var G=H.prototype=new I;G.constructor=H,A(G,R.prototype),G.isPureReactComponent=!0;var F=Array.isArray,Q={H:null,A:null,T:null,S:null,V:null},Z=Object.prototype.hasOwnProperty;function ie(w,T,le,oe,pe,Oe){return le=Oe.ref,{$$typeof:s,type:w,key:T,ref:le!==void 0?le:null,props:Oe}}function ne(w,T){return ie(w.type,T,void 0,void 0,void 0,w.props)}function re(w){return typeof w=="object"&&w!==null&&w.$$typeof===s}function ge(w){var T={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(le){return T[le]})}var Se=/\/+/g;function Ae(w,T){return typeof w=="object"&&w!==null&&w.key!=null?ge(""+w.key):T.toString(36)}function Te(){}function se(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(Te,Te):(w.status="pending",w.then(function(T){w.status==="pending"&&(w.status="fulfilled",w.value=T)},function(T){w.status==="pending"&&(w.status="rejected",w.reason=T)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function Ne(w,T,le,oe,pe){var Oe=typeof w;(Oe==="undefined"||Oe==="boolean")&&(w=null);var Ee=!1;if(w===null)Ee=!0;else switch(Oe){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(w.$$typeof){case s:case n:Ee=!0;break;case _:return Ee=w._init,Ne(Ee(w._payload),T,le,oe,pe)}}if(Ee)return pe=pe(w),Ee=oe===""?"."+Ae(w,0):oe,F(pe)?(le="",Ee!=null&&(le=Ee.replace(Se,"$&/")+"/"),Ne(pe,T,le,"",function(ve){return ve})):pe!=null&&(re(pe)&&(pe=ne(pe,le+(pe.key==null||w&&w.key===pe.key?"":(""+pe.key).replace(Se,"$&/")+"/")+Ee)),T.push(pe)),1;Ee=0;var fe=oe===""?".":oe+":";if(F(w))for(var Re=0;Re<w.length;Re++)oe=w[Re],Oe=fe+Ae(oe,Re),Ee+=Ne(oe,T,le,Oe,pe);else if(Re=C(w),typeof Re=="function")for(w=Re.call(w),Re=0;!(oe=w.next()).done;)oe=oe.value,Oe=fe+Ae(oe,Re++),Ee+=Ne(oe,T,le,Oe,pe);else if(Oe==="object"){if(typeof w.then=="function")return Ne(se(w),T,le,oe,pe);throw T=String(w),Error("Objects are not valid as a React child (found: "+(T==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":T)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function B(w,T,le){if(w==null)return w;var oe=[],pe=0;return Ne(w,oe,"","",function(Oe){return T.call(le,Oe,pe++)}),oe}function te(w){if(w._status===-1){var T=w._result;T=T(),T.then(function(le){(w._status===0||w._status===-1)&&(w._status=1,w._result=le)},function(le){(w._status===0||w._status===-1)&&(w._status=2,w._result=le)}),w._status===-1&&(w._status=0,w._result=T)}if(w._status===1)return w._result.default;throw w._result}var he=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var T=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(T))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function ke(){}return Ye.Children={map:B,forEach:function(w,T,le){B(w,function(){T.apply(this,arguments)},le)},count:function(w){var T=0;return B(w,function(){T++}),T},toArray:function(w){return B(w,function(T){return T})||[]},only:function(w){if(!re(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},Ye.Component=R,Ye.Fragment=a,Ye.Profiler=o,Ye.PureComponent=H,Ye.StrictMode=r,Ye.Suspense=b,Ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,Ye.__COMPILER_RUNTIME={__proto__:null,c:function(w){return Q.H.useMemoCache(w)}},Ye.cache=function(w){return function(){return w.apply(null,arguments)}},Ye.cloneElement=function(w,T,le){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var oe=A({},w.props),pe=w.key,Oe=void 0;if(T!=null)for(Ee in T.ref!==void 0&&(Oe=void 0),T.key!==void 0&&(pe=""+T.key),T)!Z.call(T,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&T.ref===void 0||(oe[Ee]=T[Ee]);var Ee=arguments.length-2;if(Ee===1)oe.children=le;else if(1<Ee){for(var fe=Array(Ee),Re=0;Re<Ee;Re++)fe[Re]=arguments[Re+2];oe.children=fe}return ie(w.type,pe,void 0,void 0,Oe,oe)},Ye.createContext=function(w){return w={$$typeof:m,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:h,_context:w},w},Ye.createElement=function(w,T,le){var oe,pe={},Oe=null;if(T!=null)for(oe in T.key!==void 0&&(Oe=""+T.key),T)Z.call(T,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(pe[oe]=T[oe]);var Ee=arguments.length-2;if(Ee===1)pe.children=le;else if(1<Ee){for(var fe=Array(Ee),Re=0;Re<Ee;Re++)fe[Re]=arguments[Re+2];pe.children=fe}if(w&&w.defaultProps)for(oe in Ee=w.defaultProps,Ee)pe[oe]===void 0&&(pe[oe]=Ee[oe]);return ie(w,Oe,void 0,void 0,null,pe)},Ye.createRef=function(){return{current:null}},Ye.forwardRef=function(w){return{$$typeof:p,render:w}},Ye.isValidElement=re,Ye.lazy=function(w){return{$$typeof:_,_payload:{_status:-1,_result:w},_init:te}},Ye.memo=function(w,T){return{$$typeof:v,type:w,compare:T===void 0?null:T}},Ye.startTransition=function(w){var T=Q.T,le={};Q.T=le;try{var oe=w(),pe=Q.S;pe!==null&&pe(le,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(ke,he)}catch(Oe){he(Oe)}finally{Q.T=T}},Ye.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},Ye.use=function(w){return Q.H.use(w)},Ye.useActionState=function(w,T,le){return Q.H.useActionState(w,T,le)},Ye.useCallback=function(w,T){return Q.H.useCallback(w,T)},Ye.useContext=function(w){return Q.H.useContext(w)},Ye.useDebugValue=function(){},Ye.useDeferredValue=function(w,T){return Q.H.useDeferredValue(w,T)},Ye.useEffect=function(w,T,le){var oe=Q.H;if(typeof le=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return oe.useEffect(w,T)},Ye.useId=function(){return Q.H.useId()},Ye.useImperativeHandle=function(w,T,le){return Q.H.useImperativeHandle(w,T,le)},Ye.useInsertionEffect=function(w,T){return Q.H.useInsertionEffect(w,T)},Ye.useLayoutEffect=function(w,T){return Q.H.useLayoutEffect(w,T)},Ye.useMemo=function(w,T){return Q.H.useMemo(w,T)},Ye.useOptimistic=function(w,T){return Q.H.useOptimistic(w,T)},Ye.useReducer=function(w,T,le){return Q.H.useReducer(w,T,le)},Ye.useRef=function(w){return Q.H.useRef(w)},Ye.useState=function(w){return Q.H.useState(w)},Ye.useSyncExternalStore=function(w,T,le){return Q.H.useSyncExternalStore(w,T,le)},Ye.useTransition=function(){return Q.H.useTransition()},Ye.version="19.1.1",Ye}var yv;function Dm(){return yv||(yv=1,$h.exports=tE()),$h.exports}var j=Dm(),Bh={exports:{}},pc={},Vh={exports:{}},qh={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xv;function nE(){return xv||(xv=1,(function(s){function n(B,te){var he=B.length;B.push(te);e:for(;0<he;){var ke=he-1>>>1,w=B[ke];if(0<o(w,te))B[ke]=te,B[he]=w,he=ke;else break e}}function a(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var te=B[0],he=B.pop();if(he!==te){B[0]=he;e:for(var ke=0,w=B.length,T=w>>>1;ke<T;){var le=2*(ke+1)-1,oe=B[le],pe=le+1,Oe=B[pe];if(0>o(oe,he))pe<w&&0>o(Oe,oe)?(B[ke]=Oe,B[pe]=he,ke=pe):(B[ke]=oe,B[le]=he,ke=le);else if(pe<w&&0>o(Oe,he))B[ke]=Oe,B[pe]=he,ke=pe;else break e}}return te}function o(B,te){var he=B.sortIndex-te.sortIndex;return he!==0?he:B.id-te.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;s.unstable_now=function(){return h.now()}}else{var m=Date,p=m.now();s.unstable_now=function(){return m.now()-p}}var b=[],v=[],_=1,N=null,C=3,D=!1,A=!1,M=!1,R=!1,I=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function F(B){for(var te=a(v);te!==null;){if(te.callback===null)r(v);else if(te.startTime<=B)r(v),te.sortIndex=te.expirationTime,n(b,te);else break;te=a(v)}}function Q(B){if(M=!1,F(B),!A)if(a(b)!==null)A=!0,Z||(Z=!0,Ae());else{var te=a(v);te!==null&&Ne(Q,te.startTime-B)}}var Z=!1,ie=-1,ne=5,re=-1;function ge(){return R?!0:!(s.unstable_now()-re<ne)}function Se(){if(R=!1,Z){var B=s.unstable_now();re=B;var te=!0;try{e:{A=!1,M&&(M=!1,H(ie),ie=-1),D=!0;var he=C;try{t:{for(F(B),N=a(b);N!==null&&!(N.expirationTime>B&&ge());){var ke=N.callback;if(typeof ke=="function"){N.callback=null,C=N.priorityLevel;var w=ke(N.expirationTime<=B);if(B=s.unstable_now(),typeof w=="function"){N.callback=w,F(B),te=!0;break t}N===a(b)&&r(b),F(B)}else r(b);N=a(b)}if(N!==null)te=!0;else{var T=a(v);T!==null&&Ne(Q,T.startTime-B),te=!1}}break e}finally{N=null,C=he,D=!1}te=void 0}}finally{te?Ae():Z=!1}}}var Ae;if(typeof G=="function")Ae=function(){G(Se)};else if(typeof MessageChannel<"u"){var Te=new MessageChannel,se=Te.port2;Te.port1.onmessage=Se,Ae=function(){se.postMessage(null)}}else Ae=function(){I(Se,0)};function Ne(B,te){ie=I(function(){B(s.unstable_now())},te)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(B){B.callback=null},s.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<B?Math.floor(1e3/B):5},s.unstable_getCurrentPriorityLevel=function(){return C},s.unstable_next=function(B){switch(C){case 1:case 2:case 3:var te=3;break;default:te=C}var he=C;C=te;try{return B()}finally{C=he}},s.unstable_requestPaint=function(){R=!0},s.unstable_runWithPriority=function(B,te){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var he=C;C=B;try{return te()}finally{C=he}},s.unstable_scheduleCallback=function(B,te,he){var ke=s.unstable_now();switch(typeof he=="object"&&he!==null?(he=he.delay,he=typeof he=="number"&&0<he?ke+he:ke):he=ke,B){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=he+w,B={id:_++,callback:te,priorityLevel:B,startTime:he,expirationTime:w,sortIndex:-1},he>ke?(B.sortIndex=he,n(v,B),a(b)===null&&B===a(v)&&(M?(H(ie),ie=-1):M=!0,Ne(Q,he-ke))):(B.sortIndex=w,n(b,B),A||D||(A=!0,Z||(Z=!0,Ae()))),B},s.unstable_shouldYield=ge,s.unstable_wrapCallback=function(B){var te=C;return function(){var he=C;C=te;try{return B.apply(this,arguments)}finally{C=he}}}})(qh)),qh}var Ev;function iE(){return Ev||(Ev=1,Vh.exports=nE()),Vh.exports}var Ph={exports:{}},rn={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Sv;function aE(){if(Sv)return rn;Sv=1;var s=Dm();function n(b){var v="https://react.dev/errors/"+b;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)v+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+b+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function h(b,v,_){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:N==null?null:""+N,children:b,containerInfo:v,implementation:_}}var m=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(b,v){if(b==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return rn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,rn.createPortal=function(b,v){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(n(299));return h(b,v,null,_)},rn.flushSync=function(b){var v=m.T,_=r.p;try{if(m.T=null,r.p=2,b)return b()}finally{m.T=v,r.p=_,r.d.f()}},rn.preconnect=function(b,v){typeof b=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,r.d.C(b,v))},rn.prefetchDNS=function(b){typeof b=="string"&&r.d.D(b)},rn.preinit=function(b,v){if(typeof b=="string"&&v&&typeof v.as=="string"){var _=v.as,N=p(_,v.crossOrigin),C=typeof v.integrity=="string"?v.integrity:void 0,D=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;_==="style"?r.d.S(b,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:N,integrity:C,fetchPriority:D}):_==="script"&&r.d.X(b,{crossOrigin:N,integrity:C,fetchPriority:D,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},rn.preinitModule=function(b,v){if(typeof b=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var _=p(v.as,v.crossOrigin);r.d.M(b,{crossOrigin:_,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&r.d.M(b)},rn.preload=function(b,v){if(typeof b=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var _=v.as,N=p(_,v.crossOrigin);r.d.L(b,_,{crossOrigin:N,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},rn.preloadModule=function(b,v){if(typeof b=="string")if(v){var _=p(v.as,v.crossOrigin);r.d.m(b,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:_,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else r.d.m(b)},rn.requestFormReset=function(b){r.d.r(b)},rn.unstable_batchedUpdates=function(b,v){return b(v)},rn.useFormState=function(b,v,_){return m.H.useFormState(b,v,_)},rn.useFormStatus=function(){return m.H.useHostTransitionStatus()},rn.version="19.1.1",rn}var Nv;function sE(){if(Nv)return Ph.exports;Nv=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(n){console.error(n)}}return s(),Ph.exports=aE(),Ph.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Av;function lE(){if(Av)return pc;Av=1;var s=iE(),n=Dm(),a=sE();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(r(188))}function b(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(r(188));return t!==e?null:e}for(var i=e,l=t;;){var c=i.return;if(c===null)break;var d=c.alternate;if(d===null){if(l=c.return,l!==null){i=l;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===i)return p(c),e;if(d===l)return p(c),t;d=d.sibling}throw Error(r(188))}if(i.return!==l.return)i=c,l=d;else{for(var y=!1,E=c.child;E;){if(E===i){y=!0,i=c,l=d;break}if(E===l){y=!0,l=c,i=d;break}E=E.sibling}if(!y){for(E=d.child;E;){if(E===i){y=!0,i=d,l=c;break}if(E===l){y=!0,l=d,i=c;break}E=E.sibling}if(!y)throw Error(r(189))}}if(i.alternate!==l)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,N=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),I=Symbol.for("react.provider"),H=Symbol.for("react.consumer"),G=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),Z=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),ge=Symbol.for("react.memo_cache_sentinel"),Se=Symbol.iterator;function Ae(e){return e===null||typeof e!="object"?null:(e=Se&&e[Se]||e["@@iterator"],typeof e=="function"?e:null)}var Te=Symbol.for("react.client.reference");function se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case R:return"Profiler";case M:return"StrictMode";case Q:return"Suspense";case Z:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case G:return(e.displayName||"Context")+".Provider";case H:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:se(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var Ne=Array.isArray,B=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},ke=[],w=-1;function T(e){return{current:e}}function le(e){0>w||(e.current=ke[w],ke[w]=null,w--)}function oe(e,t){w++,ke[w]=e.current,e.current=t}var pe=T(null),Oe=T(null),Ee=T(null),fe=T(null);function Re(e,t){switch(oe(Ee,t),oe(Oe,e),oe(pe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Kg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Kg(t),e=Ig(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}le(pe),oe(pe,e)}function ve(){le(pe),le(Oe),le(Ee)}function Gn(e){e.memoizedState!==null&&oe(fe,e);var t=pe.current,i=Ig(t,e.type);t!==i&&(oe(Oe,e),oe(pe,i))}function yn(e){Oe.current===e&&(le(pe),le(Oe)),fe.current===e&&(le(fe),cc._currentValue=he)}var Ji=Object.prototype.hasOwnProperty,Ai=s.unstable_scheduleCallback,Ln=s.unstable_cancelCallback,$a=s.unstable_shouldYield,Fn=s.unstable_requestPaint,Nt=s.unstable_now,Ys=s.unstable_getCurrentPriorityLevel,ea=s.unstable_ImmediatePriority,ce=s.unstable_UserBlockingPriority,tt=s.unstable_NormalPriority,At=s.unstable_LowPriority,Kt=s.unstable_IdlePriority,Ks=s.log,ta=s.unstable_setDisableYieldValue,It=null,Mt=null;function Mn(e){if(typeof Ks=="function"&&ta(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(It,e)}catch{}}var cn=Math.clz32?Math.clz32:Va,Is=Math.log,Ba=Math.LN2;function Va(e){return e>>>=0,e===0?32:31-(Is(e)/Ba|0)|0}var na=256,Dl=4194304;function ci(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Rl(e,t,i){var l=e.pendingLanes;if(l===0)return 0;var c=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var E=l&134217727;return E!==0?(l=E&~d,l!==0?c=ci(l):(y&=E,y!==0?c=ci(y):i||(i=E&~e,i!==0&&(c=ci(i))))):(E=l&~d,E!==0?c=ci(E):y!==0?c=ci(y):i||(i=l&~e,i!==0&&(c=ci(i)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:c}function Gs(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function hd(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bc(){var e=na;return na<<=1,(na&4194048)===0&&(na=256),e}function Vc(){var e=Dl;return Dl<<=1,(Dl&62914560)===0&&(Dl=4194304),e}function Jr(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ll(e,t,i,l,c,d){var y=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var E=e.entanglements,O=e.expirationTimes,V=e.hiddenUpdates;for(i=y&~i;0<i;){var X=31-cn(i),ee=1<<X;E[X]=0,O[X]=-1;var q=V[X];if(q!==null)for(V[X]=null,X=0;X<q.length;X++){var P=q[X];P!==null&&(P.lane&=-536870913)}i&=~ee}l!==0&&eo(e,l,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function eo(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-cn(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|i&4194090}function to(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var l=31-cn(i),c=1<<l;c&t|e[l]&t&&(e[l]|=t),i&=~c}}function no(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function io(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function qc(){var e=te.p;return e!==0?e:(e=window.event,e===void 0?32:fv(e.type))}function md(e,t){var i=te.p;try{return te.p=e,t()}finally{te.p=i}}var un=Math.random().toString(36).slice(2),wt="__reactFiber$"+un,Jt="__reactProps$"+un,Pa="__reactContainer$"+un,ao="__reactEvents$"+un,pd="__reactListeners$"+un,gd="__reactHandles$"+un,Ml="__reactResources$"+un,Xn="__reactMarker$"+un;function Ya(e){delete e[wt],delete e[Jt],delete e[ao],delete e[pd],delete e[gd]}function Ka(e){var t=e[wt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Pa]||i[wt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Qg(e);e!==null;){if(i=e[wt])return i;e=Qg(e)}return t}e=i,i=e.parentNode}return null}function wi(e){if(e=e[wt]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Fs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ia(e){var t=e[Ml];return t||(t=e[Ml]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vt(e){e[Xn]=!0}var Ht=new Set,en={};function Ct(e,t){Tt(e,t),Tt(e+"Capture",t)}function Tt(e,t){for(en[e]=t,e=0;e<t.length;e++)Ht.add(t[e])}var zl=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ia={},Ti={};function Ga(e){return Ji.call(Ti,e)?!0:Ji.call(ia,e)?!1:zl.test(e)?Ti[e]=!0:(ia[e]=!0,!1)}function Xs(e,t,i){if(Ga(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function Fa(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function tn(e,t,i,l){if(l===null)e.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+l)}}var kl,Ul;function Oi(e){if(kl===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);kl=t&&t[1]||"",Ul=-1<i.stack.indexOf(`
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+kl+e+Ul}var Hl=!1;function $l(e,t){if(!e||Hl)return"";Hl=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(P){var q=P}Reflect.construct(e,[],ee)}else{try{ee.call()}catch(P){q=P}e.call(ee.prototype)}}else{try{throw Error()}catch(P){q=P}(ee=e())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(P){if(P&&q&&typeof P.stack=="string")return[P.stack,q.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),y=d[0],E=d[1];if(y&&E){var O=y.split(`
`),V=E.split(`
`);for(c=l=0;l<O.length&&!O[l].includes("DetermineComponentFrameRoot");)l++;for(;c<V.length&&!V[c].includes("DetermineComponentFrameRoot");)c++;if(l===O.length||c===V.length)for(l=O.length-1,c=V.length-1;1<=l&&0<=c&&O[l]!==V[c];)c--;for(;1<=l&&0<=c;l--,c--)if(O[l]!==V[c]){if(l!==1||c!==1)do if(l--,c--,0>c||O[l]!==V[c]){var X=`
`+O[l].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=l&&0<=c);break}}}finally{Hl=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?Oi(i):""}function Pc(e){switch(e.tag){case 26:case 27:case 5:return Oi(e.type);case 16:return Oi("Lazy");case 13:return Oi("Suspense");case 19:return Oi("SuspenseList");case 0:case 15:return $l(e.type,!1);case 11:return $l(e.type.render,!1);case 1:return $l(e.type,!0);case 31:return Oi("Activity");default:return""}}function so(e){try{var t="";do t+=Pc(e),e=e.return;while(e);return t}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}function fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yc(e){var t=lo(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(y){l=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qs(e){e._valueTracker||(e._valueTracker=Yc(e))}function ro(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),l="";return e&&(l=lo(e)?e.checked?"true":"false":e.value),e=l,e!==i?(t.setValue(e),!0):!1}function Zs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Qn=/[\n"\\]/g;function mt(e){return e.replace(Qn,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ui(e,t,i,l,c,d,y,E){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+fn(t)):e.value!==""+fn(t)&&(e.value=""+fn(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?Ws(e,y,fn(t)):i!=null?Ws(e,y,fn(i)):l!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+fn(E):e.removeAttribute("name")}function dn(e,t,i,l,c,d,y,E){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;i=i!=null?""+fn(i):"",t=t!=null?""+fn(t):i,E||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=E?e.checked:!!l,e.defaultChecked=!!l,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y)}function Ws(e,t,i){t==="number"&&Zs(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function ji(e,t,i,l){if(e=e.options,t){t={};for(var c=0;c<i.length;c++)t["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=t.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&l&&(e[i].defaultSelected=!0)}else{for(i=""+fn(i),t=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function zn(e,t,i){if(t!=null&&(t=""+fn(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+fn(i):""}function Ci(e,t,i,l){if(t==null){if(l!=null){if(i!=null)throw Error(r(92));if(Ne(l)){if(1<l.length)throw Error(r(93));l=l[0]}i=l}i==null&&(i=""),t=i}i=fn(t),e.defaultValue=i,l=e.textContent,l===i&&l!==""&&l!==null&&(e.value=l)}function fi(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Xa=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Bl(e,t,i){var l=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,i):typeof i!="number"||i===0||Xa.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function oo(e,t,i){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&i[c]!==l&&Bl(e,c,l)}else for(var d in t)t.hasOwnProperty(d)&&Bl(e,d,t[d])}function Di(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var co=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Kc=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function xn(e){return Kc.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var uo=null;function Zn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var di=null,aa=null;function Qa(e){var t=wi(e);if(t&&(e=t.stateNode)){var i=e[Jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ui(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+mt(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var c=l[Jt]||null;if(!c)throw Error(r(90));ui(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<i.length;t++)l=i[t],l.form===e.form&&ro(l)}break e;case"textarea":zn(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&ji(e,!!i.multiple,t,!1)}}}var Js=!1;function Za(e,t,i){if(Js)return e(t,i);Js=!0;try{var l=e(t);return l}finally{if(Js=!1,(di!==null||aa!==null)&&(tf(),di&&(t=di,e=aa,aa=di=null,Qa(t),e)))for(t=0;t<e.length;t++)Qa(e[t])}}function Wa(e,t){var i=e.stateNode;if(i===null)return null;var l=i[Jt]||null;if(l===null)return null;i=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(r(231,t,typeof i));return i}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vl=!1;if(Wn)try{var Jn={};Object.defineProperty(Jn,"passive",{get:function(){Vl=!0}}),window.addEventListener("test",Jn,Jn),window.removeEventListener("test",Jn,Jn)}catch{Vl=!1}var Ri=null,ql=null,Ja=null;function el(){if(Ja)return Ja;var e,t=ql,i=t.length,l,c="value"in Ri?Ri.value:Ri.textContent,d=c.length;for(e=0;e<i&&t[e]===c[e];e++);var y=i-e;for(l=1;l<=y&&t[i-l]===c[d-l];l++);return Ja=c.slice(e,1<l?1-l:void 0)}function es(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pl(){return!0}function tl(){return!1}function nn(e){function t(i,l,c,d,y){this._reactName=i,this._targetInst=c,this.type=l,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var E in e)e.hasOwnProperty(E)&&(i=e[E],this[E]=i?i(d):d[E]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Pl:tl,this.isPropagationStopped=tl,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Pl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Pl)},persist:function(){},isPersistent:Pl}),t}var Li={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ts=nn(Li),sa=_({},Li,{view:0,detail:0}),fo=nn(sa),Yl,la,ra,nl=_({},sa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:po,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ra&&(ra&&e.type==="mousemove"?(Yl=e.screenX-ra.screenX,la=e.screenY-ra.screenY):la=Yl=0,ra=e),Yl)},movementY:function(e){return"movementY"in e?e.movementY:la}}),ho=nn(nl),ns=_({},nl,{dataTransfer:0}),vd=nn(ns),Ic=_({},sa,{relatedTarget:0}),Kl=nn(Ic),Gc=_({},Li,{animationName:0,elapsedTime:0,pseudoElement:0}),Fc=nn(Gc),Xc=_({},Li,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),mo=nn(Xc),Qc=_({},Li,{data:0}),Zc=nn(Qc),bd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wc={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Jc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Il(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jc[e])?!!t[e]:!1}function po(){return Il}var _d=_({},sa,{key:function(e){if(e.key){var t=bd[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=es(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wc[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:po,charCode:function(e){return e.type==="keypress"?es(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?es(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),go=nn(_d),eu=_({},nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vo=nn(eu),oa=_({},sa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:po}),bo=nn(oa),yd=_({},Li,{propertyName:0,elapsedTime:0,pseudoElement:0}),tu=nn(yd),xd=_({},nl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ed=nn(xd),Sd=_({},Li,{newState:0,oldState:0}),Nd=nn(Sd),nu=[9,13,27,32],Gl=Wn&&"CompositionEvent"in window,il=null;Wn&&"documentMode"in document&&(il=document.documentMode);var is=Wn&&"TextEvent"in window&&!il,Mi=Wn&&(!Gl||il&&8<il&&11>=il),iu=" ",al=!1;function au(e,t){switch(e){case"keyup":return nu.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function su(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var as=!1;function Ad(e,t){switch(e){case"compositionend":return su(t);case"keypress":return t.which!==32?null:(al=!0,iu);case"textInput":return e=t.data,e===iu&&al?null:e;default:return null}}function wd(e,t){if(as)return e==="compositionend"||!Gl&&au(e,t)?(e=el(),Ja=ql=Ri=null,as=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mi&&t.locale!=="ko"?null:t.data;default:return null}}var Td={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Td[e.type]:t==="textarea"}function ru(e,t,i,l){di?aa?aa.push(l):aa=[l]:di=l,t=of(t,"onChange"),0<t.length&&(i=new ts("onChange","change",null,i,l),e.push({event:i,listeners:t}))}var Gt=null,ss=null;function ou(e){Bg(e,0)}function sl(e){var t=Fs(e);if(ro(t))return e}function cu(e,t){if(e==="change")return t}var uu=!1;if(Wn){var Fl;if(Wn){var ls="oninput"in document;if(!ls){var fu=document.createElement("div");fu.setAttribute("oninput","return;"),ls=typeof fu.oninput=="function"}Fl=ls}else Fl=!1;uu=Fl&&(!document.documentMode||9<document.documentMode)}function du(){Gt&&(Gt.detachEvent("onpropertychange",_o),ss=Gt=null)}function _o(e){if(e.propertyName==="value"&&sl(ss)){var t=[];ru(t,ss,e,Zn(e)),Za(ou,t)}}function Od(e,t,i){e==="focusin"?(du(),Gt=t,ss=i,Gt.attachEvent("onpropertychange",_o)):e==="focusout"&&du()}function jd(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sl(ss)}function hu(e,t){if(e==="click")return sl(t)}function mu(e,t){if(e==="input"||e==="change")return sl(t)}function pu(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $t=typeof Object.is=="function"?Object.is:pu;function rs(e,t){if($t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var c=i[l];if(!Ji.call(t,c)||!$t(e[c],t[c]))return!1}return!0}function Xl(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var i=Xl(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=t&&l>=t)return{node:i,offset:t-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Xl(i)}}function gu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vu(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zs(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Zs(e.document)}return t}function Ql(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var bu=Wn&&"documentMode"in document&&11>=document.documentMode,os=null,yo=null,ll=null,xo=!1;function _u(e,t,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;xo||os==null||os!==Zs(l)||(l=os,"selectionStart"in l&&Ql(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ll&&rs(ll,l)||(ll=l,l=of(yo,"onSelect"),0<l.length&&(t=new ts("onSelect","select",null,t,i),e.push({event:t,listeners:l}),t.target=os)))}function ca(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var ua={animationend:ca("Animation","AnimationEnd"),animationiteration:ca("Animation","AnimationIteration"),animationstart:ca("Animation","AnimationStart"),transitionrun:ca("Transition","TransitionRun"),transitionstart:ca("Transition","TransitionStart"),transitioncancel:ca("Transition","TransitionCancel"),transitionend:ca("Transition","TransitionEnd")},Zl={},Wl={};Wn&&(Wl=document.createElement("div").style,"AnimationEvent"in window||(delete ua.animationend.animation,delete ua.animationiteration.animation,delete ua.animationstart.animation),"TransitionEvent"in window||delete ua.transitionend.transition);function fa(e){if(Zl[e])return Zl[e];if(!ua[e])return e;var t=ua[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Wl)return Zl[e]=t[i];return e}var yu=fa("animationend"),zi=fa("animationiteration"),ei=fa("animationstart"),xu=fa("transitionrun"),Cd=fa("transitionstart"),Eu=fa("transitioncancel"),Eo=fa("transitionend"),So=new Map,Jl="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Jl.push("scrollEnd");function kn(e,t){So.set(e,t),Ct(t,[e])}var Su=new WeakMap;function En(e,t){if(typeof e=="object"&&e!==null){var i=Su.get(e);return i!==void 0?i:(t={value:e,source:t,stack:so(t)},Su.set(e,t),t)}return{value:e,source:t,stack:so(t)}}var mn=[],da=0,No=0;function er(){for(var e=da,t=No=da=0;t<e;){var i=mn[t];mn[t++]=null;var l=mn[t];mn[t++]=null;var c=mn[t];mn[t++]=null;var d=mn[t];if(mn[t++]=null,l!==null&&c!==null){var y=l.pending;y===null?c.next=c:(c.next=y.next,y.next=c),l.pending=c}d!==0&&ti(i,c,d)}}function tr(e,t,i,l){mn[da++]=e,mn[da++]=t,mn[da++]=i,mn[da++]=l,No|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ao(e,t,i,l){return tr(e,t,i,l),rl(e)}function cs(e,t){return tr(e,null,null,t),rl(e)}function ti(e,t,i){e.lanes|=i;var l=e.alternate;l!==null&&(l.lanes|=i);for(var c=!1,d=e.return;d!==null;)d.childLanes|=i,l=d.alternate,l!==null&&(l.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-cn(i),e=d.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=i|536870912),d):null}function rl(e){if(50<tc)throw tc=0,oh=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var us={};function Dd(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(e,t,i,l){return new Dd(e,t,i,l)}function wo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hi(e,t){var i=e.alternate;return i===null?(i=pn(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Nu(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nr(e,t,i,l,c,d){var y=0;if(l=e,typeof e=="function")wo(e)&&(y=1);else if(typeof e=="string")y=$x(e,i,pe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=pn(31,i,t,c),e.elementType=re,e.lanes=d,e;case A:return ha(i.children,c,d,t);case M:y=8,c|=24;break;case R:return e=pn(12,i,t,c|2),e.elementType=R,e.lanes=d,e;case Q:return e=pn(13,i,t,c),e.elementType=Q,e.lanes=d,e;case Z:return e=pn(19,i,t,c),e.elementType=Z,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I:case G:y=10;break e;case H:y=9;break e;case F:y=11;break e;case ie:y=14;break e;case ne:y=16,l=null;break e}y=29,i=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=pn(y,i,t,c),t.elementType=e,t.type=l,t.lanes=d,t}function ha(e,t,i,l){return e=pn(7,e,l,t),e.lanes=i,e}function ol(e,t,i){return e=pn(6,e,null,t),e.lanes=i,e}function fs(e,t,i){return t=pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ds=[],ma=0,cl=null,ki=0,an=[],sn=0,pa=null,mi=1,pi="";function gn(e,t){ds[ma++]=ki,ds[ma++]=cl,cl=e,ki=t}function Au(e,t,i){an[sn++]=mi,an[sn++]=pi,an[sn++]=pa,pa=e;var l=mi;e=pi;var c=32-cn(l)-1;l&=~(1<<c),i+=1;var d=32-cn(t)+c;if(30<d){var y=c-c%5;d=(l&(1<<y)-1).toString(32),l>>=y,c-=y,mi=1<<32-cn(t)+c|i<<c|l,pi=d+e}else mi=1<<d|i<<c|l,pi=e}function To(e){e.return!==null&&(gn(e,1),Au(e,1,0))}function Oo(e){for(;e===cl;)cl=ds[--ma],ds[ma]=null,ki=ds[--ma],ds[ma]=null;for(;e===pa;)pa=an[--sn],an[sn]=null,pi=an[--sn],an[sn]=null,mi=an[--sn],an[sn]=null}var Ft=null,dt=null,Qe=!1,ga=null,Un=!1,jo=Error(r(519));function Sn(e){var t=Error(r(418,""));throw gi(En(t,e)),jo}function ir(e){var t=e.stateNode,i=e.type,l=e.memoizedProps;switch(t[wt]=e,t[Jt]=l,i){case"dialog":Fe("cancel",t),Fe("close",t);break;case"iframe":case"object":case"embed":Fe("load",t);break;case"video":case"audio":for(i=0;i<ic.length;i++)Fe(ic[i],t);break;case"source":Fe("error",t);break;case"img":case"image":case"link":Fe("error",t),Fe("load",t);break;case"details":Fe("toggle",t);break;case"input":Fe("invalid",t),dn(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Qs(t);break;case"select":Fe("invalid",t);break;case"textarea":Fe("invalid",t),Ci(t,l.value,l.defaultValue,l.children),Qs(t)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||l.suppressHydrationWarning===!0||Yg(t.textContent,i)?(l.popover!=null&&(Fe("beforetoggle",t),Fe("toggle",t)),l.onScroll!=null&&Fe("scroll",t),l.onScrollEnd!=null&&Fe("scrollend",t),l.onClick!=null&&(t.onclick=cf),t=!0):t=!1,t||Sn(e)}function Co(e){for(Ft=e.return;Ft;)switch(Ft.tag){case 5:case 13:Un=!1;return;case 27:case 3:Un=!0;return;default:Ft=Ft.return}}function ul(e){if(e!==Ft)return!1;if(!Qe)return Co(e),Qe=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||Nh(e.type,e.memoizedProps)),i=!i),i&&dt&&Sn(e),Co(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(t===0){dt=Ei(e.nextSibling);break e}t--}else i!=="$"&&i!=="$!"&&i!=="$?"||t++;e=e.nextSibling}dt=null}}else t===27?(t=dt,Cs(e.type)?(e=Oh,Oh=null,dt=e):dt=t):dt=Ft?Ei(e.stateNode.nextSibling):null;return!0}function fl(){dt=Ft=null,Qe=!1}function wu(){var e=ga;return e!==null&&(On===null?On=e:On.push.apply(On,e),ga=null),e}function gi(e){ga===null?ga=[e]:ga.push(e)}var vi=T(null),va=null,bi=null;function Ui(e,t,i){oe(vi,t._currentValue),t._currentValue=i}function _i(e){e._currentValue=vi.current,le(vi)}function Do(e,t,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===i)break;e=e.return}}function Ro(e,t,i,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var y=c.child;d=d.firstContext;e:for(;d!==null;){var E=d;d=c;for(var O=0;O<t.length;O++)if(E.context===t[O]){d.lanes|=i,E=d.alternate,E!==null&&(E.lanes|=i),Do(d.return,i,e),l||(y=null);break e}d=E.next}}else if(c.tag===18){if(y=c.return,y===null)throw Error(r(341));y.lanes|=i,d=y.alternate,d!==null&&(d.lanes|=i),Do(y,i,e),y=null}else y=c.child;if(y!==null)y.return=c;else for(y=c;y!==null;){if(y===e){y=null;break}if(c=y.sibling,c!==null){c.return=y.return,y=c;break}y=y.return}c=y}}function dl(e,t,i,l){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var y=c.alternate;if(y===null)throw Error(r(387));if(y=y.memoizedProps,y!==null){var E=c.type;$t(c.pendingProps.value,y.value)||(e!==null?e.push(E):e=[E])}}else if(c===fe.current){if(y=c.alternate,y===null)throw Error(r(387));y.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(cc):e=[cc])}c=c.return}e!==null&&Ro(t,e,i,l),t.flags|=262144}function ar(e){for(e=e.firstContext;e!==null;){if(!$t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Hi(e){va=e,bi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Bt(e){return sr(va,e)}function hl(e,t){return va===null&&Hi(e),sr(e,t)}function sr(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},bi===null){if(e===null)throw Error(r(308));bi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else bi=bi.next=t;return i}var Tu=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},ba=s.unstable_scheduleCallback,Ou=s.unstable_NormalPriority,yt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lr(){return{controller:new Tu,data:new Map,refCount:0}}function _a(e){e.refCount--,e.refCount===0&&ba(Ou,function(){e.controller.abort()})}var hs=null,ml=0,ms=0,Nn=null;function $i(e,t){if(hs===null){var i=hs=[];ml=0,ms=ph(),Nn={status:"pending",value:void 0,then:function(l){i.push(l)}}}return ml++,t.then(ju,ju),t}function ju(){if(--ml===0&&hs!==null){Nn!==null&&(Nn.status="fulfilled");var e=hs;hs=null,ms=0,Nn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Rd(e,t){var i=[],l={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<i.length;c++)(0,i[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),l}var Cu=B.S;B.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&$i(e,t),Cu!==null&&Cu(e,t)};var ya=T(null);function Lo(){var e=ya.current;return e!==null?e:gt.pooledCache}function rr(e,t){t===null?oe(ya,ya.current):oe(ya,t.pool)}function Du(){var e=Lo();return e===null?null:{parent:yt._currentValue,pool:e}}var pl=Error(r(460)),Mo=Error(r(474)),xa=Error(r(542)),ps={then:function(){}};function Ru(e){return e=e.status,e==="fulfilled"||e==="rejected"}function or(){}function gs(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(or,or),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,g(e),e;default:if(typeof t.status=="string")t.then(or,or);else{if(e=gt,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,g(e),e}throw x=t,pl}}var x=null;function u(){if(x===null)throw Error(r(459));var e=x;return x=null,e}function g(e){if(e===pl||e===xa)throw Error(r(483))}var S=!1;function z(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function k(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Y(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function J(e,t,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(rt&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=rl(e),ti(e,null,i),t}return tr(e,l,t,i),rl(e)}function ue(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,to(e,i)}}function be(e,t){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var c=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?c=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?c=d=t:d=d.next=t}else c=d=t;i={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var _e=!1;function me(){if(_e){var e=Nn;if(e!==null)throw e}}function $e(e,t,i,l){_e=!1;var c=e.updateQueue;S=!1;var d=c.firstBaseUpdate,y=c.lastBaseUpdate,E=c.shared.pending;if(E!==null){c.shared.pending=null;var O=E,V=O.next;O.next=null,y===null?d=V:y.next=V,y=O;var X=e.alternate;X!==null&&(X=X.updateQueue,E=X.lastBaseUpdate,E!==y&&(E===null?X.firstBaseUpdate=V:E.next=V,X.lastBaseUpdate=O))}if(d!==null){var ee=c.baseState;y=0,X=V=O=null,E=d;do{var q=E.lane&-536870913,P=q!==E.lane;if(P?(We&q)===q:(l&q)===q){q!==0&&q===ms&&(_e=!0),X!==null&&(X=X.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var He=e,Le=E;q=t;var ut=i;switch(Le.tag){case 1:if(He=Le.payload,typeof He=="function"){ee=He.call(ut,ee,q);break e}ee=He;break e;case 3:He.flags=He.flags&-65537|128;case 0:if(He=Le.payload,q=typeof He=="function"?He.call(ut,ee,q):He,q==null)break e;ee=_({},ee,q);break e;case 2:S=!0}}q=E.callback,q!==null&&(e.flags|=64,P&&(e.flags|=8192),P=c.callbacks,P===null?c.callbacks=[q]:P.push(q))}else P={lane:q,tag:E.tag,payload:E.payload,callback:E.callback,next:null},X===null?(V=X=P,O=ee):X=X.next=P,y|=q;if(E=E.next,E===null){if(E=c.shared.pending,E===null)break;P=E,E=P.next,P.next=null,c.lastBaseUpdate=P,c.shared.pending=null}}while(!0);X===null&&(O=ee),c.baseState=O,c.firstBaseUpdate=V,c.lastBaseUpdate=X,d===null&&(c.shared.lanes=0),ws|=y,e.lanes=y,e.memoizedState=ee}}function De(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Be(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)De(i[e],t)}var je=T(null),Ue=T(0);function it(e,t){e=ja,oe(Ue,e),oe(je,t),ja=e|t.baseLanes}function st(){oe(Ue,ja),oe(je,je.current)}function qe(){ja=Ue.current,le(je),le(Ue)}var Ke=0,de=null,ye=null,Me=null,Je=!1,Xe=!1,lt=!1,Vt=0,Xt=0,Ot=null,An=0;function Ze(){throw Error(r(321))}function pt(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!$t(e[i],t[i]))return!1;return!0}function wn(e,t,i,l,c,d){return Ke=d,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Np:Ap,lt=!1,d=i(l,c),lt=!1,Xe&&(d=Ea(t,i,l,c)),Hn(e),d}function Hn(e){B.H=qu;var t=ye!==null&&ye.next!==null;if(Ke=0,Me=ye=de=null,Je=!1,Xt=0,Ot=null,t)throw Error(r(300));e===null||qt||(e=e.dependencies,e!==null&&ar(e)&&(qt=!0))}function Ea(e,t,i,l){de=e;var c=0;do{if(Xe&&(Ot=null),Xt=0,Xe=!1,25<=c)throw Error(r(301));if(c+=1,Me=ye=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}B.H=Qy,d=t(i,l)}while(Xe);return d}function Lt(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?vs(t):t,e=e.useState()[0],(ye!==null?ye.memoizedState:null)!==e&&(de.flags|=1024),t}function at(){var e=Vt!==0;return Vt=0,e}function zt(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function ln(e){if(Je){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Je=!1}Ke=0,Me=ye=de=null,Xe=!1,Xt=Vt=0,Ot=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?de.memoizedState=Me=e:Me=Me.next=e,Me}function bt(){if(ye===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=ye.next;var t=Me===null?de.memoizedState:Me.next;if(t!==null)Me=t,ye=e;else{if(e===null)throw de.alternate===null?Error(r(467)):Error(r(310));ye=e,e={memoizedState:ye.memoizedState,baseState:ye.baseState,baseQueue:ye.baseQueue,queue:ye.queue,next:null},Me===null?de.memoizedState=Me=e:Me=Me.next=e}return Me}function cr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vs(e){var t=Xt;return Xt+=1,Ot===null&&(Ot=[]),e=gs(Ot,e,t),t=de,(Me===null?t.memoizedState:Me.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Np:Ap),e}function Sa(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vs(e);if(e.$$typeof===G)return Bt(e)}throw Error(r(438,String(e)))}function zo(e){var t=null,i=de.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var l=de.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=cr(),de.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),l=0;l<e;l++)i[l]=ge;return t.index++,i}function yi(e,t){return typeof t=="function"?t(e):t}function bs(e){var t=bt();return ko(t,ye,e)}function ko(e,t,i){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=i;var c=e.baseQueue,d=l.pending;if(d!==null){if(c!==null){var y=c.next;c.next=d.next,d.next=y}t.baseQueue=c=d,l.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var E=y=null,O=null,V=t,X=!1;do{var ee=V.lane&-536870913;if(ee!==V.lane?(We&ee)===ee:(Ke&ee)===ee){var q=V.revertLane;if(q===0)O!==null&&(O=O.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),ee===ms&&(X=!0);else if((Ke&q)===q){V=V.next,q===ms&&(X=!0);continue}else ee={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},O===null?(E=O=ee,y=d):O=O.next=ee,de.lanes|=q,ws|=q;ee=V.action,lt&&i(d,ee),d=V.hasEagerState?V.eagerState:i(d,ee)}else q={lane:ee,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},O===null?(E=O=q,y=d):O=O.next=q,de.lanes|=ee,ws|=ee;V=V.next}while(V!==null&&V!==t);if(O===null?y=d:O.next=E,!$t(d,e.memoizedState)&&(qt=!0,X&&(i=Nn,i!==null)))throw i;e.memoizedState=d,e.baseState=y,e.baseQueue=O,l.lastRenderedState=d}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ur(e){var t=bt(),i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=e;var l=i.dispatch,c=i.pending,d=t.memoizedState;if(c!==null){i.pending=null;var y=c=c.next;do d=e(d,y.action),y=y.next;while(y!==c);$t(d,t.memoizedState)||(qt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,l]}function Lu(e,t,i){var l=de,c=bt(),d=Qe;if(d){if(i===void 0)throw Error(r(407));i=i()}else i=t();var y=!$t((ye||c).memoizedState,i);y&&(c.memoizedState=i,qt=!0),c=c.queue;var E=Mu.bind(null,l,c,e);if(Yo(2048,8,E,[e]),c.getSnapshot!==t||y||Me!==null&&Me.memoizedState.tag&1){if(l.flags|=2048,mr(9,$u(),Ho.bind(null,l,c,i,t),null),gt===null)throw Error(r(349));d||(Ke&124)!==0||Uo(l,t,i)}return i}function Uo(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=de.updateQueue,t===null?(t=cr(),de.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Ho(e,t,i,l){t.value=i,t.getSnapshot=l,zu(t)&&Bi(e)}function Mu(e,t,i){return i(function(){zu(t)&&Bi(e)})}function zu(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!$t(e,i)}catch{return!0}}function Bi(e){var t=cs(e,2);t!==null&&Pn(t,e,2)}function _s(e){var t=xt();if(typeof e=="function"){var i=e;if(e=i(),lt){Mn(!0);try{i()}finally{Mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yi,lastRenderedState:e},t}function $o(e,t,i,l){return e.baseState=i,ko(e,ye,typeof l=="function"?l:yi)}function ku(e,t,i,l,c){if(Vu(e))throw Error(r(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};B.T!==null?i(!0):d.isTransition=!1,l(d),i=t.pending,i===null?(d.next=t.pending=d,fr(t,d)):(d.next=i.next,t.pending=i.next=d)}}function fr(e,t){var i=t.action,l=t.payload,c=e.state;if(t.isTransition){var d=B.T,y={};B.T=y;try{var E=i(c,l),O=B.S;O!==null&&O(y,E),Bo(e,t,E)}catch(V){dr(e,t,V)}finally{B.T=d}}else try{d=i(c,l),Bo(e,t,d)}catch(V){dr(e,t,V)}}function Bo(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Vo(e,t,l)},function(l){return dr(e,t,l)}):Vo(e,t,i)}function Vo(e,t,i){t.status="fulfilled",t.value=i,qo(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,fr(e,i)))}function dr(e,t,i){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=i,qo(t),t=t.next;while(t!==l)}e.action=null}function qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Uu(e,t){return t}function Hu(e,t){if(Qe){var i=gt.formState;if(i!==null){e:{var l=de;if(Qe){if(dt){t:{for(var c=dt,d=Un;c.nodeType!==8;){if(!d){c=null;break t}if(c=Ei(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){dt=Ei(c.nextSibling),l=c.data==="F!";break e}}Sn(l)}l=!1}l&&(t=i[0])}}return i=xt(),i.memoizedState=i.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Uu,lastRenderedState:t},i.queue=l,i=xp.bind(null,de,l),l.dispatch=i,l=_s(!1),d=Ud.bind(null,de,!1,l.queue),l=xt(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,i=ku.bind(null,de,c,d,i),c.dispatch=i,l.memoizedState=e,[t,i,!1]}function hr(e){var t=bt();return Po(t,ye,e)}function Po(e,t,i){if(t=ko(e,t,Uu)[0],e=bs(yi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=vs(t)}catch(y){throw y===pl?xa:y}else l=t;t=bt();var c=t.queue,d=c.dispatch;return i!==t.memoizedState&&(de.flags|=2048,mr(9,$u(),Iy.bind(null,c,i),null)),[l,d,e]}function Iy(e,t){e.action=t}function sp(e){var t=bt(),i=ye;if(i!==null)return Po(t,i,e);bt(),t=t.memoizedState,i=bt();var l=i.queue.dispatch;return i.memoizedState=e,[t,l,!1]}function mr(e,t,i,l){return e={tag:e,create:i,deps:l,inst:t,next:null},t=de.updateQueue,t===null&&(t=cr(),de.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,t.lastEffect=e),e}function $u(){return{destroy:void 0,resource:void 0}}function lp(){return bt().memoizedState}function Bu(e,t,i,l){var c=xt();l=l===void 0?null:l,de.flags|=e,c.memoizedState=mr(1|t,$u(),i,l)}function Yo(e,t,i,l){var c=bt();l=l===void 0?null:l;var d=c.memoizedState.inst;ye!==null&&l!==null&&pt(l,ye.memoizedState.deps)?c.memoizedState=mr(t,d,i,l):(de.flags|=e,c.memoizedState=mr(1|t,d,i,l))}function rp(e,t){Bu(8390656,8,e,t)}function op(e,t){Yo(2048,8,e,t)}function cp(e,t){return Yo(4,2,e,t)}function up(e,t){return Yo(4,4,e,t)}function fp(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dp(e,t,i){i=i!=null?i.concat([e]):null,Yo(4,4,fp.bind(null,t,e),i)}function Ld(){}function hp(e,t){var i=bt();t=t===void 0?null:t;var l=i.memoizedState;return t!==null&&pt(t,l[1])?l[0]:(i.memoizedState=[e,t],e)}function mp(e,t){var i=bt();t=t===void 0?null:t;var l=i.memoizedState;if(t!==null&&pt(t,l[1]))return l[0];if(l=e(),lt){Mn(!0);try{e()}finally{Mn(!1)}}return i.memoizedState=[l,t],l}function Md(e,t,i){return i===void 0||(Ke&1073741824)!==0?e.memoizedState=t:(e.memoizedState=i,e=vg(),de.lanes|=e,ws|=e,i)}function pp(e,t,i,l){return $t(i,t)?i:je.current!==null?(e=Md(e,i,l),$t(e,t)||(qt=!0),e):(Ke&42)===0?(qt=!0,e.memoizedState=i):(e=vg(),de.lanes|=e,ws|=e,t)}function gp(e,t,i,l,c){var d=te.p;te.p=d!==0&&8>d?d:8;var y=B.T,E={};B.T=E,Ud(e,!1,t,i);try{var O=c(),V=B.S;if(V!==null&&V(E,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var X=Rd(O,l);Ko(e,t,X,qn(e))}else Ko(e,t,l,qn(e))}catch(ee){Ko(e,t,{then:function(){},status:"rejected",reason:ee},qn())}finally{te.p=d,B.T=y}}function Gy(){}function zd(e,t,i,l){if(e.tag!==5)throw Error(r(476));var c=vp(e).queue;gp(e,c,t,he,i===null?Gy:function(){return bp(e),i(l)})}function vp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yi,lastRenderedState:he},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yi,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function bp(e){var t=vp(e).next.queue;Ko(e,t,{},qn())}function kd(){return Bt(cc)}function _p(){return bt().memoizedState}function yp(){return bt().memoizedState}function Fy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=qn();e=Y(i);var l=J(t,e,i);l!==null&&(Pn(l,t,i),ue(l,t,i)),t={cache:lr()},e.payload=t;return}t=t.return}}function Xy(e,t,i){var l=qn();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Vu(e)?Ep(t,i):(i=Ao(e,t,i,l),i!==null&&(Pn(i,e,l),Sp(i,t,l)))}function xp(e,t,i){var l=qn();Ko(e,t,i,l)}function Ko(e,t,i,l){var c={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Vu(e))Ep(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,E=d(y,i);if(c.hasEagerState=!0,c.eagerState=E,$t(E,y))return tr(e,t,c,0),gt===null&&er(),!1}catch{}finally{}if(i=Ao(e,t,c,l),i!==null)return Pn(i,e,l),Sp(i,t,l),!0}return!1}function Ud(e,t,i,l){if(l={lane:2,revertLane:ph(),action:l,hasEagerState:!1,eagerState:null,next:null},Vu(e)){if(t)throw Error(r(479))}else t=Ao(e,i,l,2),t!==null&&Pn(t,e,2)}function Vu(e){var t=e.alternate;return e===de||t!==null&&t===de}function Ep(e,t){Xe=Je=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Sp(e,t,i){if((i&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,i|=l,t.lanes=i,to(e,i)}}var qu={readContext:Bt,use:Sa,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useLayoutEffect:Ze,useInsertionEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useSyncExternalStore:Ze,useId:Ze,useHostTransitionStatus:Ze,useFormState:Ze,useActionState:Ze,useOptimistic:Ze,useMemoCache:Ze,useCacheRefresh:Ze},Np={readContext:Bt,use:Sa,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:Bt,useEffect:rp,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,Bu(4194308,4,fp.bind(null,t,e),i)},useLayoutEffect:function(e,t){return Bu(4194308,4,e,t)},useInsertionEffect:function(e,t){Bu(4,2,e,t)},useMemo:function(e,t){var i=xt();t=t===void 0?null:t;var l=e();if(lt){Mn(!0);try{e()}finally{Mn(!1)}}return i.memoizedState=[l,t],l},useReducer:function(e,t,i){var l=xt();if(i!==void 0){var c=i(t);if(lt){Mn(!0);try{i(t)}finally{Mn(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=Xy.bind(null,de,e),[l.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=_s(e);var t=e.queue,i=xp.bind(null,de,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Ld,useDeferredValue:function(e,t){var i=xt();return Md(i,e,t)},useTransition:function(){var e=_s(!1);return e=gp.bind(null,de,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var l=de,c=xt();if(Qe){if(i===void 0)throw Error(r(407));i=i()}else{if(i=t(),gt===null)throw Error(r(349));(We&124)!==0||Uo(l,t,i)}c.memoizedState=i;var d={value:i,getSnapshot:t};return c.queue=d,rp(Mu.bind(null,l,d,e),[e]),l.flags|=2048,mr(9,$u(),Ho.bind(null,l,d,i,t),null),i},useId:function(){var e=xt(),t=gt.identifierPrefix;if(Qe){var i=pi,l=mi;i=(l&~(1<<32-cn(l)-1)).toString(32)+i,t="«"+t+"R"+i,i=Vt++,0<i&&(t+="H"+i.toString(32)),t+="»"}else i=An++,t="«"+t+"r"+i.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:kd,useFormState:Hu,useActionState:Hu,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=Ud.bind(null,de,!0,i),i.dispatch=t,[e,t]},useMemoCache:zo,useCacheRefresh:function(){return xt().memoizedState=Fy.bind(null,de)}},Ap={readContext:Bt,use:Sa,useCallback:hp,useContext:Bt,useEffect:op,useImperativeHandle:dp,useInsertionEffect:cp,useLayoutEffect:up,useMemo:mp,useReducer:bs,useRef:lp,useState:function(){return bs(yi)},useDebugValue:Ld,useDeferredValue:function(e,t){var i=bt();return pp(i,ye.memoizedState,e,t)},useTransition:function(){var e=bs(yi)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:vs(e),t]},useSyncExternalStore:Lu,useId:_p,useHostTransitionStatus:kd,useFormState:hr,useActionState:hr,useOptimistic:function(e,t){var i=bt();return $o(i,ye,e,t)},useMemoCache:zo,useCacheRefresh:yp},Qy={readContext:Bt,use:Sa,useCallback:hp,useContext:Bt,useEffect:op,useImperativeHandle:dp,useInsertionEffect:cp,useLayoutEffect:up,useMemo:mp,useReducer:ur,useRef:lp,useState:function(){return ur(yi)},useDebugValue:Ld,useDeferredValue:function(e,t){var i=bt();return ye===null?Md(i,e,t):pp(i,ye.memoizedState,e,t)},useTransition:function(){var e=ur(yi)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:vs(e),t]},useSyncExternalStore:Lu,useId:_p,useHostTransitionStatus:kd,useFormState:sp,useActionState:sp,useOptimistic:function(e,t){var i=bt();return ye!==null?$o(i,ye,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:zo,useCacheRefresh:yp},pr=null,Io=0;function Pu(e){var t=Io;return Io+=1,pr===null&&(pr=[]),gs(pr,e,t)}function Go(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yu(e,t){throw t.$$typeof===N?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function wp(e){var t=e._init;return t(e._payload)}function Tp(e){function t(U,L){if(e){var $=U.deletions;$===null?(U.deletions=[L],U.flags|=16):$.push(L)}}function i(U,L){if(!e)return null;for(;L!==null;)t(U,L),L=L.sibling;return null}function l(U){for(var L=new Map;U!==null;)U.key!==null?L.set(U.key,U):L.set(U.index,U),U=U.sibling;return L}function c(U,L){return U=hi(U,L),U.index=0,U.sibling=null,U}function d(U,L,$){return U.index=$,e?($=U.alternate,$!==null?($=$.index,$<L?(U.flags|=67108866,L):$):(U.flags|=67108866,L)):(U.flags|=1048576,L)}function y(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function E(U,L,$,W){return L===null||L.tag!==6?(L=ol($,U.mode,W),L.return=U,L):(L=c(L,$),L.return=U,L)}function O(U,L,$,W){var xe=$.type;return xe===A?X(U,L,$.props.children,W,$.key):L!==null&&(L.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===ne&&wp(xe)===L.type)?(L=c(L,$.props),Go(L,$),L.return=U,L):(L=nr($.type,$.key,$.props,null,U.mode,W),Go(L,$),L.return=U,L)}function V(U,L,$,W){return L===null||L.tag!==4||L.stateNode.containerInfo!==$.containerInfo||L.stateNode.implementation!==$.implementation?(L=fs($,U.mode,W),L.return=U,L):(L=c(L,$.children||[]),L.return=U,L)}function X(U,L,$,W,xe){return L===null||L.tag!==7?(L=ha($,U.mode,W,xe),L.return=U,L):(L=c(L,$),L.return=U,L)}function ee(U,L,$){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=ol(""+L,U.mode,$),L.return=U,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case C:return $=nr(L.type,L.key,L.props,null,U.mode,$),Go($,L),$.return=U,$;case D:return L=fs(L,U.mode,$),L.return=U,L;case ne:var W=L._init;return L=W(L._payload),ee(U,L,$)}if(Ne(L)||Ae(L))return L=ha(L,U.mode,$,null),L.return=U,L;if(typeof L.then=="function")return ee(U,Pu(L),$);if(L.$$typeof===G)return ee(U,hl(U,L),$);Yu(U,L)}return null}function q(U,L,$,W){var xe=L!==null?L.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return xe!==null?null:E(U,L,""+$,W);if(typeof $=="object"&&$!==null){switch($.$$typeof){case C:return $.key===xe?O(U,L,$,W):null;case D:return $.key===xe?V(U,L,$,W):null;case ne:return xe=$._init,$=xe($._payload),q(U,L,$,W)}if(Ne($)||Ae($))return xe!==null?null:X(U,L,$,W,null);if(typeof $.then=="function")return q(U,L,Pu($),W);if($.$$typeof===G)return q(U,L,hl(U,$),W);Yu(U,$)}return null}function P(U,L,$,W,xe){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return U=U.get($)||null,E(L,U,""+W,xe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case C:return U=U.get(W.key===null?$:W.key)||null,O(L,U,W,xe);case D:return U=U.get(W.key===null?$:W.key)||null,V(L,U,W,xe);case ne:var Ie=W._init;return W=Ie(W._payload),P(U,L,$,W,xe)}if(Ne(W)||Ae(W))return U=U.get($)||null,X(L,U,W,xe,null);if(typeof W.then=="function")return P(U,L,$,Pu(W),xe);if(W.$$typeof===G)return P(U,L,$,hl(L,W),xe);Yu(L,W)}return null}function He(U,L,$,W){for(var xe=null,Ie=null,we=L,ze=L=0,Yt=null;we!==null&&ze<$.length;ze++){we.index>ze?(Yt=we,we=null):Yt=we.sibling;var nt=q(U,we,$[ze],W);if(nt===null){we===null&&(we=Yt);break}e&&we&&nt.alternate===null&&t(U,we),L=d(nt,L,ze),Ie===null?xe=nt:Ie.sibling=nt,Ie=nt,we=Yt}if(ze===$.length)return i(U,we),Qe&&gn(U,ze),xe;if(we===null){for(;ze<$.length;ze++)we=ee(U,$[ze],W),we!==null&&(L=d(we,L,ze),Ie===null?xe=we:Ie.sibling=we,Ie=we);return Qe&&gn(U,ze),xe}for(we=l(we);ze<$.length;ze++)Yt=P(we,U,ze,$[ze],W),Yt!==null&&(e&&Yt.alternate!==null&&we.delete(Yt.key===null?ze:Yt.key),L=d(Yt,L,ze),Ie===null?xe=Yt:Ie.sibling=Yt,Ie=Yt);return e&&we.forEach(function(zs){return t(U,zs)}),Qe&&gn(U,ze),xe}function Le(U,L,$,W){if($==null)throw Error(r(151));for(var xe=null,Ie=null,we=L,ze=L=0,Yt=null,nt=$.next();we!==null&&!nt.done;ze++,nt=$.next()){we.index>ze?(Yt=we,we=null):Yt=we.sibling;var zs=q(U,we,nt.value,W);if(zs===null){we===null&&(we=Yt);break}e&&we&&zs.alternate===null&&t(U,we),L=d(zs,L,ze),Ie===null?xe=zs:Ie.sibling=zs,Ie=zs,we=Yt}if(nt.done)return i(U,we),Qe&&gn(U,ze),xe;if(we===null){for(;!nt.done;ze++,nt=$.next())nt=ee(U,nt.value,W),nt!==null&&(L=d(nt,L,ze),Ie===null?xe=nt:Ie.sibling=nt,Ie=nt);return Qe&&gn(U,ze),xe}for(we=l(we);!nt.done;ze++,nt=$.next())nt=P(we,U,ze,nt.value,W),nt!==null&&(e&&nt.alternate!==null&&we.delete(nt.key===null?ze:nt.key),L=d(nt,L,ze),Ie===null?xe=nt:Ie.sibling=nt,Ie=nt);return e&&we.forEach(function(Zx){return t(U,Zx)}),Qe&&gn(U,ze),xe}function ut(U,L,$,W){if(typeof $=="object"&&$!==null&&$.type===A&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case C:e:{for(var xe=$.key;L!==null;){if(L.key===xe){if(xe=$.type,xe===A){if(L.tag===7){i(U,L.sibling),W=c(L,$.props.children),W.return=U,U=W;break e}}else if(L.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===ne&&wp(xe)===L.type){i(U,L.sibling),W=c(L,$.props),Go(W,$),W.return=U,U=W;break e}i(U,L);break}else t(U,L);L=L.sibling}$.type===A?(W=ha($.props.children,U.mode,W,$.key),W.return=U,U=W):(W=nr($.type,$.key,$.props,null,U.mode,W),Go(W,$),W.return=U,U=W)}return y(U);case D:e:{for(xe=$.key;L!==null;){if(L.key===xe)if(L.tag===4&&L.stateNode.containerInfo===$.containerInfo&&L.stateNode.implementation===$.implementation){i(U,L.sibling),W=c(L,$.children||[]),W.return=U,U=W;break e}else{i(U,L);break}else t(U,L);L=L.sibling}W=fs($,U.mode,W),W.return=U,U=W}return y(U);case ne:return xe=$._init,$=xe($._payload),ut(U,L,$,W)}if(Ne($))return He(U,L,$,W);if(Ae($)){if(xe=Ae($),typeof xe!="function")throw Error(r(150));return $=xe.call($),Le(U,L,$,W)}if(typeof $.then=="function")return ut(U,L,Pu($),W);if($.$$typeof===G)return ut(U,L,hl(U,$),W);Yu(U,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,L!==null&&L.tag===6?(i(U,L.sibling),W=c(L,$),W.return=U,U=W):(i(U,L),W=ol($,U.mode,W),W.return=U,U=W),y(U)):i(U,L)}return function(U,L,$,W){try{Io=0;var xe=ut(U,L,$,W);return pr=null,xe}catch(we){if(we===pl||we===xa)throw we;var Ie=pn(29,we,null,U.mode);return Ie.lanes=W,Ie.return=U,Ie}finally{}}}var gr=Tp(!0),Op=Tp(!1),ni=T(null),Vi=null;function ys(e){var t=e.alternate;oe(kt,kt.current&1),oe(ni,e),Vi===null&&(t===null||je.current!==null||t.memoizedState!==null)&&(Vi=e)}function jp(e){if(e.tag===22){if(oe(kt,kt.current),oe(ni,e),Vi===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Vi=e)}}else xs()}function xs(){oe(kt,kt.current),oe(ni,ni.current)}function Na(e){le(ni),Vi===e&&(Vi=null),le(kt)}var kt=T(0);function Ku(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||Th(i)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Hd(e,t,i,l){t=e.memoizedState,i=i(l,t),i=i==null?t:_({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var $d={enqueueSetState:function(e,t,i){e=e._reactInternals;var l=qn(),c=Y(l);c.payload=t,i!=null&&(c.callback=i),t=J(e,c,l),t!==null&&(Pn(t,e,l),ue(t,e,l))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var l=qn(),c=Y(l);c.tag=1,c.payload=t,i!=null&&(c.callback=i),t=J(e,c,l),t!==null&&(Pn(t,e,l),ue(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=qn(),l=Y(i);l.tag=2,t!=null&&(l.callback=t),t=J(e,l,i),t!==null&&(Pn(t,e,i),ue(t,e,i))}};function Cp(e,t,i,l,c,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,y):t.prototype&&t.prototype.isPureReactComponent?!rs(i,l)||!rs(c,d):!0}function Dp(e,t,i,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,l),t.state!==e&&$d.enqueueReplaceState(t,t.state,null)}function gl(e,t){var i=t;if("ref"in t){i={};for(var l in t)l!=="ref"&&(i[l]=t[l])}if(e=e.defaultProps){i===t&&(i=_({},i));for(var c in e)i[c]===void 0&&(i[c]=e[c])}return i}var Iu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Rp(e){Iu(e)}function Lp(e){console.error(e)}function Mp(e){Iu(e)}function Gu(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function zp(e,t,i){try{var l=e.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Bd(e,t,i){return i=Y(i),i.tag=3,i.payload={element:null},i.callback=function(){Gu(e,t)},i}function kp(e){return e=Y(e),e.tag=3,e}function Up(e,t,i,l){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var d=l.value;e.payload=function(){return c(d)},e.callback=function(){zp(t,i,l)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){zp(t,i,l),typeof c!="function"&&(Ts===null?Ts=new Set([this]):Ts.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function Zy(e,t,i,l,c){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=i.alternate,t!==null&&dl(t,i,c,!0),i=ni.current,i!==null){switch(i.tag){case 13:return Vi===null?uh():i.alternate===null&&jt===0&&(jt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,l===ps?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([l]):t.add(l),dh(e,l,c)),!1;case 22:return i.flags|=65536,l===ps?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([l]):i.add(l)),dh(e,l,c)),!1}throw Error(r(435,i.tag))}return dh(e,l,c),uh(),!1}if(Qe)return t=ni.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==jo&&(e=Error(r(422),{cause:l}),gi(En(e,i)))):(l!==jo&&(t=Error(r(423),{cause:l}),gi(En(t,i))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=En(l,i),c=Bd(e.stateNode,l,c),be(e,c),jt!==4&&(jt=2)),!1;var d=Error(r(520),{cause:l});if(d=En(d,i),ec===null?ec=[d]:ec.push(d),jt!==4&&(jt=2),t===null)return!0;l=En(l,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=c&-c,i.lanes|=e,e=Bd(i.stateNode,l,e),be(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Ts===null||!Ts.has(d))))return i.flags|=65536,c&=-c,i.lanes|=c,c=kp(c),Up(c,e,i,l),be(i,c),!1}i=i.return}while(i!==null);return!1}var Hp=Error(r(461)),qt=!1;function Qt(e,t,i,l){t.child=e===null?Op(t,null,i,l):gr(t,e.child,i,l)}function $p(e,t,i,l,c){i=i.render;var d=t.ref;if("ref"in l){var y={};for(var E in l)E!=="ref"&&(y[E]=l[E])}else y=l;return Hi(t),l=wn(e,t,i,y,d,c),E=at(),e!==null&&!qt?(zt(e,t,c),Aa(e,t,c)):(Qe&&E&&To(t),t.flags|=1,Qt(e,t,l,c),t.child)}function Bp(e,t,i,l,c){if(e===null){var d=i.type;return typeof d=="function"&&!wo(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,Vp(e,t,d,l,c)):(e=nr(i.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Fd(e,c)){var y=d.memoizedProps;if(i=i.compare,i=i!==null?i:rs,i(y,l)&&e.ref===t.ref)return Aa(e,t,c)}return t.flags|=1,e=hi(d,l),e.ref=t.ref,e.return=t,t.child=e}function Vp(e,t,i,l,c){if(e!==null){var d=e.memoizedProps;if(rs(d,l)&&e.ref===t.ref)if(qt=!1,t.pendingProps=l=d,Fd(e,c))(e.flags&131072)!==0&&(qt=!0);else return t.lanes=e.lanes,Aa(e,t,c)}return Vd(e,t,i,l,c)}function qp(e,t,i){var l=t.pendingProps,c=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=d!==null?d.baseLanes|i:i,e!==null){for(c=t.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;t.childLanes=d&~l}else t.childLanes=0,t.child=null;return Pp(e,t,l,i)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&rr(t,d!==null?d.cachePool:null),d!==null?it(t,d):st(),jp(t);else return t.lanes=t.childLanes=536870912,Pp(e,t,d!==null?d.baseLanes|i:i,i)}else d!==null?(rr(t,d.cachePool),it(t,d),xs(),t.memoizedState=null):(e!==null&&rr(t,null),st(),xs());return Qt(e,t,c,i),t.child}function Pp(e,t,i,l){var c=Lo();return c=c===null?null:{parent:yt._currentValue,pool:c},t.memoizedState={baseLanes:i,cachePool:c},e!==null&&rr(t,null),st(),jp(t),e!==null&&dl(e,t,l,!0),null}function Fu(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Vd(e,t,i,l,c){return Hi(t),i=wn(e,t,i,l,void 0,c),l=at(),e!==null&&!qt?(zt(e,t,c),Aa(e,t,c)):(Qe&&l&&To(t),t.flags|=1,Qt(e,t,i,c),t.child)}function Yp(e,t,i,l,c,d){return Hi(t),t.updateQueue=null,i=Ea(t,l,i,c),Hn(e),l=at(),e!==null&&!qt?(zt(e,t,d),Aa(e,t,d)):(Qe&&l&&To(t),t.flags|=1,Qt(e,t,i,d),t.child)}function Kp(e,t,i,l,c){if(Hi(t),t.stateNode===null){var d=us,y=i.contextType;typeof y=="object"&&y!==null&&(d=Bt(y)),d=new i(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=$d,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},z(t),y=i.contextType,d.context=typeof y=="object"&&y!==null?Bt(y):us,d.state=t.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(Hd(t,i,y,l),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&$d.enqueueReplaceState(d,d.state,null),$e(t,l,d,c),me(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var E=t.memoizedProps,O=gl(i,E);d.props=O;var V=d.context,X=i.contextType;y=us,typeof X=="object"&&X!==null&&(y=Bt(X));var ee=i.getDerivedStateFromProps;X=typeof ee=="function"||typeof d.getSnapshotBeforeUpdate=="function",E=t.pendingProps!==E,X||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(E||V!==y)&&Dp(t,d,l,y),S=!1;var q=t.memoizedState;d.state=q,$e(t,l,d,c),me(),V=t.memoizedState,E||q!==V||S?(typeof ee=="function"&&(Hd(t,i,ee,l),V=t.memoizedState),(O=S||Cp(t,i,O,l,q,V,y))?(X||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=V),d.props=l,d.state=V,d.context=y,l=O):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,k(e,t),y=t.memoizedProps,X=gl(i,y),d.props=X,ee=t.pendingProps,q=d.context,V=i.contextType,O=us,typeof V=="object"&&V!==null&&(O=Bt(V)),E=i.getDerivedStateFromProps,(V=typeof E=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==ee||q!==O)&&Dp(t,d,l,O),S=!1,q=t.memoizedState,d.state=q,$e(t,l,d,c),me();var P=t.memoizedState;y!==ee||q!==P||S||e!==null&&e.dependencies!==null&&ar(e.dependencies)?(typeof E=="function"&&(Hd(t,i,E,l),P=t.memoizedState),(X=S||Cp(t,i,X,l,q,P,O)||e!==null&&e.dependencies!==null&&ar(e.dependencies))?(V||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,P,O),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,P,O)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=P),d.props=l,d.state=P,d.context=O,l=X):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&q===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,Fu(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=gr(t,e.child,null,c),t.child=gr(t,null,i,c)):Qt(e,t,i,c),t.memoizedState=d.state,e=t.child):e=Aa(e,t,c),e}function Ip(e,t,i,l){return fl(),t.flags|=256,Qt(e,t,i,l),t.child}var qd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pd(e){return{baseLanes:e,cachePool:Du()}}function Yd(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=ii),e}function Gp(e,t,i){var l=t.pendingProps,c=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(kt.current&2)!==0),y&&(c=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Qe){if(c?ys(t):xs(),Qe){var E=dt,O;if(O=E){e:{for(O=E,E=Un;O.nodeType!==8;){if(!E){E=null;break e}if(O=Ei(O.nextSibling),O===null){E=null;break e}}E=O}E!==null?(t.memoizedState={dehydrated:E,treeContext:pa!==null?{id:mi,overflow:pi}:null,retryLane:536870912,hydrationErrors:null},O=pn(18,null,null,0),O.stateNode=E,O.return=t,t.child=O,Ft=t,dt=null,O=!0):O=!1}O||Sn(t)}if(E=t.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return Th(E)?t.lanes=32:t.lanes=536870912,null;Na(t)}return E=l.children,l=l.fallback,c?(xs(),c=t.mode,E=Xu({mode:"hidden",children:E},c),l=ha(l,c,i,null),E.return=t,l.return=t,E.sibling=l,t.child=E,c=t.child,c.memoizedState=Pd(i),c.childLanes=Yd(e,y,i),t.memoizedState=qd,l):(ys(t),Kd(t,E))}if(O=e.memoizedState,O!==null&&(E=O.dehydrated,E!==null)){if(d)t.flags&256?(ys(t),t.flags&=-257,t=Id(e,t,i)):t.memoizedState!==null?(xs(),t.child=e.child,t.flags|=128,t=null):(xs(),c=l.fallback,E=t.mode,l=Xu({mode:"visible",children:l.children},E),c=ha(c,E,i,null),c.flags|=2,l.return=t,c.return=t,l.sibling=c,t.child=l,gr(t,e.child,null,i),l=t.child,l.memoizedState=Pd(i),l.childLanes=Yd(e,y,i),t.memoizedState=qd,t=c);else if(ys(t),Th(E)){if(y=E.nextSibling&&E.nextSibling.dataset,y)var V=y.dgst;y=V,l=Error(r(419)),l.stack="",l.digest=y,gi({value:l,source:null,stack:null}),t=Id(e,t,i)}else if(qt||dl(e,t,i,!1),y=(i&e.childLanes)!==0,qt||y){if(y=gt,y!==null&&(l=i&-i,l=(l&42)!==0?1:no(l),l=(l&(y.suspendedLanes|i))!==0?0:l,l!==0&&l!==O.retryLane))throw O.retryLane=l,cs(e,l),Pn(y,e,l),Hp;E.data==="$?"||uh(),t=Id(e,t,i)}else E.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=O.treeContext,dt=Ei(E.nextSibling),Ft=t,Qe=!0,ga=null,Un=!1,e!==null&&(an[sn++]=mi,an[sn++]=pi,an[sn++]=pa,mi=e.id,pi=e.overflow,pa=t),t=Kd(t,l.children),t.flags|=4096);return t}return c?(xs(),c=l.fallback,E=t.mode,O=e.child,V=O.sibling,l=hi(O,{mode:"hidden",children:l.children}),l.subtreeFlags=O.subtreeFlags&65011712,V!==null?c=hi(V,c):(c=ha(c,E,i,null),c.flags|=2),c.return=t,l.return=t,l.sibling=c,t.child=l,l=c,c=t.child,E=e.child.memoizedState,E===null?E=Pd(i):(O=E.cachePool,O!==null?(V=yt._currentValue,O=O.parent!==V?{parent:V,pool:V}:O):O=Du(),E={baseLanes:E.baseLanes|i,cachePool:O}),c.memoizedState=E,c.childLanes=Yd(e,y,i),t.memoizedState=qd,l):(ys(t),i=e.child,e=i.sibling,i=hi(i,{mode:"visible",children:l.children}),i.return=t,i.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=i,t.memoizedState=null,i)}function Kd(e,t){return t=Xu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Xu(e,t){return e=pn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Id(e,t,i){return gr(t,e.child,null,i),e=Kd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fp(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Do(e.return,t,i)}function Gd(e,t,i,l,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=i,d.tailMode=c)}function Xp(e,t,i){var l=t.pendingProps,c=l.revealOrder,d=l.tail;if(Qt(e,t,l.children,i),l=kt.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fp(e,i,t);else if(e.tag===19)Fp(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(oe(kt,l),c){case"forwards":for(i=t.child,c=null;i!==null;)e=i.alternate,e!==null&&Ku(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=t.child,t.child=null):(c=i.sibling,i.sibling=null),Gd(t,!1,c,i,d);break;case"backwards":for(i=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Ku(e)===null){t.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}Gd(t,!0,i,null,d);break;case"together":Gd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Aa(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),ws|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(dl(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,i=hi(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=hi(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Fd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ar(e)))}function Wy(e,t,i){switch(t.tag){case 3:Re(t,t.stateNode.containerInfo),Ui(t,yt,e.memoizedState.cache),fl();break;case 27:case 5:Gn(t);break;case 4:Re(t,t.stateNode.containerInfo);break;case 10:Ui(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ys(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Gp(e,t,i):(ys(t),e=Aa(e,t,i),e!==null?e.sibling:null);ys(t);break;case 19:var c=(e.flags&128)!==0;if(l=(i&t.childLanes)!==0,l||(dl(e,t,i,!1),l=(i&t.childLanes)!==0),c){if(l)return Xp(e,t,i);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),oe(kt,kt.current),l)break;return null;case 22:case 23:return t.lanes=0,qp(e,t,i);case 24:Ui(t,yt,e.memoizedState.cache)}return Aa(e,t,i)}function Qp(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)qt=!0;else{if(!Fd(e,i)&&(t.flags&128)===0)return qt=!1,Wy(e,t,i);qt=(e.flags&131072)!==0}else qt=!1,Qe&&(t.flags&1048576)!==0&&Au(t,ki,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,c=l._init;if(l=c(l._payload),t.type=l,typeof l=="function")wo(l)?(e=gl(l,e),t.tag=1,t=Kp(null,t,l,e,i)):(t.tag=0,t=Vd(null,t,l,e,i));else{if(l!=null){if(c=l.$$typeof,c===F){t.tag=11,t=$p(null,t,l,e,i);break e}else if(c===ie){t.tag=14,t=Bp(null,t,l,e,i);break e}}throw t=se(l)||l,Error(r(306,t,""))}}return t;case 0:return Vd(e,t,t.type,t.pendingProps,i);case 1:return l=t.type,c=gl(l,t.pendingProps),Kp(e,t,l,c,i);case 3:e:{if(Re(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var d=t.memoizedState;c=d.element,k(e,t),$e(t,l,null,i);var y=t.memoizedState;if(l=y.cache,Ui(t,yt,l),l!==d.cache&&Ro(t,[yt],i,!0),me(),l=y.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Ip(e,t,l,i);break e}else if(l!==c){c=En(Error(r(424)),t),gi(c),t=Ip(e,t,l,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(dt=Ei(e.firstChild),Ft=t,Qe=!0,ga=null,Un=!0,i=Op(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(fl(),l===c){t=Aa(e,t,i);break e}Qt(e,t,l,i)}t=t.child}return t;case 26:return Fu(e,t),e===null?(i=ev(t.type,null,t.pendingProps,null))?t.memoizedState=i:Qe||(i=t.type,e=t.pendingProps,l=uf(Ee.current).createElement(i),l[wt]=t,l[Jt]=e,Wt(l,i,e),vt(l),t.stateNode=l):t.memoizedState=ev(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Gn(t),e===null&&Qe&&(l=t.stateNode=Zg(t.type,t.pendingProps,Ee.current),Ft=t,Un=!0,c=dt,Cs(t.type)?(Oh=c,dt=Ei(l.firstChild)):dt=c),Qt(e,t,t.pendingProps.children,i),Fu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Qe&&((c=l=dt)&&(l=wx(l,t.type,t.pendingProps,Un),l!==null?(t.stateNode=l,Ft=t,dt=Ei(l.firstChild),Un=!1,c=!0):c=!1),c||Sn(t)),Gn(t),c=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,l=d.children,Nh(c,d)?l=null:y!==null&&Nh(c,y)&&(t.flags|=32),t.memoizedState!==null&&(c=wn(e,t,Lt,null,null,i),cc._currentValue=c),Fu(e,t),Qt(e,t,l,i),t.child;case 6:return e===null&&Qe&&((e=i=dt)&&(i=Tx(i,t.pendingProps,Un),i!==null?(t.stateNode=i,Ft=t,dt=null,e=!0):e=!1),e||Sn(t)),null;case 13:return Gp(e,t,i);case 4:return Re(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=gr(t,null,l,i):Qt(e,t,l,i),t.child;case 11:return $p(e,t,t.type,t.pendingProps,i);case 7:return Qt(e,t,t.pendingProps,i),t.child;case 8:return Qt(e,t,t.pendingProps.children,i),t.child;case 12:return Qt(e,t,t.pendingProps.children,i),t.child;case 10:return l=t.pendingProps,Ui(t,t.type,l.value),Qt(e,t,l.children,i),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,Hi(t),c=Bt(c),l=l(c),t.flags|=1,Qt(e,t,l,i),t.child;case 14:return Bp(e,t,t.type,t.pendingProps,i);case 15:return Vp(e,t,t.type,t.pendingProps,i);case 19:return Xp(e,t,i);case 31:return l=t.pendingProps,i=t.mode,l={mode:l.mode,children:l.children},e===null?(i=Xu(l,i),i.ref=t.ref,t.child=i,i.return=t,t=i):(i=hi(e.child,l),i.ref=t.ref,t.child=i,i.return=t,t=i),t;case 22:return qp(e,t,i);case 24:return Hi(t),l=Bt(yt),e===null?(c=Lo(),c===null&&(c=gt,d=lr(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=i),c=d),t.memoizedState={parent:l,cache:c},z(t),Ui(t,yt,c)):((e.lanes&i)!==0&&(k(e,t),$e(t,null,null,i),me()),c=e.memoizedState,d=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),Ui(t,yt,l)):(l=d.cache,Ui(t,yt,l),l!==c.cache&&Ro(t,[yt],i,!0))),Qt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function wa(e){e.flags|=4}function Zp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sv(t)){if(t=ni.current,t!==null&&((We&4194048)===We?Vi!==null:(We&62914560)!==We&&(We&536870912)===0||t!==Vi))throw x=ps,Mo;e.flags|=8192}}function Qu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Vc():536870912,e.lanes|=t,yr|=t)}function Fo(e,t){if(!Qe)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Et(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function Jy(e,t,i){var l=t.pendingProps;switch(Oo(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(t),null;case 1:return Et(t),null;case 3:return i=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),_i(yt),ve(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(ul(t)?wa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wu())),Et(t),null;case 26:return i=t.memoizedState,e===null?(wa(t),i!==null?(Et(t),Zp(t,i)):(Et(t),t.flags&=-16777217)):i?i!==e.memoizedState?(wa(t),Et(t),Zp(t,i)):(Et(t),t.flags&=-16777217):(e.memoizedProps!==l&&wa(t),Et(t),t.flags&=-16777217),null;case 27:yn(t),i=Ee.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wa(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Et(t),null}e=pe.current,ul(t)?ir(t):(e=Zg(c,l,i),t.stateNode=e,wa(t))}return Et(t),null;case 5:if(yn(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wa(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Et(t),null}if(e=pe.current,ul(t))ir(t);else{switch(c=uf(Ee.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?c.createElement(i,{is:l.is}):c.createElement(i)}}e[wt]=t,e[Jt]=l;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=e;e:switch(Wt(e,i,l),i){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&wa(t)}}return Et(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&wa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=Ee.current,ul(t)){if(e=t.stateNode,i=t.memoizedProps,l=null,c=Ft,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[wt]=t,e=!!(e.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||Yg(e.nodeValue,i)),e||Sn(t)}else e=uf(e).createTextNode(l),e[wt]=t,t.stateNode=e}return Et(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=ul(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(r(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));c[wt]=t}else fl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Et(t),c=!1}else c=wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(Na(t),t):(Na(t),null)}if(Na(t),(t.flags&128)!==0)return t.lanes=i,t;if(i=l!==null,e=e!==null&&e.memoizedState!==null,i){l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool);var d=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==c&&(l.flags|=2048)}return i!==e&&i&&(t.child.flags|=8192),Qu(t,t.updateQueue),Et(t),null;case 4:return ve(),e===null&&_h(t.stateNode.containerInfo),Et(t),null;case 10:return _i(t.type),Et(t),null;case 19:if(le(kt),c=t.memoizedState,c===null)return Et(t),null;if(l=(t.flags&128)!==0,d=c.rendering,d===null)if(l)Fo(c,!1);else{if(jt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Ku(e),d!==null){for(t.flags|=128,Fo(c,!1),e=d.updateQueue,t.updateQueue=e,Qu(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Nu(i,e),i=i.sibling;return oe(kt,kt.current&1|2),t.child}e=e.sibling}c.tail!==null&&Nt()>Ju&&(t.flags|=128,l=!0,Fo(c,!1),t.lanes=4194304)}else{if(!l)if(e=Ku(d),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Qu(t,e),Fo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!Qe)return Et(t),null}else 2*Nt()-c.renderingStartTime>Ju&&i!==536870912&&(t.flags|=128,l=!0,Fo(c,!1),t.lanes=4194304);c.isBackwards?(d.sibling=t.child,t.child=d):(e=c.last,e!==null?e.sibling=d:t.child=d,c.last=d)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Nt(),t.sibling=null,e=kt.current,oe(kt,l?e&1|2:e&1),t):(Et(t),null);case 22:case 23:return Na(t),qe(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(i&536870912)!==0&&(t.flags&128)===0&&(Et(t),t.subtreeFlags&6&&(t.flags|=8192)):Et(t),i=t.updateQueue,i!==null&&Qu(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==i&&(t.flags|=2048),e!==null&&le(ya),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),_i(yt),Et(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ex(e,t){switch(Oo(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _i(yt),ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return yn(t),null;case 13:if(Na(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(kt),null;case 4:return ve(),null;case 10:return _i(t.type),null;case 22:case 23:return Na(t),qe(),e!==null&&le(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _i(yt),null;case 25:return null;default:return null}}function Wp(e,t){switch(Oo(t),t.tag){case 3:_i(yt),ve();break;case 26:case 27:case 5:yn(t);break;case 4:ve();break;case 13:Na(t);break;case 19:le(kt);break;case 10:_i(t.type);break;case 22:case 23:Na(t),qe(),e!==null&&le(ya);break;case 24:_i(yt)}}function Xo(e,t){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var c=l.next;i=c;do{if((i.tag&e)===e){l=void 0;var d=i.create,y=i.inst;l=d(),y.destroy=l}i=i.next}while(i!==c)}}catch(E){ht(t,t.return,E)}}function Es(e,t,i){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var d=c.next;l=d;do{if((l.tag&e)===e){var y=l.inst,E=y.destroy;if(E!==void 0){y.destroy=void 0,c=t;var O=i,V=E;try{V()}catch(X){ht(c,O,X)}}}l=l.next}while(l!==d)}}catch(X){ht(t,t.return,X)}}function Jp(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{Be(t,i)}catch(l){ht(e,e.return,l)}}}function eg(e,t,i){i.props=gl(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(l){ht(e,t,l)}}function Qo(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof i=="function"?e.refCleanup=i(l):i.current=l}}catch(c){ht(e,t,c)}}function qi(e,t){var i=e.ref,l=e.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(c){ht(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){ht(e,t,c)}else i.current=null}function tg(e){var t=e.type,i=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(c){ht(e,e.return,c)}}function Xd(e,t,i){try{var l=e.stateNode;xx(l,e.type,i,t),l[Jt]=t}catch(c){ht(e,e.return,c)}}function ng(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cs(e.type)||e.tag===4}function Qd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ng(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.tag===27&&Cs(e.type)||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 Zd(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=cf));else if(l!==4&&(l===27&&Cs(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Zd(e,t,i),e=e.sibling;e!==null;)Zd(e,t,i),e=e.sibling}function Zu(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(l===27&&Cs(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(Zu(e,t,i),e=e.sibling;e!==null;)Zu(e,t,i),e=e.sibling}function ig(e){var t=e.stateNode,i=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Wt(t,l,i),t[wt]=e,t[Jt]=i}catch(d){ht(e,e.return,d)}}var Ta=!1,Dt=!1,Wd=!1,ag=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function tx(e,t){if(e=e.containerInfo,Eh=gf,e=vu(e),Ql(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,E=-1,O=-1,V=0,X=0,ee=e,q=null;t:for(;;){for(var P;ee!==i||c!==0&&ee.nodeType!==3||(E=y+c),ee!==d||l!==0&&ee.nodeType!==3||(O=y+l),ee.nodeType===3&&(y+=ee.nodeValue.length),(P=ee.firstChild)!==null;)q=ee,ee=P;for(;;){if(ee===e)break t;if(q===i&&++V===c&&(E=y),q===d&&++X===l&&(O=y),(P=ee.nextSibling)!==null)break;ee=q,q=ee.parentNode}ee=P}i=E===-1||O===-1?null:{start:E,end:O}}else i=null}i=i||{start:0,end:0}}else i=null;for(Sh={focusedElem:e,selectionRange:i},gf=!1,Pt=t;Pt!==null;)if(t=Pt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Pt=e;else for(;Pt!==null;){switch(t=Pt,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,c=d.memoizedProps,d=d.memoizedState,l=i.stateNode;try{var He=gl(i.type,c,i.elementType===i.type);e=l.getSnapshotBeforeUpdate(He,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(Le){ht(i,i.return,Le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)wh(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":wh(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Pt=e;break}Pt=t.return}}function sg(e,t,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Ss(e,i),l&4&&Xo(5,i);break;case 1:if(Ss(e,i),l&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(y){ht(i,i.return,y)}else{var c=gl(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){ht(i,i.return,y)}}l&64&&Jp(i),l&512&&Qo(i,i.return);break;case 3:if(Ss(e,i),l&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{Be(e,t)}catch(y){ht(i,i.return,y)}}break;case 27:t===null&&l&4&&ig(i);case 26:case 5:Ss(e,i),t===null&&l&4&&tg(i),l&512&&Qo(i,i.return);break;case 12:Ss(e,i);break;case 13:Ss(e,i),l&4&&og(e,i),l&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=ux.bind(null,i),Ox(e,i))));break;case 22:if(l=i.memoizedState!==null||Ta,!l){t=t!==null&&t.memoizedState!==null||Dt,c=Ta;var d=Dt;Ta=l,(Dt=t)&&!d?Ns(e,i,(i.subtreeFlags&8772)!==0):Ss(e,i),Ta=c,Dt=d}break;case 30:break;default:Ss(e,i)}}function lg(e){var t=e.alternate;t!==null&&(e.alternate=null,lg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ya(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}var _t=null,Tn=!1;function Oa(e,t,i){for(i=i.child;i!==null;)rg(e,t,i),i=i.sibling}function rg(e,t,i){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(It,i)}catch{}switch(i.tag){case 26:Dt||qi(i,t),Oa(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Dt||qi(i,t);var l=_t,c=Tn;Cs(i.type)&&(_t=i.stateNode,Tn=!1),Oa(e,t,i),sc(i.stateNode),_t=l,Tn=c;break;case 5:Dt||qi(i,t);case 6:if(l=_t,c=Tn,_t=null,Oa(e,t,i),_t=l,Tn=c,_t!==null)if(Tn)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(i.stateNode)}catch(d){ht(i,t,d)}else try{_t.removeChild(i.stateNode)}catch(d){ht(i,t,d)}break;case 18:_t!==null&&(Tn?(e=_t,Xg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),hc(e)):Xg(_t,i.stateNode));break;case 4:l=_t,c=Tn,_t=i.stateNode.containerInfo,Tn=!0,Oa(e,t,i),_t=l,Tn=c;break;case 0:case 11:case 14:case 15:Dt||Es(2,i,t),Dt||Es(4,i,t),Oa(e,t,i);break;case 1:Dt||(qi(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"&&eg(i,t,l)),Oa(e,t,i);break;case 21:Oa(e,t,i);break;case 22:Dt=(l=Dt)||i.memoizedState!==null,Oa(e,t,i),Dt=l;break;default:Oa(e,t,i)}}function og(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{hc(e)}catch(i){ht(t,t.return,i)}}function nx(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ag),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ag),t;default:throw Error(r(435,e.tag))}}function Jd(e,t){var i=nx(e);t.forEach(function(l){var c=fx.bind(null,e,l);i.has(l)||(i.add(l),l.then(c,c))})}function $n(e,t){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var c=i[l],d=e,y=t,E=y;e:for(;E!==null;){switch(E.tag){case 27:if(Cs(E.type)){_t=E.stateNode,Tn=!1;break e}break;case 5:_t=E.stateNode,Tn=!1;break e;case 3:case 4:_t=E.stateNode.containerInfo,Tn=!0;break e}E=E.return}if(_t===null)throw Error(r(160));rg(d,y,c),_t=null,Tn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)cg(t,e),t=t.sibling}var xi=null;function cg(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$n(t,e),Bn(e),l&4&&(Es(3,e,e.return),Xo(3,e),Es(5,e,e.return));break;case 1:$n(t,e),Bn(e),l&512&&(Dt||i===null||qi(i,i.return)),l&64&&Ta&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var c=xi;if($n(t,e),Bn(e),l&512&&(Dt||i===null||qi(i,i.return)),l&4){var d=i!==null?i.memoizedState:null;if(l=e.memoizedState,i===null)if(l===null)if(e.stateNode===null){e:{l=e.type,i=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":d=c.getElementsByTagName("title")[0],(!d||d[Xn]||d[wt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(l),c.head.insertBefore(d,c.querySelector("head > title"))),Wt(d,l,i),d[wt]=e,vt(d),l=d;break e;case"link":var y=iv("link","href",c).get(l+(i.href||""));if(y){for(var E=0;E<y.length;E++)if(d=y[E],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){y.splice(E,1);break t}}d=c.createElement(l),Wt(d,l,i),c.head.appendChild(d);break;case"meta":if(y=iv("meta","content",c).get(l+(i.content||""))){for(E=0;E<y.length;E++)if(d=y[E],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){y.splice(E,1);break t}}d=c.createElement(l),Wt(d,l,i),c.head.appendChild(d);break;default:throw Error(r(468,l))}d[wt]=e,vt(d),l=d}e.stateNode=l}else av(c,e.type,e.stateNode);else e.stateNode=nv(c,l,e.memoizedProps);else d!==l?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,l===null?av(c,e.type,e.stateNode):nv(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Xd(e,e.memoizedProps,i.memoizedProps)}break;case 27:$n(t,e),Bn(e),l&512&&(Dt||i===null||qi(i,i.return)),i!==null&&l&4&&Xd(e,e.memoizedProps,i.memoizedProps);break;case 5:if($n(t,e),Bn(e),l&512&&(Dt||i===null||qi(i,i.return)),e.flags&32){c=e.stateNode;try{fi(c,"")}catch(P){ht(e,e.return,P)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,Xd(e,c,i!==null?i.memoizedProps:c)),l&1024&&(Wd=!0);break;case 6:if($n(t,e),Bn(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,i=e.stateNode;try{i.nodeValue=l}catch(P){ht(e,e.return,P)}}break;case 3:if(hf=null,c=xi,xi=ff(t.containerInfo),$n(t,e),xi=c,Bn(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{hc(t.containerInfo)}catch(P){ht(e,e.return,P)}Wd&&(Wd=!1,ug(e));break;case 4:l=xi,xi=ff(e.stateNode.containerInfo),$n(t,e),Bn(e),xi=l;break;case 12:$n(t,e),Bn(e);break;case 13:$n(t,e),Bn(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(sh=Nt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Jd(e,l)));break;case 22:c=e.memoizedState!==null;var O=i!==null&&i.memoizedState!==null,V=Ta,X=Dt;if(Ta=V||c,Dt=X||O,$n(t,e),Dt=X,Ta=V,Bn(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(i===null||O||Ta||Dt||vl(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){O=i=t;try{if(d=O.stateNode,c)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{E=O.stateNode;var ee=O.memoizedProps.style,q=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;E.style.display=q==null||typeof q=="boolean"?"":(""+q).trim()}}catch(P){ht(O,O.return,P)}}}else if(t.tag===6){if(i===null){O=t;try{O.stateNode.nodeValue=c?"":O.memoizedProps}catch(P){ht(O,O.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Jd(e,i))));break;case 19:$n(t,e),Bn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Jd(e,l)));break;case 30:break;case 21:break;default:$n(t,e),Bn(e)}}function Bn(e){var t=e.flags;if(t&2){try{for(var i,l=e.return;l!==null;){if(ng(l)){i=l;break}l=l.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var c=i.stateNode,d=Qd(e);Zu(e,d,c);break;case 5:var y=i.stateNode;i.flags&32&&(fi(y,""),i.flags&=-33);var E=Qd(e);Zu(e,E,y);break;case 3:case 4:var O=i.stateNode.containerInfo,V=Qd(e);Zd(e,V,O);break;default:throw Error(r(161))}}catch(X){ht(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ug(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ug(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ss(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sg(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Es(4,t,t.return),vl(t);break;case 1:qi(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&eg(t,t.return,i),vl(t);break;case 27:sc(t.stateNode);case 26:case 5:qi(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function Ns(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:Ns(c,d,i),Xo(4,d);break;case 1:if(Ns(c,d,i),l=d,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(V){ht(l,l.return,V)}if(l=d,c=l.updateQueue,c!==null){var E=l.stateNode;try{var O=c.shared.hiddenCallbacks;if(O!==null)for(c.shared.hiddenCallbacks=null,c=0;c<O.length;c++)De(O[c],E)}catch(V){ht(l,l.return,V)}}i&&y&64&&Jp(d),Qo(d,d.return);break;case 27:ig(d);case 26:case 5:Ns(c,d,i),i&&l===null&&y&4&&tg(d),Qo(d,d.return);break;case 12:Ns(c,d,i);break;case 13:Ns(c,d,i),i&&y&4&&og(c,d);break;case 22:d.memoizedState===null&&Ns(c,d,i),Qo(d,d.return);break;case 30:break;default:Ns(c,d,i)}t=t.sibling}}function eh(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&_a(i))}function th(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_a(e))}function Pi(e,t,i,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fg(e,t,i,l),t=t.sibling}function fg(e,t,i,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Pi(e,t,i,l),c&2048&&Xo(9,t);break;case 1:Pi(e,t,i,l);break;case 3:Pi(e,t,i,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&_a(e)));break;case 12:if(c&2048){Pi(e,t,i,l),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,E=d.onPostCommit;typeof E=="function"&&E(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(O){ht(t,t.return,O)}}else Pi(e,t,i,l);break;case 13:Pi(e,t,i,l);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?Pi(e,t,i,l):Zo(e,t):d._visibility&2?Pi(e,t,i,l):(d._visibility|=2,vr(e,t,i,l,(t.subtreeFlags&10256)!==0)),c&2048&&eh(y,t);break;case 24:Pi(e,t,i,l),c&2048&&th(t.alternate,t);break;default:Pi(e,t,i,l)}}function vr(e,t,i,l,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,y=t,E=i,O=l,V=y.flags;switch(y.tag){case 0:case 11:case 15:vr(d,y,E,O,c),Xo(8,y);break;case 23:break;case 22:var X=y.stateNode;y.memoizedState!==null?X._visibility&2?vr(d,y,E,O,c):Zo(d,y):(X._visibility|=2,vr(d,y,E,O,c)),c&&V&2048&&eh(y.alternate,y);break;case 24:vr(d,y,E,O,c),c&&V&2048&&th(y.alternate,y);break;default:vr(d,y,E,O,c)}t=t.sibling}}function Zo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,l=t,c=l.flags;switch(l.tag){case 22:Zo(i,l),c&2048&&eh(l.alternate,l);break;case 24:Zo(i,l),c&2048&&th(l.alternate,l);break;default:Zo(i,l)}t=t.sibling}}var Wo=8192;function br(e){if(e.subtreeFlags&Wo)for(e=e.child;e!==null;)dg(e),e=e.sibling}function dg(e){switch(e.tag){case 26:br(e),e.flags&Wo&&e.memoizedState!==null&&Vx(xi,e.memoizedState,e.memoizedProps);break;case 5:br(e);break;case 3:case 4:var t=xi;xi=ff(e.stateNode.containerInfo),br(e),xi=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Wo,Wo=16777216,br(e),Wo=t):br(e));break;default:br(e)}}function hg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Jo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Pt=l,pg(l,e)}hg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mg(e),e=e.sibling}function mg(e){switch(e.tag){case 0:case 11:case 15:Jo(e),e.flags&2048&&Es(9,e,e.return);break;case 3:Jo(e);break;case 12:Jo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Wu(e)):Jo(e);break;default:Jo(e)}}function Wu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var l=t[i];Pt=l,pg(l,e)}hg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Es(8,t,t.return),Wu(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,Wu(t));break;default:Wu(t)}e=e.sibling}}function pg(e,t){for(;Pt!==null;){var i=Pt;switch(i.tag){case 0:case 11:case 15:Es(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:_a(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Pt=l;else e:for(i=e;Pt!==null;){l=Pt;var c=l.sibling,d=l.return;if(lg(l),l===i){Pt=null;break e}if(c!==null){c.return=d,Pt=c;break e}Pt=d}}}var ix={getCacheForType:function(e){var t=Bt(yt),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i}},ax=typeof WeakMap=="function"?WeakMap:Map,rt=0,gt=null,Ge=null,We=0,ot=0,Vn=null,As=!1,_r=!1,nh=!1,ja=0,jt=0,ws=0,bl=0,ih=0,ii=0,yr=0,ec=null,On=null,ah=!1,sh=0,Ju=1/0,ef=null,Ts=null,Zt=0,Os=null,xr=null,Er=0,lh=0,rh=null,gg=null,tc=0,oh=null;function qn(){if((rt&2)!==0&&We!==0)return We&-We;if(B.T!==null){var e=ms;return e!==0?e:ph()}return qc()}function vg(){ii===0&&(ii=(We&536870912)===0||Qe?Bc():536870912);var e=ni.current;return e!==null&&(e.flags|=32),ii}function Pn(e,t,i){(e===gt&&(ot===2||ot===9)||e.cancelPendingCommit!==null)&&(Sr(e,0),js(e,We,ii,!1)),qa(e,i),((rt&2)===0||e!==gt)&&(e===gt&&((rt&2)===0&&(bl|=i),jt===4&&js(e,We,ii,!1)),Yi(e))}function bg(e,t,i){if((rt&6)!==0)throw Error(r(327));var l=!i&&(t&124)===0&&(t&e.expiredLanes)===0||Gs(e,t),c=l?rx(e,t):fh(e,t,!0),d=l;do{if(c===0){_r&&!l&&js(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!sx(i)){c=fh(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var E=e;c=ec;var O=E.current.memoizedState.isDehydrated;if(O&&(Sr(E,y).flags|=256),y=fh(E,y,!1),y!==2){if(nh&&!O){E.errorRecoveryDisabledLanes|=d,bl|=d,c=4;break e}d=On,On=c,d!==null&&(On===null?On=d:On.push.apply(On,d))}c=y}if(d=!1,c!==2)continue}}if(c===1){Sr(e,0),js(e,t,0,!0);break}e:{switch(l=e,d=c,d){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:js(l,t,ii,!As);break e;case 2:On=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(c=sh+300-Nt(),10<c)){if(js(l,t,ii,!As),Rl(l,0,!0)!==0)break e;l.timeoutHandle=Gg(_g.bind(null,l,i,On,ef,ah,t,ii,bl,yr,As,d,2,-0,0),c);break e}_g(l,i,On,ef,ah,t,ii,bl,yr,As,d,0,-0,0)}}break}while(!0);Yi(e)}function _g(e,t,i,l,c,d,y,E,O,V,X,ee,q,P){if(e.timeoutHandle=-1,ee=t.subtreeFlags,(ee&8192||(ee&16785408)===16785408)&&(oc={stylesheets:null,count:0,unsuspend:Bx},dg(t),ee=qx(),ee!==null)){e.cancelPendingCommit=ee(wg.bind(null,e,t,d,i,l,c,y,E,O,X,1,q,P)),js(e,d,y,!V);return}wg(e,t,d,i,l,c,y,E,O)}function sx(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var c=i[l],d=c.getSnapshot;c=c.value;try{if(!$t(d(),c))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function js(e,t,i,l){t&=~ih,t&=~bl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var d=31-cn(c),y=1<<d;l[d]=-1,c&=~y}i!==0&&eo(e,i,t)}function tf(){return(rt&6)===0?(nc(0),!1):!0}function ch(){if(Ge!==null){if(ot===0)var e=Ge.return;else e=Ge,bi=va=null,ln(e),pr=null,Io=0,e=Ge;for(;e!==null;)Wp(e.alternate,e),e=e.return;Ge=null}}function Sr(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,Sx(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),ch(),gt=e,Ge=i=hi(e.current,null),We=t,ot=0,Vn=null,As=!1,_r=Gs(e,t),nh=!1,yr=ii=ih=bl=ws=jt=0,On=ec=null,ah=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-cn(l),d=1<<c;t|=e[c],l&=~d}return ja=t,er(),i}function yg(e,t){de=null,B.H=qu,t===pl||t===xa?(t=u(),ot=3):t===Mo?(t=u(),ot=4):ot=t===Hp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Vn=t,Ge===null&&(jt=1,Gu(e,En(t,e.current)))}function xg(){var e=B.H;return B.H=qu,e===null?qu:e}function Eg(){var e=B.A;return B.A=ix,e}function uh(){jt=4,As||(We&4194048)!==We&&ni.current!==null||(_r=!0),(ws&134217727)===0&&(bl&134217727)===0||gt===null||js(gt,We,ii,!1)}function fh(e,t,i){var l=rt;rt|=2;var c=xg(),d=Eg();(gt!==e||We!==t)&&(ef=null,Sr(e,t)),t=!1;var y=jt;e:do try{if(ot!==0&&Ge!==null){var E=Ge,O=Vn;switch(ot){case 8:ch(),y=6;break e;case 3:case 2:case 9:case 6:ni.current===null&&(t=!0);var V=ot;if(ot=0,Vn=null,Nr(e,E,O,V),i&&_r){y=0;break e}break;default:V=ot,ot=0,Vn=null,Nr(e,E,O,V)}}lx(),y=jt;break}catch(X){yg(e,X)}while(!0);return t&&e.shellSuspendCounter++,bi=va=null,rt=l,B.H=c,B.A=d,Ge===null&&(gt=null,We=0,er()),y}function lx(){for(;Ge!==null;)Sg(Ge)}function rx(e,t){var i=rt;rt|=2;var l=xg(),c=Eg();gt!==e||We!==t?(ef=null,Ju=Nt()+500,Sr(e,t)):_r=Gs(e,t);e:do try{if(ot!==0&&Ge!==null){t=Ge;var d=Vn;t:switch(ot){case 1:ot=0,Vn=null,Nr(e,t,d,1);break;case 2:case 9:if(Ru(d)){ot=0,Vn=null,Ng(t);break}t=function(){ot!==2&&ot!==9||gt!==e||(ot=7),Yi(e)},d.then(t,t);break e;case 3:ot=7;break e;case 4:ot=5;break e;case 7:Ru(d)?(ot=0,Vn=null,Ng(t)):(ot=0,Vn=null,Nr(e,t,d,7));break;case 5:var y=null;switch(Ge.tag){case 26:y=Ge.memoizedState;case 5:case 27:var E=Ge;if(!y||sv(y)){ot=0,Vn=null;var O=E.sibling;if(O!==null)Ge=O;else{var V=E.return;V!==null?(Ge=V,nf(V)):Ge=null}break t}}ot=0,Vn=null,Nr(e,t,d,5);break;case 6:ot=0,Vn=null,Nr(e,t,d,6);break;case 8:ch(),jt=6;break e;default:throw Error(r(462))}}ox();break}catch(X){yg(e,X)}while(!0);return bi=va=null,B.H=l,B.A=c,rt=i,Ge!==null?0:(gt=null,We=0,er(),jt)}function ox(){for(;Ge!==null&&!$a();)Sg(Ge)}function Sg(e){var t=Qp(e.alternate,e,ja);e.memoizedProps=e.pendingProps,t===null?nf(e):Ge=t}function Ng(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=Yp(i,t,t.pendingProps,t.type,void 0,We);break;case 11:t=Yp(i,t,t.pendingProps,t.type.render,t.ref,We);break;case 5:ln(t);default:Wp(i,t),t=Ge=Nu(t,ja),t=Qp(i,t,ja)}e.memoizedProps=e.pendingProps,t===null?nf(e):Ge=t}function Nr(e,t,i,l){bi=va=null,ln(t),pr=null,Io=0;var c=t.return;try{if(Zy(e,c,t,i,We)){jt=1,Gu(e,En(i,e.current)),Ge=null;return}}catch(d){if(c!==null)throw Ge=c,d;jt=1,Gu(e,En(i,e.current)),Ge=null;return}t.flags&32768?(Qe||l===1?e=!0:_r||(We&536870912)!==0?e=!1:(As=e=!0,(l===2||l===9||l===3||l===6)&&(l=ni.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ag(t,e)):nf(t)}function nf(e){var t=e;do{if((t.flags&32768)!==0){Ag(t,As);return}e=t.return;var i=Jy(t.alternate,t,ja);if(i!==null){Ge=i;return}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);jt===0&&(jt=5)}function Ag(e,t){do{var i=ex(e.alternate,e);if(i!==null){i.flags&=32767,Ge=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ge=e;return}Ge=e=i}while(e!==null);jt=6,Ge=null}function wg(e,t,i,l,c,d,y,E,O){e.cancelPendingCommit=null;do af();while(Zt!==0);if((rt&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(d=t.lanes|t.childLanes,d|=No,Ll(e,i,d,y,E,O),e===gt&&(Ge=gt=null,We=0),xr=t,Os=e,Er=i,lh=d,rh=c,gg=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,dx(tt,function(){return Dg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null,c=te.p,te.p=2,y=rt,rt|=4;try{tx(e,t,i)}finally{rt=y,te.p=c,B.T=l}}Zt=1,Tg(),Og(),jg()}}function Tg(){if(Zt===1){Zt=0;var e=Os,t=xr,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=B.T,B.T=null;var l=te.p;te.p=2;var c=rt;rt|=4;try{cg(t,e);var d=Sh,y=vu(e.containerInfo),E=d.focusedElem,O=d.selectionRange;if(y!==E&&E&&E.ownerDocument&&gu(E.ownerDocument.documentElement,E)){if(O!==null&&Ql(E)){var V=O.start,X=O.end;if(X===void 0&&(X=V),"selectionStart"in E)E.selectionStart=V,E.selectionEnd=Math.min(X,E.value.length);else{var ee=E.ownerDocument||document,q=ee&&ee.defaultView||window;if(q.getSelection){var P=q.getSelection(),He=E.textContent.length,Le=Math.min(O.start,He),ut=O.end===void 0?Le:Math.min(O.end,He);!P.extend&&Le>ut&&(y=ut,ut=Le,Le=y);var U=hn(E,Le),L=hn(E,ut);if(U&&L&&(P.rangeCount!==1||P.anchorNode!==U.node||P.anchorOffset!==U.offset||P.focusNode!==L.node||P.focusOffset!==L.offset)){var $=ee.createRange();$.setStart(U.node,U.offset),P.removeAllRanges(),Le>ut?(P.addRange($),P.extend(L.node,L.offset)):($.setEnd(L.node,L.offset),P.addRange($))}}}}for(ee=[],P=E;P=P.parentNode;)P.nodeType===1&&ee.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ee.length;E++){var W=ee[E];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}gf=!!Eh,Sh=Eh=null}finally{rt=c,te.p=l,B.T=i}}e.current=t,Zt=2}}function Og(){if(Zt===2){Zt=0;var e=Os,t=xr,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=B.T,B.T=null;var l=te.p;te.p=2;var c=rt;rt|=4;try{sg(e,t.alternate,t)}finally{rt=c,te.p=l,B.T=i}}Zt=3}}function jg(){if(Zt===4||Zt===3){Zt=0,Fn();var e=Os,t=xr,i=Er,l=gg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Zt=5:(Zt=0,xr=Os=null,Cg(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Ts=null),io(i),t=t.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(It,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=B.T,c=te.p,te.p=2,B.T=null;try{for(var d=e.onRecoverableError,y=0;y<l.length;y++){var E=l[y];d(E.value,{componentStack:E.stack})}}finally{B.T=t,te.p=c}}(Er&3)!==0&&af(),Yi(e),c=e.pendingLanes,(i&4194090)!==0&&(c&42)!==0?e===oh?tc++:(tc=0,oh=e):tc=0,nc(0)}}function Cg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_a(t)))}function af(e){return Tg(),Og(),jg(),Dg()}function Dg(){if(Zt!==5)return!1;var e=Os,t=lh;lh=0;var i=io(Er),l=B.T,c=te.p;try{te.p=32>i?32:i,B.T=null,i=rh,rh=null;var d=Os,y=Er;if(Zt=0,xr=Os=null,Er=0,(rt&6)!==0)throw Error(r(331));var E=rt;if(rt|=4,mg(d.current),fg(d,d.current,y,i),rt=E,nc(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(It,d)}catch{}return!0}finally{te.p=c,B.T=l,Cg(e,t)}}function Rg(e,t,i){t=En(i,t),t=Bd(e.stateNode,t,2),e=J(e,t,2),e!==null&&(qa(e,2),Yi(e))}function ht(e,t,i){if(e.tag===3)Rg(e,e,i);else for(;t!==null;){if(t.tag===3){Rg(t,e,i);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ts===null||!Ts.has(l))){e=En(i,e),i=kp(2),l=J(t,i,2),l!==null&&(Up(i,l,t,e),qa(l,2),Yi(l));break}}t=t.return}}function dh(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new ax;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(i)||(nh=!0,c.add(i),e=cx.bind(null,e,t,i),t.then(e,e))}function cx(e,t,i){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,gt===e&&(We&i)===i&&(jt===4||jt===3&&(We&62914560)===We&&300>Nt()-sh?(rt&2)===0&&Sr(e,0):ih|=i,yr===We&&(yr=0)),Yi(e)}function Lg(e,t){t===0&&(t=Vc()),e=cs(e,t),e!==null&&(qa(e,t),Yi(e))}function ux(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),Lg(e,i)}function fx(e,t){var i=0;switch(e.tag){case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Lg(e,i)}function dx(e,t){return Ai(e,t)}var sf=null,Ar=null,hh=!1,lf=!1,mh=!1,_l=0;function Yi(e){e!==Ar&&e.next===null&&(Ar===null?sf=Ar=e:Ar=Ar.next=e),lf=!0,hh||(hh=!0,mx())}function nc(e,t){if(!mh&&lf){mh=!0;do for(var i=!1,l=sf;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var d=0;else{var y=l.suspendedLanes,E=l.pingedLanes;d=(1<<31-cn(42|e)+1)-1,d&=c&~(y&~E),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Ug(l,d))}else d=We,d=Rl(l,l===gt?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||Gs(l,d)||(i=!0,Ug(l,d));l=l.next}while(i);mh=!1}}function hx(){Mg()}function Mg(){lf=hh=!1;var e=0;_l!==0&&(Ex()&&(e=_l),_l=0);for(var t=Nt(),i=null,l=sf;l!==null;){var c=l.next,d=zg(l,t);d===0?(l.next=null,i===null?sf=c:i.next=c,c===null&&(Ar=i)):(i=l,(e!==0||(d&3)!==0)&&(lf=!0)),l=c}nc(e)}function zg(e,t){for(var i=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-cn(d),E=1<<y,O=c[y];O===-1?((E&i)===0||(E&l)!==0)&&(c[y]=hd(E,t)):O<=t&&(e.expiredLanes|=E),d&=~E}if(t=gt,i=We,i=Rl(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,i===0||e===t&&(ot===2||ot===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Ln(l),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||Gs(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(l!==null&&Ln(l),io(i)){case 2:case 8:i=ce;break;case 32:i=tt;break;case 268435456:i=Kt;break;default:i=tt}return l=kg.bind(null,e),i=Ai(i,l),e.callbackPriority=t,e.callbackNode=i,t}return l!==null&&l!==null&&Ln(l),e.callbackPriority=2,e.callbackNode=null,2}function kg(e,t){if(Zt!==0&&Zt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(af()&&e.callbackNode!==i)return null;var l=We;return l=Rl(e,e===gt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(bg(e,l,t),zg(e,Nt()),e.callbackNode!=null&&e.callbackNode===i?kg.bind(null,e):null)}function Ug(e,t){if(af())return null;bg(e,t,!0)}function mx(){Nx(function(){(rt&6)!==0?Ai(ea,hx):Mg()})}function ph(){return _l===0&&(_l=Bc()),_l}function Hg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xn(""+e)}function $g(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function px(e,t,i,l,c){if(t==="submit"&&i&&i.stateNode===c){var d=Hg((c[Jt]||null).action),y=l.submitter;y&&(t=(t=y[Jt]||null)?Hg(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var E=new ts("action","action",null,l,c);e.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(_l!==0){var O=y?$g(c,y):new FormData(c);zd(i,{pending:!0,data:O,method:c.method,action:d},null,O)}}else typeof d=="function"&&(E.preventDefault(),O=y?$g(c,y):new FormData(c),zd(i,{pending:!0,data:O,method:c.method,action:d},d,O))},currentTarget:c}]})}}for(var gh=0;gh<Jl.length;gh++){var vh=Jl[gh],gx=vh.toLowerCase(),vx=vh[0].toUpperCase()+vh.slice(1);kn(gx,"on"+vx)}kn(yu,"onAnimationEnd"),kn(zi,"onAnimationIteration"),kn(ei,"onAnimationStart"),kn("dblclick","onDoubleClick"),kn("focusin","onFocus"),kn("focusout","onBlur"),kn(xu,"onTransitionRun"),kn(Cd,"onTransitionStart"),kn(Eu,"onTransitionCancel"),kn(Eo,"onTransitionEnd"),Tt("onMouseEnter",["mouseout","mouseover"]),Tt("onMouseLeave",["mouseout","mouseover"]),Tt("onPointerEnter",["pointerout","pointerover"]),Tt("onPointerLeave",["pointerout","pointerover"]),Ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ic="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ic));function Bg(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],c=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var y=l.length-1;0<=y;y--){var E=l[y],O=E.instance,V=E.currentTarget;if(E=E.listener,O!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=V;try{d(c)}catch(X){Iu(X)}c.currentTarget=null,d=O}else for(y=0;y<l.length;y++){if(E=l[y],O=E.instance,V=E.currentTarget,E=E.listener,O!==d&&c.isPropagationStopped())break e;d=E,c.currentTarget=V;try{d(c)}catch(X){Iu(X)}c.currentTarget=null,d=O}}}}function Fe(e,t){var i=t[ao];i===void 0&&(i=t[ao]=new Set);var l=e+"__bubble";i.has(l)||(Vg(t,e,2,!1),i.add(l))}function bh(e,t,i){var l=0;t&&(l|=4),Vg(i,e,l,t)}var rf="_reactListening"+Math.random().toString(36).slice(2);function _h(e){if(!e[rf]){e[rf]=!0,Ht.forEach(function(i){i!=="selectionchange"&&(bx.has(i)||bh(i,!1,e),bh(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[rf]||(t[rf]=!0,bh("selectionchange",!1,t))}}function Vg(e,t,i,l){switch(fv(t)){case 2:var c=Kx;break;case 8:c=Ix;break;default:c=Lh}i=c.bind(null,t,i,e),c=void 0,!Vl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,i,{capture:!0,passive:c}):e.addEventListener(t,i,!0):c!==void 0?e.addEventListener(t,i,{passive:c}):e.addEventListener(t,i,!1)}function yh(e,t,i,l,c){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var E=l.stateNode.containerInfo;if(E===c)break;if(y===4)for(y=l.return;y!==null;){var O=y.tag;if((O===3||O===4)&&y.stateNode.containerInfo===c)return;y=y.return}for(;E!==null;){if(y=Ka(E),y===null)return;if(O=y.tag,O===5||O===6||O===26||O===27){l=d=y;continue e}E=E.parentNode}}l=l.return}Za(function(){var V=d,X=Zn(i),ee=[];e:{var q=So.get(e);if(q!==void 0){var P=ts,He=e;switch(e){case"keypress":if(es(i)===0)break e;case"keydown":case"keyup":P=go;break;case"focusin":He="focus",P=Kl;break;case"focusout":He="blur",P=Kl;break;case"beforeblur":case"afterblur":P=Kl;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=ho;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=vd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=bo;break;case yu:case zi:case ei:P=Fc;break;case Eo:P=tu;break;case"scroll":case"scrollend":P=fo;break;case"wheel":P=Ed;break;case"copy":case"cut":case"paste":P=mo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=vo;break;case"toggle":case"beforetoggle":P=Nd}var Le=(t&4)!==0,ut=!Le&&(e==="scroll"||e==="scrollend"),U=Le?q!==null?q+"Capture":null:q;Le=[];for(var L=V,$;L!==null;){var W=L;if($=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||$===null||U===null||(W=Wa(L,U),W!=null&&Le.push(ac(L,W,$))),ut)break;L=L.return}0<Le.length&&(q=new P(q,He,null,i,X),ee.push({event:q,listeners:Le}))}}if((t&7)===0){e:{if(q=e==="mouseover"||e==="pointerover",P=e==="mouseout"||e==="pointerout",q&&i!==uo&&(He=i.relatedTarget||i.fromElement)&&(Ka(He)||He[Pa]))break e;if((P||q)&&(q=X.window===X?X:(q=X.ownerDocument)?q.defaultView||q.parentWindow:window,P?(He=i.relatedTarget||i.toElement,P=V,He=He?Ka(He):null,He!==null&&(ut=h(He),Le=He.tag,He!==ut||Le!==5&&Le!==27&&Le!==6)&&(He=null)):(P=null,He=V),P!==He)){if(Le=ho,W="onMouseLeave",U="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Le=vo,W="onPointerLeave",U="onPointerEnter",L="pointer"),ut=P==null?q:Fs(P),$=He==null?q:Fs(He),q=new Le(W,L+"leave",P,i,X),q.target=ut,q.relatedTarget=$,W=null,Ka(X)===V&&(Le=new Le(U,L+"enter",He,i,X),Le.target=$,Le.relatedTarget=ut,W=Le),ut=W,P&&He)t:{for(Le=P,U=He,L=0,$=Le;$;$=wr($))L++;for($=0,W=U;W;W=wr(W))$++;for(;0<L-$;)Le=wr(Le),L--;for(;0<$-L;)U=wr(U),$--;for(;L--;){if(Le===U||U!==null&&Le===U.alternate)break t;Le=wr(Le),U=wr(U)}Le=null}else Le=null;P!==null&&qg(ee,q,P,Le,!1),He!==null&&ut!==null&&qg(ee,ut,He,Le,!0)}}e:{if(q=V?Fs(V):window,P=q.nodeName&&q.nodeName.toLowerCase(),P==="select"||P==="input"&&q.type==="file")var xe=cu;else if(lu(q))if(uu)xe=mu;else{xe=jd;var Ie=Od}else P=q.nodeName,!P||P.toLowerCase()!=="input"||q.type!=="checkbox"&&q.type!=="radio"?V&&Di(V.elementType)&&(xe=cu):xe=hu;if(xe&&(xe=xe(e,V))){ru(ee,xe,i,X);break e}Ie&&Ie(e,q,V),e==="focusout"&&V&&q.type==="number"&&V.memoizedProps.value!=null&&Ws(q,"number",q.value)}switch(Ie=V?Fs(V):window,e){case"focusin":(lu(Ie)||Ie.contentEditable==="true")&&(os=Ie,yo=V,ll=null);break;case"focusout":ll=yo=os=null;break;case"mousedown":xo=!0;break;case"contextmenu":case"mouseup":case"dragend":xo=!1,_u(ee,i,X);break;case"selectionchange":if(bu)break;case"keydown":case"keyup":_u(ee,i,X)}var we;if(Gl)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else as?au(e,i)&&(ze="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(ze="onCompositionStart");ze&&(Mi&&i.locale!=="ko"&&(as||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&as&&(we=el()):(Ri=X,ql="value"in Ri?Ri.value:Ri.textContent,as=!0)),Ie=of(V,ze),0<Ie.length&&(ze=new Zc(ze,e,null,i,X),ee.push({event:ze,listeners:Ie}),we?ze.data=we:(we=su(i),we!==null&&(ze.data=we)))),(we=is?Ad(e,i):wd(e,i))&&(ze=of(V,"onBeforeInput"),0<ze.length&&(Ie=new Zc("onBeforeInput","beforeinput",null,i,X),ee.push({event:Ie,listeners:ze}),Ie.data=we)),px(ee,e,V,i,X)}Bg(ee,t)})}function ac(e,t,i){return{instance:e,listener:t,currentTarget:i}}function of(e,t){for(var i=t+"Capture",l=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=Wa(e,i),c!=null&&l.unshift(ac(e,c,d)),c=Wa(e,t),c!=null&&l.push(ac(e,c,d))),e.tag===3)return l;e=e.return}return[]}function wr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function qg(e,t,i,l,c){for(var d=t._reactName,y=[];i!==null&&i!==l;){var E=i,O=E.alternate,V=E.stateNode;if(E=E.tag,O!==null&&O===l)break;E!==5&&E!==26&&E!==27||V===null||(O=V,c?(V=Wa(i,d),V!=null&&y.unshift(ac(i,V,O))):c||(V=Wa(i,d),V!=null&&y.push(ac(i,V,O)))),i=i.return}y.length!==0&&e.push({event:t,listeners:y})}var _x=/\r\n?/g,yx=/\u0000|\uFFFD/g;function Pg(e){return(typeof e=="string"?e:""+e).replace(_x,`
`).replace(yx,"")}function Yg(e,t){return t=Pg(t),Pg(e)===t}function cf(){}function ct(e,t,i,l,c,d){switch(i){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||fi(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&fi(e,""+l);break;case"className":Fa(e,"class",l);break;case"tabIndex":Fa(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fa(e,i,l);break;case"style":oo(e,l,d);break;case"data":if(t!=="object"){Fa(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=xn(""+l),e.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof d=="function"&&(i==="formAction"?(t!=="input"&&ct(e,t,"name",c.name,c,null),ct(e,t,"formEncType",c.formEncType,c,null),ct(e,t,"formMethod",c.formMethod,c,null),ct(e,t,"formTarget",c.formTarget,c,null)):(ct(e,t,"encType",c.encType,c,null),ct(e,t,"method",c.method,c,null),ct(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(i);break}l=xn(""+l),e.setAttribute(i,l);break;case"onClick":l!=null&&(e.onclick=cf);break;case"onScroll":l!=null&&Fe("scroll",e);break;case"onScrollEnd":l!=null&&Fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=i}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}i=xn(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""+l):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":l===!0?e.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(i,l):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(i,l):e.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(i):e.setAttribute(i,l);break;case"popover":Fe("beforetoggle",e),Fe("toggle",e),Xs(e,"popover",l);break;case"xlinkActuate":tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":tn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":tn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":tn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":tn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Xs(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=co.get(i)||i,Xs(e,i,l))}}function xh(e,t,i,l,c,d){switch(i){case"style":oo(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(i=l.__html,i!=null){if(c.children!=null)throw Error(r(60));e.innerHTML=i}}break;case"children":typeof l=="string"?fi(e,l):(typeof l=="number"||typeof l=="bigint")&&fi(e,""+l);break;case"onScroll":l!=null&&Fe("scroll",e);break;case"onScrollEnd":l!=null&&Fe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=cf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!en.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),t=i.slice(2,c?i.length-7:void 0),d=e[Jt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof l=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,l,c);break e}i in e?e[i]=l:l===!0?e.setAttribute(i,""):Xs(e,i,l)}}}function Wt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Fe("error",e),Fe("load",e);var l=!1,c=!1,d;for(d in i)if(i.hasOwnProperty(d)){var y=i[d];if(y!=null)switch(d){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ct(e,t,d,y,i,null)}}c&&ct(e,t,"srcSet",i.srcSet,i,null),l&&ct(e,t,"src",i.src,i,null);return;case"input":Fe("invalid",e);var E=d=y=c=null,O=null,V=null;for(l in i)if(i.hasOwnProperty(l)){var X=i[l];if(X!=null)switch(l){case"name":c=X;break;case"type":y=X;break;case"checked":O=X;break;case"defaultChecked":V=X;break;case"value":d=X;break;case"defaultValue":E=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,t));break;default:ct(e,t,l,X,i,null)}}dn(e,d,E,O,V,y,c,!1),Qs(e);return;case"select":Fe("invalid",e),l=y=d=null;for(c in i)if(i.hasOwnProperty(c)&&(E=i[c],E!=null))switch(c){case"value":d=E;break;case"defaultValue":y=E;break;case"multiple":l=E;default:ct(e,t,c,E,i,null)}t=d,i=y,e.multiple=!!l,t!=null?ji(e,!!l,t,!1):i!=null&&ji(e,!!l,i,!0);return;case"textarea":Fe("invalid",e),d=c=l=null;for(y in i)if(i.hasOwnProperty(y)&&(E=i[y],E!=null))switch(y){case"value":l=E;break;case"defaultValue":c=E;break;case"children":d=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:ct(e,t,y,E,i,null)}Ci(e,l,c,d),Qs(e);return;case"option":for(O in i)if(i.hasOwnProperty(O)&&(l=i[O],l!=null))switch(O){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ct(e,t,O,l,i,null)}return;case"dialog":Fe("beforetoggle",e),Fe("toggle",e),Fe("cancel",e),Fe("close",e);break;case"iframe":case"object":Fe("load",e);break;case"video":case"audio":for(l=0;l<ic.length;l++)Fe(ic[l],e);break;case"image":Fe("error",e),Fe("load",e);break;case"details":Fe("toggle",e);break;case"embed":case"source":case"link":Fe("error",e),Fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in i)if(i.hasOwnProperty(V)&&(l=i[V],l!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ct(e,t,V,l,i,null)}return;default:if(Di(t)){for(X in i)i.hasOwnProperty(X)&&(l=i[X],l!==void 0&&xh(e,t,X,l,i,void 0));return}}for(E in i)i.hasOwnProperty(E)&&(l=i[E],l!=null&&ct(e,t,E,l,i,null))}function xx(e,t,i,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,y=null,E=null,O=null,V=null,X=null;for(P in i){var ee=i[P];if(i.hasOwnProperty(P)&&ee!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":O=ee;default:l.hasOwnProperty(P)||ct(e,t,P,null,l,ee)}}for(var q in l){var P=l[q];if(ee=i[q],l.hasOwnProperty(q)&&(P!=null||ee!=null))switch(q){case"type":d=P;break;case"name":c=P;break;case"checked":V=P;break;case"defaultChecked":X=P;break;case"value":y=P;break;case"defaultValue":E=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(137,t));break;default:P!==ee&&ct(e,t,q,P,l,ee)}}ui(e,y,E,O,V,X,d,c);return;case"select":P=y=E=q=null;for(d in i)if(O=i[d],i.hasOwnProperty(d)&&O!=null)switch(d){case"value":break;case"multiple":P=O;default:l.hasOwnProperty(d)||ct(e,t,d,null,l,O)}for(c in l)if(d=l[c],O=i[c],l.hasOwnProperty(c)&&(d!=null||O!=null))switch(c){case"value":q=d;break;case"defaultValue":E=d;break;case"multiple":y=d;default:d!==O&&ct(e,t,c,d,l,O)}t=E,i=y,l=P,q!=null?ji(e,!!i,q,!1):!!l!=!!i&&(t!=null?ji(e,!!i,t,!0):ji(e,!!i,i?[]:"",!1));return;case"textarea":P=q=null;for(E in i)if(c=i[E],i.hasOwnProperty(E)&&c!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:ct(e,t,E,null,l,c)}for(y in l)if(c=l[y],d=i[y],l.hasOwnProperty(y)&&(c!=null||d!=null))switch(y){case"value":q=c;break;case"defaultValue":P=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(r(91));break;default:c!==d&&ct(e,t,y,c,l,d)}zn(e,q,P);return;case"option":for(var He in i)if(q=i[He],i.hasOwnProperty(He)&&q!=null&&!l.hasOwnProperty(He))switch(He){case"selected":e.selected=!1;break;default:ct(e,t,He,null,l,q)}for(O in l)if(q=l[O],P=i[O],l.hasOwnProperty(O)&&q!==P&&(q!=null||P!=null))switch(O){case"selected":e.selected=q&&typeof q!="function"&&typeof q!="symbol";break;default:ct(e,t,O,q,l,P)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Le in i)q=i[Le],i.hasOwnProperty(Le)&&q!=null&&!l.hasOwnProperty(Le)&&ct(e,t,Le,null,l,q);for(V in l)if(q=l[V],P=i[V],l.hasOwnProperty(V)&&q!==P&&(q!=null||P!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(r(137,t));break;default:ct(e,t,V,q,l,P)}return;default:if(Di(t)){for(var ut in i)q=i[ut],i.hasOwnProperty(ut)&&q!==void 0&&!l.hasOwnProperty(ut)&&xh(e,t,ut,void 0,l,q);for(X in l)q=l[X],P=i[X],!l.hasOwnProperty(X)||q===P||q===void 0&&P===void 0||xh(e,t,X,q,l,P);return}}for(var U in i)q=i[U],i.hasOwnProperty(U)&&q!=null&&!l.hasOwnProperty(U)&&ct(e,t,U,null,l,q);for(ee in l)q=l[ee],P=i[ee],!l.hasOwnProperty(ee)||q===P||q==null&&P==null||ct(e,t,ee,q,l,P)}var Eh=null,Sh=null;function uf(e){return e.nodeType===9?e:e.ownerDocument}function Kg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ig(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Nh(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ah=null;function Ex(){var e=window.event;return e&&e.type==="popstate"?e===Ah?!1:(Ah=e,!0):(Ah=null,!1)}var Gg=typeof setTimeout=="function"?setTimeout:void 0,Sx=typeof clearTimeout=="function"?clearTimeout:void 0,Fg=typeof Promise=="function"?Promise:void 0,Nx=typeof queueMicrotask=="function"?queueMicrotask:typeof Fg<"u"?function(e){return Fg.resolve(null).then(e).catch(Ax)}:Gg;function Ax(e){setTimeout(function(){throw e})}function Cs(e){return e==="head"}function Xg(e,t){var i=t,l=0,c=0;do{var d=i.nextSibling;if(e.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"){if(0<l&&8>l){i=l;var y=e.ownerDocument;if(i&1&&sc(y.documentElement),i&2&&sc(y.body),i&4)for(i=y.head,sc(i),y=i.firstChild;y;){var E=y.nextSibling,O=y.nodeName;y[Xn]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&y.rel.toLowerCase()==="stylesheet"||i.removeChild(y),y=E}}if(c===0){e.removeChild(d),hc(t);return}c--}else i==="$"||i==="$?"||i==="$!"?c++:l=i.charCodeAt(0)-48;else l=0;i=d}while(i);hc(t)}function wh(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":wh(i),Ya(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function wx(e,t,i,l){for(;e.nodeType===1;){var c=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Xn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Ei(e.nextSibling),e===null)break}return null}function Tx(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=Ei(e.nextSibling),e===null))return null;return e}function Th(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Ox(e,t){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")t();else{var l=function(){t(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ei(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Oh=null;function Qg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(t===0)return e;t--}else i==="/$"&&t++}e=e.previousSibling}return null}function Zg(e,t,i){switch(t=uf(i),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function sc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ya(e)}var ai=new Map,Wg=new Set;function ff(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ca=te.d;te.d={f:jx,r:Cx,D:Dx,C:Rx,L:Lx,m:Mx,X:kx,S:zx,M:Ux};function jx(){var e=Ca.f(),t=tf();return e||t}function Cx(e){var t=wi(e);t!==null&&t.tag===5&&t.type==="form"?bp(t):Ca.r(e)}var Tr=typeof document>"u"?null:document;function Jg(e,t,i){var l=Tr;if(l&&typeof t=="string"&&t){var c=mt(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),Wg.has(c)||(Wg.add(c),e={rel:e,crossOrigin:i,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),Wt(t,"link",e),vt(t),l.head.appendChild(t)))}}function Dx(e){Ca.D(e),Jg("dns-prefetch",e,null)}function Rx(e,t){Ca.C(e,t),Jg("preconnect",e,t)}function Lx(e,t,i){Ca.L(e,t,i);var l=Tr;if(l&&e&&t){var c='link[rel="preload"][as="'+mt(t)+'"]';t==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+mt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+mt(i.imageSizes)+'"]')):c+='[href="'+mt(e)+'"]';var d=c;switch(t){case"style":d=Or(e);break;case"script":d=jr(e)}ai.has(d)||(e=_({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),ai.set(d,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(lc(d))||t==="script"&&l.querySelector(rc(d))||(t=l.createElement("link"),Wt(t,"link",e),vt(t),l.head.appendChild(t)))}}function Mx(e,t){Ca.m(e,t);var i=Tr;if(i&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+mt(l)+'"][href="'+mt(e)+'"]',d=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=jr(e)}if(!ai.has(d)&&(e=_({rel:"modulepreload",href:e},t),ai.set(d,e),i.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(rc(d)))return}l=i.createElement("link"),Wt(l,"link",e),vt(l),i.head.appendChild(l)}}}function zx(e,t,i){Ca.S(e,t,i);var l=Tr;if(l&&e){var c=Ia(l).hoistableStyles,d=Or(e);t=t||"default";var y=c.get(d);if(!y){var E={loading:0,preload:null};if(y=l.querySelector(lc(d)))E.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},i),(i=ai.get(d))&&jh(e,i);var O=y=l.createElement("link");vt(O),Wt(O,"link",e),O._p=new Promise(function(V,X){O.onload=V,O.onerror=X}),O.addEventListener("load",function(){E.loading|=1}),O.addEventListener("error",function(){E.loading|=2}),E.loading|=4,df(y,t,l)}y={type:"stylesheet",instance:y,count:1,state:E},c.set(d,y)}}}function kx(e,t){Ca.X(e,t);var i=Tr;if(i&&e){var l=Ia(i).hoistableScripts,c=jr(e),d=l.get(c);d||(d=i.querySelector(rc(c)),d||(e=_({src:e,async:!0},t),(t=ai.get(c))&&Ch(e,t),d=i.createElement("script"),vt(d),Wt(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function Ux(e,t){Ca.M(e,t);var i=Tr;if(i&&e){var l=Ia(i).hoistableScripts,c=jr(e),d=l.get(c);d||(d=i.querySelector(rc(c)),d||(e=_({src:e,async:!0,type:"module"},t),(t=ai.get(c))&&Ch(e,t),d=i.createElement("script"),vt(d),Wt(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function ev(e,t,i,l){var c=(c=Ee.current)?ff(c):null;if(!c)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Or(i.href),i=Ia(c).hoistableStyles,l=i.get(t),l||(l={type:"style",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Or(i.href);var d=Ia(c).hoistableStyles,y=d.get(e);if(y||(c=c.ownerDocument||c,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=c.querySelector(lc(e)))&&!d._p&&(y.instance=d,y.state.loading=5),ai.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},ai.set(e,i),d||Hx(c,e,i,y.state))),t&&l===null)throw Error(r(528,""));return y}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=jr(i),i=Ia(c).hoistableScripts,l=i.get(t),l||(l={type:"script",instance:null,count:0,state:null},i.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Or(e){return'href="'+mt(e)+'"'}function lc(e){return'link[rel="stylesheet"]['+e+"]"}function tv(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function Hx(e,t,i,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Wt(t,"link",i),vt(t),e.head.appendChild(t))}function jr(e){return'[src="'+mt(e)+'"]'}function rc(e){return"script[async]"+e}function nv(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+mt(i.href)+'"]');if(l)return t.instance=l,vt(l),l;var c=_({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),vt(l),Wt(l,"style",c),df(l,i.precedence,e),t.instance=l;case"stylesheet":c=Or(i.href);var d=e.querySelector(lc(c));if(d)return t.state.loading|=4,t.instance=d,vt(d),d;l=tv(i),(c=ai.get(c))&&jh(l,c),d=(e.ownerDocument||e).createElement("link"),vt(d);var y=d;return y._p=new Promise(function(E,O){y.onload=E,y.onerror=O}),Wt(d,"link",l),t.state.loading|=4,df(d,i.precedence,e),t.instance=d;case"script":return d=jr(i.src),(c=e.querySelector(rc(d)))?(t.instance=c,vt(c),c):(l=i,(c=ai.get(d))&&(l=_({},i),Ch(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),vt(c),Wt(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,df(l,i.precedence,e));return t.instance}function df(e,t,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,d=c,y=0;y<l.length;y++){var E=l[y];if(E.dataset.precedence===t)d=E;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function jh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ch(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hf=null;function iv(e,t,i){if(hf===null){var l=new Map,c=hf=new Map;c.set(i,l)}else c=hf,l=c.get(i),l||(l=new Map,c.set(i,l));if(l.has(e))return l;for(l.set(e,null),i=i.getElementsByTagName(e),c=0;c<i.length;c++){var d=i[c];if(!(d[Xn]||d[wt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var E=l.get(y);E?E.push(d):l.set(y,[d])}}return l}function av(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function $x(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var oc=null;function Bx(){}function Vx(e,t,i){if(oc===null)throw Error(r(475));var l=oc;if(t.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=Or(i.href),d=e.querySelector(lc(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=mf.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=d,vt(d);return}d=e.ownerDocument||e,i=tv(i),(c=ai.get(c))&&jh(i,c),d=d.createElement("link"),vt(d);var y=d;y._p=new Promise(function(E,O){y.onload=E,y.onerror=O}),Wt(d,"link",i),t.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=mf.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function qx(){if(oc===null)throw Error(r(475));var e=oc;return e.stylesheets&&e.count===0&&Dh(e,e.stylesheets),0<e.count?function(t){var i=setTimeout(function(){if(e.stylesheets&&Dh(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(i)}}:null}function mf(){if(this.count--,this.count===0){if(this.stylesheets)Dh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var pf=null;function Dh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pf=new Map,t.forEach(Px,e),pf=null,mf.call(e))}function Px(e,t){if(!(t.state.loading&4)){var i=pf.get(e);if(i)var l=i.get(null);else{i=new Map,pf.set(e,i);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var y=c[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(i.set(y.dataset.precedence,y),l=y)}l&&i.set(null,l)}c=t.instance,y=c.getAttribute("data-precedence"),d=i.get(y)||l,d===l&&i.set(null,c),i.set(y,c),this.count++,l=mf.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var cc={$$typeof:G,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function Yx(e,t,i,l,c,d,y,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Jr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jr(0),this.hiddenUpdates=Jr(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function lv(e,t,i,l,c,d,y,E,O,V,X,ee){return e=new Yx(e,t,i,y,E,O,V,ee),t=1,d===!0&&(t|=24),d=pn(3,null,null,t),e.current=d,d.stateNode=e,t=lr(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:i,cache:t},z(d),e}function rv(e){return e?(e=us,e):us}function ov(e,t,i,l,c,d){c=rv(c),l.context===null?l.context=c:l.pendingContext=c,l=Y(t),l.payload={element:i},d=d===void 0?null:d,d!==null&&(l.callback=d),i=J(e,l,t),i!==null&&(Pn(i,e,t),ue(i,e,t))}function cv(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Rh(e,t){cv(e,t),(e=e.alternate)&&cv(e,t)}function uv(e){if(e.tag===13){var t=cs(e,67108864);t!==null&&Pn(t,e,67108864),Rh(e,67108864)}}var gf=!0;function Kx(e,t,i,l){var c=B.T;B.T=null;var d=te.p;try{te.p=2,Lh(e,t,i,l)}finally{te.p=d,B.T=c}}function Ix(e,t,i,l){var c=B.T;B.T=null;var d=te.p;try{te.p=8,Lh(e,t,i,l)}finally{te.p=d,B.T=c}}function Lh(e,t,i,l){if(gf){var c=Mh(l);if(c===null)yh(e,t,l,vf,i),dv(e,l);else if(Fx(c,e,t,i,l))l.stopPropagation();else if(dv(e,l),t&4&&-1<Gx.indexOf(e)){for(;c!==null;){var d=wi(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=ci(d.pendingLanes);if(y!==0){var E=d;for(E.pendingLanes|=2,E.entangledLanes|=2;y;){var O=1<<31-cn(y);E.entanglements[1]|=O,y&=~O}Yi(d),(rt&6)===0&&(Ju=Nt()+500,nc(0))}}break;case 13:E=cs(d,2),E!==null&&Pn(E,d,2),tf(),Rh(d,2)}if(d=Mh(l),d===null&&yh(e,t,l,vf,i),d===c)break;c=d}c!==null&&l.stopPropagation()}else yh(e,t,l,null,i)}}function Mh(e){return e=Zn(e),zh(e)}var vf=null;function zh(e){if(vf=null,e=Ka(e),e!==null){var t=h(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=m(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return vf=e,null}function fv(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ys()){case ea:return 2;case ce:return 8;case tt:case At:return 32;case Kt:return 268435456;default:return 32}default:return 32}}var kh=!1,Ds=null,Rs=null,Ls=null,uc=new Map,fc=new Map,Ms=[],Gx="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function dv(e,t){switch(e){case"focusin":case"focusout":Ds=null;break;case"dragenter":case"dragleave":Rs=null;break;case"mouseover":case"mouseout":Ls=null;break;case"pointerover":case"pointerout":uc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":fc.delete(t.pointerId)}}function dc(e,t,i,l,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:l,nativeEvent:d,targetContainers:[c]},t!==null&&(t=wi(t),t!==null&&uv(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function Fx(e,t,i,l,c){switch(t){case"focusin":return Ds=dc(Ds,e,t,i,l,c),!0;case"dragenter":return Rs=dc(Rs,e,t,i,l,c),!0;case"mouseover":return Ls=dc(Ls,e,t,i,l,c),!0;case"pointerover":var d=c.pointerId;return uc.set(d,dc(uc.get(d)||null,e,t,i,l,c)),!0;case"gotpointercapture":return d=c.pointerId,fc.set(d,dc(fc.get(d)||null,e,t,i,l,c)),!0}return!1}function hv(e){var t=Ka(e.target);if(t!==null){var i=h(t);if(i!==null){if(t=i.tag,t===13){if(t=m(i),t!==null){e.blockedOn=t,md(e.priority,function(){if(i.tag===13){var l=qn();l=no(l);var c=cs(i,l);c!==null&&Pn(c,i,l),Rh(i,l)}});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Mh(e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);uo=l,i.target.dispatchEvent(l),uo=null}else return t=wi(i),t!==null&&uv(t),e.blockedOn=i,!1;t.shift()}return!0}function mv(e,t,i){bf(e)&&i.delete(t)}function Xx(){kh=!1,Ds!==null&&bf(Ds)&&(Ds=null),Rs!==null&&bf(Rs)&&(Rs=null),Ls!==null&&bf(Ls)&&(Ls=null),uc.forEach(mv),fc.forEach(mv)}function _f(e,t){e.blockedOn===t&&(e.blockedOn=null,kh||(kh=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Xx)))}var yf=null;function pv(e){yf!==e&&(yf=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){yf===e&&(yf=null);for(var t=0;t<e.length;t+=3){var i=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(zh(l||i)===null)continue;break}var d=wi(i);d!==null&&(e.splice(t,3),t-=3,zd(d,{pending:!0,data:c,method:i.method,action:l},l,c))}}))}function hc(e){function t(O){return _f(O,e)}Ds!==null&&_f(Ds,e),Rs!==null&&_f(Rs,e),Ls!==null&&_f(Ls,e),uc.forEach(t),fc.forEach(t);for(var i=0;i<Ms.length;i++){var l=Ms[i];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ms.length&&(i=Ms[0],i.blockedOn===null);)hv(i),i.blockedOn===null&&Ms.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var c=i[l],d=i[l+1],y=c[Jt]||null;if(typeof d=="function")y||pv(i);else if(y){var E=null;if(d&&d.hasAttribute("formAction")){if(c=d,y=d[Jt]||null)E=y.formAction;else if(zh(c)!==null)continue}else E=y.action;typeof E=="function"?i[l+1]=E:(i.splice(l,3),l-=3),pv(i)}}}function Uh(e){this._internalRoot=e}xf.prototype.render=Uh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var i=t.current,l=qn();ov(i,l,e,t,null,null)},xf.prototype.unmount=Uh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ov(e.current,2,null,e,null,null),tf(),t[Pa]=null}};function xf(e){this._internalRoot=e}xf.prototype.unstable_scheduleHydration=function(e){if(e){var t=qc();e={blockedOn:null,target:e,priority:t};for(var i=0;i<Ms.length&&t!==0&&t<Ms[i].priority;i++);Ms.splice(i,0,e),i===0&&hv(e)}};var gv=n.version;if(gv!=="19.1.1")throw Error(r(527,gv,"19.1.1"));te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=b(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Qx={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ef=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ef.isDisabled&&Ef.supportsFiber)try{It=Ef.inject(Qx),Mt=Ef}catch{}}return pc.createRoot=function(e,t){if(!o(e))throw Error(r(299));var i=!1,l="",c=Rp,d=Lp,y=Mp,E=null;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(E=t.unstable_transitionCallbacks)),t=lv(e,1,!1,null,null,i,l,c,d,y,E,null),e[Pa]=t.current,_h(e),new Uh(t)},pc.hydrateRoot=function(e,t,i){if(!o(e))throw Error(r(299));var l=!1,c="",d=Rp,y=Lp,E=Mp,O=null,V=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(O=i.unstable_transitionCallbacks),i.formState!==void 0&&(V=i.formState)),t=lv(e,1,!0,t,i??null,l,c,d,y,E,O,V),t.context=rv(null),i=t.current,l=qn(),l=no(l),c=Y(l),c.callback=null,J(i,c,l),i=l,t.current.lanes=i,qa(t,i),Yi(t),e[Pa]=t.current,_h(e),new xf(t)},pc.version="19.1.1",pc}var wv;function rE(){if(wv)return Bh.exports;wv=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(n){console.error(n)}}return s(),Bh.exports=lE(),Bh.exports}var oE=rE();const cE=Wx(oE);/**
* react-router v7.8.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var Tv="popstate";function uE(s={}){function n(r,o){let{pathname:h,search:m,hash:p}=r.location;return dm("",{pathname:h,search:m,hash:p},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(r,o){return typeof o=="string"?o:Nc(o)}return dE(n,a,null,s)}function St(s,n){if(s===!1||s===null||typeof s>"u")throw new Error(n)}function Xi(s,n){if(!s){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function fE(){return Math.random().toString(36).substring(2,10)}function Ov(s,n){return{usr:s.state,key:s.key,idx:n}}function dm(s,n,a=null,r){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof n=="string"?Kr(n):n,state:a,key:n&&n.key||r||fE()}}function Nc({pathname:s="/",search:n="",hash:a=""}){return n&&n!=="?"&&(s+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(s+=a.charAt(0)==="#"?a:"#"+a),s}function Kr(s){let n={};if(s){let a=s.indexOf("#");a>=0&&(n.hash=s.substring(a),s=s.substring(0,a));let r=s.indexOf("?");r>=0&&(n.search=s.substring(r),s=s.substring(0,r)),s&&(n.pathname=s)}return n}function dE(s,n,a,r={}){let{window:o=document.defaultView,v5Compat:h=!1}=r,m=o.history,p="POP",b=null,v=_();v==null&&(v=0,m.replaceState({...m.state,idx:v},""));function _(){return(m.state||{idx:null}).idx}function N(){p="POP";let R=_(),I=R==null?null:R-v;v=R,b&&b({action:p,location:M.location,delta:I})}function C(R,I){p="PUSH";let H=dm(M.location,R,I);v=_()+1;let G=Ov(H,v),F=M.createHref(H);try{m.pushState(G,"",F)}catch(Q){if(Q instanceof DOMException&&Q.name==="DataCloneError")throw Q;o.location.assign(F)}h&&b&&b({action:p,location:M.location,delta:1})}function D(R,I){p="REPLACE";let H=dm(M.location,R,I);v=_();let G=Ov(H,v),F=M.createHref(H);m.replaceState(G,"",F),h&&b&&b({action:p,location:M.location,delta:0})}function A(R){return hE(R)}let M={get action(){return p},get location(){return s(o,m)},listen(R){if(b)throw new Error("A history only accepts one active listener");return o.addEventListener(Tv,N),b=R,()=>{o.removeEventListener(Tv,N),b=null}},createHref(R){return n(o,R)},createURL:A,encodeLocation(R){let I=A(R);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:C,replace:D,go(R){return m.go(R)}};return M}function hE(s,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),St(a,"No window.location.(origin|href) available to create URL");let r=typeof s=="string"?s:Nc(s);return r=r.replace(/ $/,"%20"),!n&&r.startsWith("//")&&(r=a+r),new URL(r,a)}function Qb(s,n,a="/"){return mE(s,n,a,!1)}function mE(s,n,a,r){let o=typeof n=="string"?Kr(n):n,h=Ma(o.pathname||"/",a);if(h==null)return null;let m=Zb(s);pE(m);let p=null;for(let b=0;p==null&&b<m.length;++b){let v=wE(h);p=NE(m[b],v,r)}return p}function Zb(s,n=[],a=[],r="",o=!1){let h=(m,p,b=o,v)=>{let _={relativePath:v===void 0?m.path||"":v,caseSensitive:m.caseSensitive===!0,childrenIndex:p,route:m};if(_.relativePath.startsWith("/")){if(!_.relativePath.startsWith(r)&&b)return;St(_.relativePath.startsWith(r),`Absolute route path "${_.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),_.relativePath=_.relativePath.slice(r.length)}let N=Da([r,_.relativePath]),C=a.concat(_);m.children&&m.children.length>0&&(St(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${N}".`),Zb(m.children,n,C,N,b)),!(m.path==null&&!m.index)&&n.push({path:N,score:EE(N,m.index),routesMeta:C})};return s.forEach((m,p)=>{if(m.path===""||!m.path?.includes("?"))h(m,p);else for(let b of Wb(m.path))h(m,p,!0,b)}),n}function Wb(s){let n=s.split("/");if(n.length===0)return[];let[a,...r]=n,o=a.endsWith("?"),h=a.replace(/\?$/,"");if(r.length===0)return o?[h,""]:[h];let m=Wb(r.join("/")),p=[];return p.push(...m.map(b=>b===""?h:[h,b].join("/"))),o&&p.push(...m),p.map(b=>s.startsWith("/")&&b===""?"/":b)}function pE(s){s.sort((n,a)=>n.score!==a.score?a.score-n.score:SE(n.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var gE=/^:[\w-]+$/,vE=3,bE=2,_E=1,yE=10,xE=-2,jv=s=>s==="*";function EE(s,n){let a=s.split("/"),r=a.length;return a.some(jv)&&(r+=xE),n&&(r+=bE),a.filter(o=>!jv(o)).reduce((o,h)=>o+(gE.test(h)?vE:h===""?_E:yE),r)}function SE(s,n){return s.length===n.length&&s.slice(0,-1).every((r,o)=>r===n[o])?s[s.length-1]-n[n.length-1]:0}function NE(s,n,a=!1){let{routesMeta:r}=s,o={},h="/",m=[];for(let p=0;p<r.length;++p){let b=r[p],v=p===r.length-1,_=h==="/"?n:n.slice(h.length)||"/",N=qf({path:b.relativePath,caseSensitive:b.caseSensitive,end:v},_),C=b.route;if(!N&&v&&a&&!r[r.length-1].route.index&&(N=qf({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},_)),!N)return null;Object.assign(o,N.params),m.push({params:o,pathname:Da([h,N.pathname]),pathnameBase:CE(Da([h,N.pathnameBase])),route:C}),N.pathnameBase!=="/"&&(h=Da([h,N.pathnameBase]))}return m}function qf(s,n){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[a,r]=AE(s.path,s.caseSensitive,s.end),o=n.match(a);if(!o)return null;let h=o[0],m=h.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:r.reduce((v,{paramName:_,isOptional:N},C)=>{if(_==="*"){let A=p[C]||"";m=h.slice(0,h.length-A.length).replace(/(.)\/+$/,"$1")}const D=p[C];return N&&!D?v[_]=void 0:v[_]=(D||"").replace(/%2F/g,"/"),v},{}),pathname:h,pathnameBase:m,pattern:s}}function AE(s,n=!1,a=!0){Xi(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],o="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,p,b)=>(r.push({paramName:p,isOptional:b!=null}),b?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),o+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":s!==""&&s!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),r]}function wE(s){try{return s.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Xi(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),s}}function Ma(s,n){if(n==="/")return s;if(!s.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,r=s.charAt(a);return r&&r!=="/"?null:s.slice(a)||"/"}function TE(s,n="/"){let{pathname:a,search:r="",hash:o=""}=typeof s=="string"?Kr(s):s;return{pathname:a?a.startsWith("/")?a:OE(a,n):n,search:DE(r),hash:RE(o)}}function OE(s,n){let a=n.replace(/\/+$/,"").split("/");return s.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Yh(s,n,a,r){return`Cannot include a '${s}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jE(s){return s.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function Jb(s){let n=jE(s);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function e_(s,n,a,r=!1){let o;typeof s=="string"?o=Kr(s):(o={...s},St(!o.pathname||!o.pathname.includes("?"),Yh("?","pathname","search",o)),St(!o.pathname||!o.pathname.includes("#"),Yh("#","pathname","hash",o)),St(!o.search||!o.search.includes("#"),Yh("#","search","hash",o)));let h=s===""||o.pathname==="",m=h?"/":o.pathname,p;if(m==null)p=a;else{let N=n.length-1;if(!r&&m.startsWith("..")){let C=m.split("/");for(;C[0]==="..";)C.shift(),N-=1;o.pathname=C.join("/")}p=N>=0?n[N]:"/"}let b=TE(o,p),v=m&&m!=="/"&&m.endsWith("/"),_=(h||m===".")&&a.endsWith("/");return!b.pathname.endsWith("/")&&(v||_)&&(b.pathname+="/"),b}var Da=s=>s.join("/").replace(/\/\/+/g,"/"),CE=s=>s.replace(/\/+$/,"").replace(/^\/*/,"/"),DE=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,RE=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s;function LE(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}var t_=["POST","PUT","PATCH","DELETE"];new Set(t_);var ME=["GET",...t_];new Set(ME);var Ir=j.createContext(null);Ir.displayName="DataRouter";var Zf=j.createContext(null);Zf.displayName="DataRouterState";j.createContext(!1);var n_=j.createContext({isTransitioning:!1});n_.displayName="ViewTransition";var zE=j.createContext(new Map);zE.displayName="Fetchers";var kE=j.createContext(null);kE.displayName="Await";var Wi=j.createContext(null);Wi.displayName="Navigation";var Oc=j.createContext(null);Oc.displayName="Location";var ka=j.createContext({outlet:null,matches:[],isDataRoute:!1});ka.displayName="Route";var Rm=j.createContext(null);Rm.displayName="RouteError";function UE(s,{relative:n}={}){St(jc(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=j.useContext(Wi),{hash:o,pathname:h,search:m}=Cc(s,{relative:n}),p=h;return a!=="/"&&(p=h==="/"?a:Da([a,h])),r.createHref({pathname:p,search:m,hash:o})}function jc(){return j.useContext(Oc)!=null}function $s(){return St(jc(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Oc).location}var i_="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function a_(s){j.useContext(Wi).static||j.useLayoutEffect(s)}function Lm(){let{isDataRoute:s}=j.useContext(ka);return s?QE():HE()}function HE(){St(jc(),"useNavigate() may be used only in the context of a <Router> component.");let s=j.useContext(Ir),{basename:n,navigator:a}=j.useContext(Wi),{matches:r}=j.useContext(ka),{pathname:o}=$s(),h=JSON.stringify(Jb(r)),m=j.useRef(!1);return a_(()=>{m.current=!0}),j.useCallback((b,v={})=>{if(Xi(m.current,i_),!m.current)return;if(typeof b=="number"){a.go(b);return}let _=e_(b,JSON.parse(h),o,v.relative==="path");s==null&&n!=="/"&&(_.pathname=_.pathname==="/"?n:Da([n,_.pathname])),(v.replace?a.replace:a.push)(_,v.state,v)},[n,a,h,o,s])}j.createContext(null);function Cc(s,{relative:n}={}){let{matches:a}=j.useContext(ka),{pathname:r}=$s(),o=JSON.stringify(Jb(a));return j.useMemo(()=>e_(s,JSON.parse(o),r,n==="path"),[s,o,r,n])}function $E(s,n){return s_(s,n)}function s_(s,n,a,r,o){St(jc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=j.useContext(Wi),{matches:m}=j.useContext(ka),p=m[m.length-1],b=p?p.params:{},v=p?p.pathname:"/",_=p?p.pathnameBase:"/",N=p&&p.route;{let H=N&&N.path||"";l_(v,!N||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${H}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let C=$s(),D;if(n){let H=typeof n=="string"?Kr(n):n;St(_==="/"||H.pathname?.startsWith(_),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${_}" but pathname "${H.pathname}" was given in the \`location\` prop.`),D=H}else D=C;let A=D.pathname||"/",M=A;if(_!=="/"){let H=_.replace(/^\//,"").split("/");M="/"+A.replace(/^\//,"").split("/").slice(H.length).join("/")}let R=Qb(s,{pathname:M});Xi(N||R!=null,`No routes matched location "${D.pathname}${D.search}${D.hash}" `),Xi(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${D.pathname}${D.search}${D.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let I=YE(R&&R.map(H=>Object.assign({},H,{params:Object.assign({},b,H.params),pathname:Da([_,h.encodeLocation?h.encodeLocation(H.pathname).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?_:Da([_,h.encodeLocation?h.encodeLocation(H.pathnameBase).pathname:H.pathnameBase])})),m,a,r,o);return n&&I?j.createElement(Oc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...D},navigationType:"POP"}},I):I}function BE(){let s=XE(),n=LE(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),a=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",s),m=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:h},"ErrorBoundary")," or"," ",j.createElement("code",{style:h},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},n),a?j.createElement("pre",{style:o},a):null,m)}var VE=j.createElement(BE,null),qE=class extends j.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,n){return n.location!==s.location||n.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:n.error,location:n.location,revalidation:s.revalidation||n.revalidation}}componentDidCatch(s,n){this.props.unstable_onError?this.props.unstable_onError(s,n):console.error("React Router caught the following error during render",s)}render(){return this.state.error!==void 0?j.createElement(ka.Provider,{value:this.props.routeContext},j.createElement(Rm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function PE({routeContext:s,match:n,children:a}){let r=j.useContext(Ir);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),j.createElement(ka.Provider,{value:s},a)}function YE(s,n=[],a=null,r=null,o=null){if(s==null){if(!a)return null;if(a.errors)s=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)s=a.matches;else return null}let h=s,m=a?.errors;if(m!=null){let v=h.findIndex(_=>_.route.id&&m?.[_.route.id]!==void 0);St(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),h=h.slice(0,Math.min(h.length,v+1))}let p=!1,b=-1;if(a)for(let v=0;v<h.length;v++){let _=h[v];if((_.route.HydrateFallback||_.route.hydrateFallbackElement)&&(b=v),_.route.id){let{loaderData:N,errors:C}=a,D=_.route.loader&&!N.hasOwnProperty(_.route.id)&&(!C||C[_.route.id]===void 0);if(_.route.lazy||D){p=!0,b>=0?h=h.slice(0,b+1):h=[h[0]];break}}}return h.reduceRight((v,_,N)=>{let C,D=!1,A=null,M=null;a&&(C=m&&_.route.id?m[_.route.id]:void 0,A=_.route.errorElement||VE,p&&(b<0&&N===0?(l_("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,M=null):b===N&&(D=!0,M=_.route.hydrateFallbackElement||null)));let R=n.concat(h.slice(0,N+1)),I=()=>{let H;return C?H=A:D?H=M:_.route.Component?H=j.createElement(_.route.Component,null):_.route.element?H=_.route.element:H=v,j.createElement(PE,{match:_,routeContext:{outlet:v,matches:R,isDataRoute:a!=null},children:H})};return a&&(_.route.ErrorBoundary||_.route.errorElement||N===0)?j.createElement(qE,{location:a.location,revalidation:a.revalidation,component:A,error:C,children:I(),routeContext:{outlet:null,matches:R,isDataRoute:!0},unstable_onError:r}):I()},null)}function Mm(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function KE(s){let n=j.useContext(Ir);return St(n,Mm(s)),n}function IE(s){let n=j.useContext(Zf);return St(n,Mm(s)),n}function GE(s){let n=j.useContext(ka);return St(n,Mm(s)),n}function zm(s){let n=GE(s),a=n.matches[n.matches.length-1];return St(a.route.id,`${s} can only be used on routes that contain a unique "id"`),a.route.id}function FE(){return zm("useRouteId")}function XE(){let s=j.useContext(Rm),n=IE("useRouteError"),a=zm("useRouteError");return s!==void 0?s:n.errors?.[a]}function QE(){let{router:s}=KE("useNavigate"),n=zm("useNavigate"),a=j.useRef(!1);return a_(()=>{a.current=!0}),j.useCallback(async(o,h={})=>{Xi(a.current,i_),a.current&&(typeof o=="number"?s.navigate(o):await s.navigate(o,{fromRouteId:n,...h}))},[s,n])}var Cv={};function l_(s,n,a){!n&&!Cv[s]&&(Cv[s]=!0,Xi(!1,a))}j.memo(ZE);function ZE({routes:s,future:n,state:a,unstable_onError:r}){return s_(s,void 0,a,r,n)}function jn(s){St(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function WE({basename:s="/",children:n=null,location:a,navigationType:r="POP",navigator:o,static:h=!1}){St(!jc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=s.replace(/^\/*/,"/"),p=j.useMemo(()=>({basename:m,navigator:o,static:h,future:{}}),[m,o,h]);typeof a=="string"&&(a=Kr(a));let{pathname:b="/",search:v="",hash:_="",state:N=null,key:C="default"}=a,D=j.useMemo(()=>{let A=Ma(b,m);return A==null?null:{location:{pathname:A,search:v,hash:_,state:N,key:C},navigationType:r}},[m,b,v,_,N,C,r]);return Xi(D!=null,`<Router basename="${m}"> is not able to match the URL "${b}${v}${_}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:j.createElement(Wi.Provider,{value:p},j.createElement(Oc.Provider,{children:n,value:D}))}function JE({children:s,location:n}){return $E(hm(s),n)}function hm(s,n=[]){let a=[];return j.Children.forEach(s,(r,o)=>{if(!j.isValidElement(r))return;let h=[...n,o];if(r.type===j.Fragment){a.push.apply(a,hm(r.props.children,h));return}St(r.type===jn,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),St(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||h.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(m.children=hm(r.props.children,h)),a.push(m)}),a}var Lf="get",Mf="application/x-www-form-urlencoded";function Wf(s){return s!=null&&typeof s.tagName=="string"}function e0(s){return Wf(s)&&s.tagName.toLowerCase()==="button"}function t0(s){return Wf(s)&&s.tagName.toLowerCase()==="form"}function n0(s){return Wf(s)&&s.tagName.toLowerCase()==="input"}function i0(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function a0(s,n){return s.button===0&&(!n||n==="_self")&&!i0(s)}var Sf=null;function s0(){if(Sf===null)try{new FormData(document.createElement("form"),0),Sf=!1}catch{Sf=!0}return Sf}var l0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Kh(s){return s!=null&&!l0.has(s)?(Xi(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mf}"`),null):s}function r0(s,n){let a,r,o,h,m;if(t0(s)){let p=s.getAttribute("action");r=p?Ma(p,n):null,a=s.getAttribute("method")||Lf,o=Kh(s.getAttribute("enctype"))||Mf,h=new FormData(s)}else if(e0(s)||n0(s)&&(s.type==="submit"||s.type==="image")){let p=s.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=s.getAttribute("formaction")||p.getAttribute("action");if(r=b?Ma(b,n):null,a=s.getAttribute("formmethod")||p.getAttribute("method")||Lf,o=Kh(s.getAttribute("formenctype"))||Kh(p.getAttribute("enctype"))||Mf,h=new FormData(p,s),!s0()){let{name:v,type:_,value:N}=s;if(_==="image"){let C=v?`${v}.`:"";h.append(`${C}x`,"0"),h.append(`${C}y`,"0")}else v&&h.append(v,N)}}else{if(Wf(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Lf,r=null,o=Mf,m=s}return h&&o==="text/plain"&&(m=h,h=void 0),{action:r,method:a.toLowerCase(),encType:o,formData:h,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function km(s,n){if(s===!1||s===null||typeof s>"u")throw new Error(n)}function o0(s,n,a){let r=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return r.pathname==="/"?r.pathname=`_root.${a}`:n&&Ma(r.pathname,n)==="/"?r.pathname=`${n.replace(/\/$/,"")}/_root.${a}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${a}`,r}async function c0(s,n){if(s.id in n)return n[s.id];try{let a=await import(s.module);return n[s.id]=a,a}catch(a){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function u0(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function f0(s,n,a){let r=await Promise.all(s.map(async o=>{let h=n.routes[o.route.id];if(h){let m=await c0(h,a);return m.links?m.links():[]}return[]}));return p0(r.flat(1).filter(u0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Dv(s,n,a,r,o,h){let m=(b,v)=>a[v]?b.route.id!==a[v].route.id:!0,p=(b,v)=>a[v].pathname!==b.pathname||a[v].route.path?.endsWith("*")&&a[v].params["*"]!==b.params["*"];return h==="assets"?n.filter((b,v)=>m(b,v)||p(b,v)):h==="data"?n.filter((b,v)=>{let _=r.routes[b.route.id];if(!_||!_.hasLoader)return!1;if(m(b,v)||p(b,v))return!0;if(b.route.shouldRevalidate){let N=b.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(s,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function d0(s,n,{includeHydrateFallback:a}={}){return h0(s.map(r=>{let o=n.routes[r.route.id];if(!o)return[];let h=[o.module];return o.clientActionModule&&(h=h.concat(o.clientActionModule)),o.clientLoaderModule&&(h=h.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(h=h.concat(o.hydrateFallbackModule)),o.imports&&(h=h.concat(o.imports)),h}).flat(1))}function h0(s){return[...new Set(s)]}function m0(s){let n={},a=Object.keys(s).sort();for(let r of a)n[r]=s[r];return n}function p0(s,n){let a=new Set;return new Set(n),s.reduce((r,o)=>{let h=JSON.stringify(m0(o));return a.has(h)||(a.add(h),r.push({key:h,link:o})),r},[])}function r_(){let s=j.useContext(Ir);return km(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function g0(){let s=j.useContext(Zf);return km(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var Um=j.createContext(void 0);Um.displayName="FrameworkContext";function o_(){let s=j.useContext(Um);return km(s,"You must render this element inside a <HydratedRouter> element"),s}function v0(s,n){let a=j.useContext(Um),[r,o]=j.useState(!1),[h,m]=j.useState(!1),{onFocus:p,onBlur:b,onMouseEnter:v,onMouseLeave:_,onTouchStart:N}=n,C=j.useRef(null);j.useEffect(()=>{if(s==="render"&&m(!0),s==="viewport"){let M=I=>{I.forEach(H=>{m(H.isIntersecting)})},R=new IntersectionObserver(M,{threshold:.5});return C.current&&R.observe(C.current),()=>{R.disconnect()}}},[s]),j.useEffect(()=>{if(r){let M=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(M)}}},[r]);let D=()=>{o(!0)},A=()=>{o(!1),m(!1)};return a?s!=="intent"?[h,C,{}]:[h,C,{onFocus:gc(p,D),onBlur:gc(b,A),onMouseEnter:gc(v,D),onMouseLeave:gc(_,A),onTouchStart:gc(N,D)}]:[!1,C,{}]}function gc(s,n){return a=>{s&&s(a),a.defaultPrevented||n(a)}}function b0({page:s,...n}){let{router:a}=r_(),r=j.useMemo(()=>Qb(a.routes,s,a.basename),[a.routes,s,a.basename]);return r?j.createElement(y0,{page:s,matches:r,...n}):null}function _0(s){let{manifest:n,routeModules:a}=o_(),[r,o]=j.useState([]);return j.useEffect(()=>{let h=!1;return f0(s,n,a).then(m=>{h||o(m)}),()=>{h=!0}},[s,n,a]),r}function y0({page:s,matches:n,...a}){let r=$s(),{manifest:o,routeModules:h}=o_(),{basename:m}=r_(),{loaderData:p,matches:b}=g0(),v=j.useMemo(()=>Dv(s,n,b,o,r,"data"),[s,n,b,o,r]),_=j.useMemo(()=>Dv(s,n,b,o,r,"assets"),[s,n,b,o,r]),N=j.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let A=new Set,M=!1;if(n.forEach(I=>{let H=o.routes[I.route.id];!H||!H.hasLoader||(!v.some(G=>G.route.id===I.route.id)&&I.route.id in p&&h[I.route.id]?.shouldRevalidate||H.hasClientLoader?M=!0:A.add(I.route.id))}),A.size===0)return[];let R=o0(s,m,"data");return M&&A.size>0&&R.searchParams.set("_routes",n.filter(I=>A.has(I.route.id)).map(I=>I.route.id).join(",")),[R.pathname+R.search]},[m,p,r,o,v,n,s,h]),C=j.useMemo(()=>d0(_,o),[_,o]),D=_0(_);return j.createElement(j.Fragment,null,N.map(A=>j.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...a})),C.map(A=>j.createElement("link",{key:A,rel:"modulepreload",href:A,...a})),D.map(({key:A,link:M})=>j.createElement("link",{key:A,nonce:a.nonce,...M})))}function x0(...s){return n=>{s.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var c_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{c_&&(window.__reactRouterVersion="7.8.2")}catch{}function E0({basename:s,children:n,window:a}){let r=j.useRef();r.current==null&&(r.current=uE({window:a,v5Compat:!0}));let o=r.current,[h,m]=j.useState({action:o.action,location:o.location}),p=j.useCallback(b=>{j.startTransition(()=>m(b))},[m]);return j.useLayoutEffect(()=>o.listen(p),[o,p]),j.createElement(WE,{basename:s,children:n,location:h.location,navigationType:h.action,navigator:o})}var u_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ft=j.forwardRef(function({onClick:n,discover:a="render",prefetch:r="none",relative:o,reloadDocument:h,replace:m,state:p,target:b,to:v,preventScrollReset:_,viewTransition:N,...C},D){let{basename:A}=j.useContext(Wi),M=typeof v=="string"&&u_.test(v),R,I=!1;if(typeof v=="string"&&M&&(R=v,c_))try{let re=new URL(window.location.href),ge=v.startsWith("//")?new URL(re.protocol+v):new URL(v),Se=Ma(ge.pathname,A);ge.origin===re.origin&&Se!=null?v=Se+ge.search+ge.hash:I=!0}catch{Xi(!1,`<Link to="${v}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let H=UE(v,{relative:o}),[G,F,Q]=v0(r,C),Z=A0(v,{replace:m,state:p,target:b,preventScrollReset:_,relative:o,viewTransition:N});function ie(re){n&&n(re),re.defaultPrevented||Z(re)}let ne=j.createElement("a",{...C,...Q,href:R||H,onClick:I||h?n:ie,ref:x0(D,F),target:b,"data-discover":!M&&a==="render"?"true":void 0});return G&&!M?j.createElement(j.Fragment,null,ne,j.createElement(b0,{page:H})):ne});ft.displayName="Link";var vn=j.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:r="",end:o=!1,style:h,to:m,viewTransition:p,children:b,...v},_){let N=Cc(m,{relative:v.relative}),C=$s(),D=j.useContext(Zf),{navigator:A,basename:M}=j.useContext(Wi),R=D!=null&&C0(N)&&p===!0,I=A.encodeLocation?A.encodeLocation(N).pathname:N.pathname,H=C.pathname,G=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;a||(H=H.toLowerCase(),G=G?G.toLowerCase():null,I=I.toLowerCase()),G&&M&&(G=Ma(G,M)||G);const F=I!=="/"&&I.endsWith("/")?I.length-1:I.length;let Q=H===I||!o&&H.startsWith(I)&&H.charAt(F)==="/",Z=G!=null&&(G===I||!o&&G.startsWith(I)&&G.charAt(I.length)==="/"),ie={isActive:Q,isPending:Z,isTransitioning:R},ne=Q?n:void 0,re;typeof r=="function"?re=r(ie):re=[r,Q?"active":null,Z?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let ge=typeof h=="function"?h(ie):h;return j.createElement(ft,{...v,"aria-current":ne,className:re,ref:_,style:ge,to:m,viewTransition:p},typeof b=="function"?b(ie):b)});vn.displayName="NavLink";var S0=j.forwardRef(({discover:s="render",fetcherKey:n,navigate:a,reloadDocument:r,replace:o,state:h,method:m=Lf,action:p,onSubmit:b,relative:v,preventScrollReset:_,viewTransition:N,...C},D)=>{let A=O0(),M=j0(p,{relative:v}),R=m.toLowerCase()==="get"?"get":"post",I=typeof p=="string"&&u_.test(p),H=G=>{if(b&&b(G),G.defaultPrevented)return;G.preventDefault();let F=G.nativeEvent.submitter,Q=F?.getAttribute("formmethod")||m;A(F||G.currentTarget,{fetcherKey:n,method:Q,navigate:a,replace:o,state:h,relative:v,preventScrollReset:_,viewTransition:N})};return j.createElement("form",{ref:D,method:R,action:M,onSubmit:r?b:H,...C,"data-discover":!I&&s==="render"?"true":void 0})});S0.displayName="Form";function N0(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function f_(s){let n=j.useContext(Ir);return St(n,N0(s)),n}function A0(s,{target:n,replace:a,state:r,preventScrollReset:o,relative:h,viewTransition:m}={}){let p=Lm(),b=$s(),v=Cc(s,{relative:h});return j.useCallback(_=>{if(a0(_,n)){_.preventDefault();let N=a!==void 0?a:Nc(b)===Nc(v);p(s,{replace:N,state:r,preventScrollReset:o,relative:h,viewTransition:m})}},[b,p,v,a,r,n,s,o,h,m])}var w0=0,T0=()=>`__${String(++w0)}__`;function O0(){let{router:s}=f_("useSubmit"),{basename:n}=j.useContext(Wi),a=FE();return j.useCallback(async(r,o={})=>{let{action:h,method:m,encType:p,formData:b,body:v}=r0(r,n);if(o.navigate===!1){let _=o.fetcherKey||T0();await s.fetch(_,a,o.action||h,{preventScrollReset:o.preventScrollReset,formData:b,body:v,formMethod:o.method||m,formEncType:o.encType||p,flushSync:o.flushSync})}else await s.navigate(o.action||h,{preventScrollReset:o.preventScrollReset,formData:b,body:v,formMethod:o.method||m,formEncType:o.encType||p,replace:o.replace,state:o.state,fromRouteId:a,flushSync:o.flushSync,viewTransition:o.viewTransition})},[s,n,a])}function j0(s,{relative:n}={}){let{basename:a}=j.useContext(Wi),r=j.useContext(ka);St(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),h={...Cc(s||".",{relative:n})},m=$s();if(s==null){h.search=m.search;let p=new URLSearchParams(h.search),b=p.getAll("index");if(b.some(_=>_==="")){p.delete("index"),b.filter(N=>N).forEach(N=>p.append("index",N));let _=p.toString();h.search=_?`?${_}`:""}}return(!s||s===".")&&o.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(h.pathname=h.pathname==="/"?a:Da([a,h.pathname])),Nc(h)}function C0(s,{relative:n}={}){let a=j.useContext(n_);St(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=f_("useViewTransitionState"),o=Cc(s,{relative:n});if(!a.isTransitioning)return!1;let h=Ma(a.currentLocation.pathname,r)||a.currentLocation.pathname,m=Ma(a.nextLocation.pathname,r)||a.nextLocation.pathname;return qf(o.pathname,m)!=null||qf(o.pathname,h)!=null}function d_(s,n){return function(){return s.apply(n,arguments)}}const{toString:D0}=Object.prototype,{getPrototypeOf:Hm}=Object,{iterator:Jf,toStringTag:h_}=Symbol,ed=(s=>n=>{const a=D0.call(n);return s[a]||(s[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Si=s=>(s=s.toLowerCase(),n=>ed(n)===s),td=s=>n=>typeof n===s,{isArray:Gr}=Array,Ur=td("undefined");function Dc(s){return s!==null&&!Ur(s)&&s.constructor!==null&&!Ur(s.constructor)&&Dn(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const m_=Si("ArrayBuffer");function R0(s){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(s):n=s&&s.buffer&&m_(s.buffer),n}const L0=td("string"),Dn=td("function"),p_=td("number"),Rc=s=>s!==null&&typeof s=="object",M0=s=>s===!0||s===!1,zf=s=>{if(ed(s)!=="object")return!1;const n=Hm(s);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(h_ in s)&&!(Jf in s)},z0=s=>{if(!Rc(s)||Dc(s))return!1;try{return Object.keys(s).length===0&&Object.getPrototypeOf(s)===Object.prototype}catch{return!1}},k0=Si("Date"),U0=Si("File"),H0=Si("Blob"),$0=Si("FileList"),B0=s=>Rc(s)&&Dn(s.pipe),V0=s=>{let n;return s&&(typeof FormData=="function"&&s instanceof FormData||Dn(s.append)&&((n=ed(s))==="formdata"||n==="object"&&Dn(s.toString)&&s.toString()==="[object FormData]"))},q0=Si("URLSearchParams"),[P0,Y0,K0,I0]=["ReadableStream","Request","Response","Headers"].map(Si),G0=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Lc(s,n,{allOwnKeys:a=!1}={}){if(s===null||typeof s>"u")return;let r,o;if(typeof s!="object"&&(s=[s]),Gr(s))for(r=0,o=s.length;r<o;r++)n.call(null,s[r],r,s);else{if(Dc(s))return;const h=a?Object.getOwnPropertyNames(s):Object.keys(s),m=h.length;let p;for(r=0;r<m;r++)p=h[r],n.call(null,s[p],p,s)}}function g_(s,n){if(Dc(s))return null;n=n.toLowerCase();const a=Object.keys(s);let r=a.length,o;for(;r-- >0;)if(o=a[r],n===o.toLowerCase())return o;return null}const yl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,v_=s=>!Ur(s)&&s!==yl;function mm(){const{caseless:s,skipUndefined:n}=v_(this)&&this||{},a={},r=(o,h)=>{const m=s&&g_(a,h)||h;zf(a[m])&&zf(o)?a[m]=mm(a[m],o):zf(o)?a[m]=mm({},o):Gr(o)?a[m]=o.slice():(!n||!Ur(o))&&(a[m]=o)};for(let o=0,h=arguments.length;o<h;o++)arguments[o]&&Lc(arguments[o],r);return a}const F0=(s,n,a,{allOwnKeys:r}={})=>(Lc(n,(o,h)=>{a&&Dn(o)?s[h]=d_(o,a):s[h]=o},{allOwnKeys:r}),s),X0=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),Q0=(s,n,a,r)=>{s.prototype=Object.create(n.prototype,r),s.prototype.constructor=s,Object.defineProperty(s,"super",{value:n.prototype}),a&&Object.assign(s.prototype,a)},Z0=(s,n,a,r)=>{let o,h,m;const p={};if(n=n||{},s==null)return n;do{for(o=Object.getOwnPropertyNames(s),h=o.length;h-- >0;)m=o[h],(!r||r(m,s,n))&&!p[m]&&(n[m]=s[m],p[m]=!0);s=a!==!1&&Hm(s)}while(s&&(!a||a(s,n))&&s!==Object.prototype);return n},W0=(s,n,a)=>{s=String(s),(a===void 0||a>s.length)&&(a=s.length),a-=n.length;const r=s.indexOf(n,a);return r!==-1&&r===a},J0=s=>{if(!s)return null;if(Gr(s))return s;let n=s.length;if(!p_(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=s[n];return a},eS=(s=>n=>s&&n instanceof s)(typeof Uint8Array<"u"&&Hm(Uint8Array)),tS=(s,n)=>{const r=(s&&s[Jf]).call(s);let o;for(;(o=r.next())&&!o.done;){const h=o.value;n.call(s,h[0],h[1])}},nS=(s,n)=>{let a;const r=[];for(;(a=s.exec(n))!==null;)r.push(a);return r},iS=Si("HTMLFormElement"),aS=s=>s.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,o){return r.toUpperCase()+o}),Rv=(({hasOwnProperty:s})=>(n,a)=>s.call(n,a))(Object.prototype),sS=Si("RegExp"),b_=(s,n)=>{const a=Object.getOwnPropertyDescriptors(s),r={};Lc(a,(o,h)=>{let m;(m=n(o,h,s))!==!1&&(r[h]=m||o)}),Object.defineProperties(s,r)},lS=s=>{b_(s,(n,a)=>{if(Dn(s)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=s[a];if(Dn(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},rS=(s,n)=>{const a={},r=o=>{o.forEach(h=>{a[h]=!0})};return Gr(s)?r(s):r(String(s).split(n)),a},oS=()=>{},cS=(s,n)=>s!=null&&Number.isFinite(s=+s)?s:n;function uS(s){return!!(s&&Dn(s.append)&&s[h_]==="FormData"&&s[Jf])}const fS=s=>{const n=new Array(10),a=(r,o)=>{if(Rc(r)){if(n.indexOf(r)>=0)return;if(Dc(r))return r;if(!("toJSON"in r)){n[o]=r;const h=Gr(r)?[]:{};return Lc(r,(m,p)=>{const b=a(m,o+1);!Ur(b)&&(h[p]=b)}),n[o]=void 0,h}}return r};return a(s,0)},dS=Si("AsyncFunction"),hS=s=>s&&(Rc(s)||Dn(s))&&Dn(s.then)&&Dn(s.catch),__=((s,n)=>s?setImmediate:n?((a,r)=>(yl.addEventListener("message",({source:o,data:h})=>{o===yl&&h===a&&r.length&&r.shift()()},!1),o=>{r.push(o),yl.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Dn(yl.postMessage)),mS=typeof queueMicrotask<"u"?queueMicrotask.bind(yl):typeof process<"u"&&process.nextTick||__,pS=s=>s!=null&&Dn(s[Jf]),K={isArray:Gr,isArrayBuffer:m_,isBuffer:Dc,isFormData:V0,isArrayBufferView:R0,isString:L0,isNumber:p_,isBoolean:M0,isObject:Rc,isPlainObject:zf,isEmptyObject:z0,isReadableStream:P0,isRequest:Y0,isResponse:K0,isHeaders:I0,isUndefined:Ur,isDate:k0,isFile:U0,isBlob:H0,isRegExp:sS,isFunction:Dn,isStream:B0,isURLSearchParams:q0,isTypedArray:eS,isFileList:$0,forEach:Lc,merge:mm,extend:F0,trim:G0,stripBOM:X0,inherits:Q0,toFlatObject:Z0,kindOf:ed,kindOfTest:Si,endsWith:W0,toArray:J0,forEachEntry:tS,matchAll:nS,isHTMLForm:iS,hasOwnProperty:Rv,hasOwnProp:Rv,reduceDescriptors:b_,freezeMethods:lS,toObjectSet:rS,toCamelCase:aS,noop:oS,toFiniteNumber:cS,findKey:g_,global:yl,isContextDefined:v_,isSpecCompliantForm:uS,toJSONObject:fS,isAsyncFn:dS,isThenable:hS,setImmediate:__,asap:mS,isIterable:pS};function Pe(s,n,a,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=s,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}K.inherits(Pe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.status}}});const y_=Pe.prototype,x_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(s=>{x_[s]={value:s}});Object.defineProperties(Pe,x_);Object.defineProperty(y_,"isAxiosError",{value:!0});Pe.from=(s,n,a,r,o,h)=>{const m=Object.create(y_);K.toFlatObject(s,m,function(_){return _!==Error.prototype},v=>v!=="isAxiosError");const p=s&&s.message?s.message:"Error",b=n==null&&s?s.code:n;return Pe.call(m,p,b,a,r,o),s&&m.cause==null&&Object.defineProperty(m,"cause",{value:s,configurable:!0}),m.name=s&&s.name||"Error",h&&Object.assign(m,h),m};const gS=null;function pm(s){return K.isPlainObject(s)||K.isArray(s)}function E_(s){return K.endsWith(s,"[]")?s.slice(0,-2):s}function Lv(s,n,a){return s?s.concat(n).map(function(o,h){return o=E_(o),!a&&h?"["+o+"]":o}).join(a?".":""):n}function vS(s){return K.isArray(s)&&!s.some(pm)}const bS=K.toFlatObject(K,{},null,function(n){return/^is[A-Z]/.test(n)});function nd(s,n,a){if(!K.isObject(s))throw new TypeError("target must be an object");n=n||new FormData,a=K.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,R){return!K.isUndefined(R[M])});const r=a.metaTokens,o=a.visitor||_,h=a.dots,m=a.indexes,b=(a.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(n);if(!K.isFunction(o))throw new TypeError("visitor must be a function");function v(A){if(A===null)return"";if(K.isDate(A))return A.toISOString();if(K.isBoolean(A))return A.toString();if(!b&&K.isBlob(A))throw new Pe("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(A)||K.isTypedArray(A)?b&&typeof Blob=="function"?new Blob([A]):Buffer.from(A):A}function _(A,M,R){let I=A;if(A&&!R&&typeof A=="object"){if(K.endsWith(M,"{}"))M=r?M:M.slice(0,-2),A=JSON.stringify(A);else if(K.isArray(A)&&vS(A)||(K.isFileList(A)||K.endsWith(M,"[]"))&&(I=K.toArray(A)))return M=E_(M),I.forEach(function(G,F){!(K.isUndefined(G)||G===null)&&n.append(m===!0?Lv([M],F,h):m===null?M:M+"[]",v(G))}),!1}return pm(A)?!0:(n.append(Lv(R,M,h),v(A)),!1)}const N=[],C=Object.assign(bS,{defaultVisitor:_,convertValue:v,isVisitable:pm});function D(A,M){if(!K.isUndefined(A)){if(N.indexOf(A)!==-1)throw Error("Circular reference detected in "+M.join("."));N.push(A),K.forEach(A,function(I,H){(!(K.isUndefined(I)||I===null)&&o.call(n,I,K.isString(H)?H.trim():H,M,C))===!0&&D(I,M?M.concat(H):[H])}),N.pop()}}if(!K.isObject(s))throw new TypeError("data must be an object");return D(s),n}function Mv(s){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function $m(s,n){this._pairs=[],s&&nd(s,this,n)}const S_=$m.prototype;S_.append=function(n,a){this._pairs.push([n,a])};S_.toString=function(n){const a=n?function(r){return n.call(this,r,Mv)}:Mv;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function _S(s){return encodeURIComponent(s).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function N_(s,n,a){if(!n)return s;const r=a&&a.encode||_S;K.isFunction(a)&&(a={serialize:a});const o=a&&a.serialize;let h;if(o?h=o(n,a):h=K.isURLSearchParams(n)?n.toString():new $m(n,a).toString(r),h){const m=s.indexOf("#");m!==-1&&(s=s.slice(0,m)),s+=(s.indexOf("?")===-1?"?":"&")+h}return s}class zv{constructor(){this.handlers=[]}use(n,a,r){return this.handlers.push({fulfilled:n,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){K.forEach(this.handlers,function(r){r!==null&&n(r)})}}const A_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yS=typeof URLSearchParams<"u"?URLSearchParams:$m,xS=typeof FormData<"u"?FormData:null,ES=typeof Blob<"u"?Blob:null,SS={isBrowser:!0,classes:{URLSearchParams:yS,FormData:xS,Blob:ES},protocols:["http","https","file","blob","url","data"]},Bm=typeof window<"u"&&typeof document<"u",gm=typeof navigator=="object"&&navigator||void 0,NS=Bm&&(!gm||["ReactNative","NativeScript","NS"].indexOf(gm.product)<0),AS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wS=Bm&&window.location.href||"http://localhost",TS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bm,hasStandardBrowserEnv:NS,hasStandardBrowserWebWorkerEnv:AS,navigator:gm,origin:wS},Symbol.toStringTag,{value:"Module"})),on={...TS,...SS};function OS(s,n){return nd(s,new on.classes.URLSearchParams,{visitor:function(a,r,o,h){return on.isNode&&K.isBuffer(a)?(this.append(r,a.toString("base64")),!1):h.defaultVisitor.apply(this,arguments)},...n})}function jS(s){return K.matchAll(/\w+|\[(\w*)]/g,s).map(n=>n[0]==="[]"?"":n[1]||n[0])}function CS(s){const n={},a=Object.keys(s);let r;const o=a.length;let h;for(r=0;r<o;r++)h=a[r],n[h]=s[h];return n}function w_(s){function n(a,r,o,h){let m=a[h++];if(m==="__proto__")return!0;const p=Number.isFinite(+m),b=h>=a.length;return m=!m&&K.isArray(o)?o.length:m,b?(K.hasOwnProp(o,m)?o[m]=[o[m],r]:o[m]=r,!p):((!o[m]||!K.isObject(o[m]))&&(o[m]=[]),n(a,r,o[m],h)&&K.isArray(o[m])&&(o[m]=CS(o[m])),!p)}if(K.isFormData(s)&&K.isFunction(s.entries)){const a={};return K.forEachEntry(s,(r,o)=>{n(jS(r),o,a,0)}),a}return null}function DS(s,n,a){if(K.isString(s))try{return(n||JSON.parse)(s),K.trim(s)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(s)}const Mc={transitional:A_,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const r=a.getContentType()||"",o=r.indexOf("application/json")>-1,h=K.isObject(n);if(h&&K.isHTMLForm(n)&&(n=new FormData(n)),K.isFormData(n))return o?JSON.stringify(w_(n)):n;if(K.isArrayBuffer(n)||K.isBuffer(n)||K.isStream(n)||K.isFile(n)||K.isBlob(n)||K.isReadableStream(n))return n;if(K.isArrayBufferView(n))return n.buffer;if(K.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let p;if(h){if(r.indexOf("application/x-www-form-urlencoded")>-1)return OS(n,this.formSerializer).toString();if((p=K.isFileList(n))||r.indexOf("multipart/form-data")>-1){const b=this.env&&this.env.FormData;return nd(p?{"files[]":n}:n,b&&new b,this.formSerializer)}}return h||o?(a.setContentType("application/json",!1),DS(n)):n}],transformResponse:[function(n){const a=this.transitional||Mc.transitional,r=a&&a.forcedJSONParsing,o=this.responseType==="json";if(K.isResponse(n)||K.isReadableStream(n))return n;if(n&&K.isString(n)&&(r&&!this.responseType||o)){const m=!(a&&a.silentJSONParsing)&&o;try{return JSON.parse(n,this.parseReviver)}catch(p){if(m)throw p.name==="SyntaxError"?Pe.from(p,Pe.ERR_BAD_RESPONSE,this,null,this.response):p}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:on.classes.FormData,Blob:on.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],s=>{Mc.headers[s]={}});const RS=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),LS=s=>{const n={};let a,r,o;return s&&s.split(`
`).forEach(function(m){o=m.indexOf(":"),a=m.substring(0,o).trim().toLowerCase(),r=m.substring(o+1).trim(),!(!a||n[a]&&RS[a])&&(a==="set-cookie"?n[a]?n[a].push(r):n[a]=[r]:n[a]=n[a]?n[a]+", "+r:r)}),n},kv=Symbol("internals");function vc(s){return s&&String(s).trim().toLowerCase()}function kf(s){return s===!1||s==null?s:K.isArray(s)?s.map(kf):String(s)}function MS(s){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(s);)n[r[1]]=r[2];return n}const zS=s=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());function Ih(s,n,a,r,o){if(K.isFunction(r))return r.call(this,n,a);if(o&&(n=a),!!K.isString(n)){if(K.isString(r))return n.indexOf(r)!==-1;if(K.isRegExp(r))return r.test(n)}}function kS(s){return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,r)=>a.toUpperCase()+r)}function US(s,n){const a=K.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(s,r+a,{value:function(o,h,m){return this[r].call(this,n,o,h,m)},configurable:!0})})}let Rn=class{constructor(n){n&&this.set(n)}set(n,a,r){const o=this;function h(p,b,v){const _=vc(b);if(!_)throw new Error("header name must be a non-empty string");const N=K.findKey(o,_);(!N||o[N]===void 0||v===!0||v===void 0&&o[N]!==!1)&&(o[N||b]=kf(p))}const m=(p,b)=>K.forEach(p,(v,_)=>h(v,_,b));if(K.isPlainObject(n)||n instanceof this.constructor)m(n,a);else if(K.isString(n)&&(n=n.trim())&&!zS(n))m(LS(n),a);else if(K.isObject(n)&&K.isIterable(n)){let p={},b,v;for(const _ of n){if(!K.isArray(_))throw TypeError("Object iterator must return a key-value pair");p[v=_[0]]=(b=p[v])?K.isArray(b)?[...b,_[1]]:[b,_[1]]:_[1]}m(p,a)}else n!=null&&h(a,n,r);return this}get(n,a){if(n=vc(n),n){const r=K.findKey(this,n);if(r){const o=this[r];if(!a)return o;if(a===!0)return MS(o);if(K.isFunction(a))return a.call(this,o,r);if(K.isRegExp(a))return a.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=vc(n),n){const r=K.findKey(this,n);return!!(r&&this[r]!==void 0&&(!a||Ih(this,this[r],r,a)))}return!1}delete(n,a){const r=this;let o=!1;function h(m){if(m=vc(m),m){const p=K.findKey(r,m);p&&(!a||Ih(r,r[p],p,a))&&(delete r[p],o=!0)}}return K.isArray(n)?n.forEach(h):h(n),o}clear(n){const a=Object.keys(this);let r=a.length,o=!1;for(;r--;){const h=a[r];(!n||Ih(this,this[h],h,n,!0))&&(delete this[h],o=!0)}return o}normalize(n){const a=this,r={};return K.forEach(this,(o,h)=>{const m=K.findKey(r,h);if(m){a[m]=kf(o),delete a[h];return}const p=n?kS(h):String(h).trim();p!==h&&delete a[h],a[p]=kf(o),r[p]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return K.forEach(this,(r,o)=>{r!=null&&r!==!1&&(a[o]=n&&K.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const r=new this(n);return a.forEach(o=>r.set(o)),r}static accessor(n){const r=(this[kv]=this[kv]={accessors:{}}).accessors,o=this.prototype;function h(m){const p=vc(m);r[p]||(US(o,m),r[p]=!0)}return K.isArray(n)?n.forEach(h):h(n),this}};Rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);K.reduceDescriptors(Rn.prototype,({value:s},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>s,set(r){this[a]=r}}});K.freezeMethods(Rn);function Gh(s,n){const a=this||Mc,r=n||a,o=Rn.from(r.headers);let h=r.data;return K.forEach(s,function(p){h=p.call(a,h,o.normalize(),n?n.status:void 0)}),o.normalize(),h}function T_(s){return!!(s&&s.__CANCEL__)}function Fr(s,n,a){Pe.call(this,s??"canceled",Pe.ERR_CANCELED,n,a),this.name="CanceledError"}K.inherits(Fr,Pe,{__CANCEL__:!0});function O_(s,n,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?s(a):n(new Pe("Request failed with status code "+a.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function HS(s){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return n&&n[1]||""}function $S(s,n){s=s||10;const a=new Array(s),r=new Array(s);let o=0,h=0,m;return n=n!==void 0?n:1e3,function(b){const v=Date.now(),_=r[h];m||(m=v),a[o]=b,r[o]=v;let N=h,C=0;for(;N!==o;)C+=a[N++],N=N%s;if(o=(o+1)%s,o===h&&(h=(h+1)%s),v-m<n)return;const D=_&&v-_;return D?Math.round(C*1e3/D):void 0}}function BS(s,n){let a=0,r=1e3/n,o,h;const m=(v,_=Date.now())=>{a=_,o=null,h&&(clearTimeout(h),h=null),s(...v)};return[(...v)=>{const _=Date.now(),N=_-a;N>=r?m(v,_):(o=v,h||(h=setTimeout(()=>{h=null,m(o)},r-N)))},()=>o&&m(o)]}const Pf=(s,n,a=3)=>{let r=0;const o=$S(50,250);return BS(h=>{const m=h.loaded,p=h.lengthComputable?h.total:void 0,b=m-r,v=o(b),_=m<=p;r=m;const N={loaded:m,total:p,progress:p?m/p:void 0,bytes:b,rate:v||void 0,estimated:v&&p&&_?(p-m)/v:void 0,event:h,lengthComputable:p!=null,[n?"download":"upload"]:!0};s(N)},a)},Uv=(s,n)=>{const a=s!=null;return[r=>n[0]({lengthComputable:a,total:s,loaded:r}),n[1]]},Hv=s=>(...n)=>K.asap(()=>s(...n)),VS=on.hasStandardBrowserEnv?((s,n)=>a=>(a=new URL(a,on.origin),s.protocol===a.protocol&&s.host===a.host&&(n||s.port===a.port)))(new URL(on.origin),on.navigator&&/(msie|trident)/i.test(on.navigator.userAgent)):()=>!0,qS=on.hasStandardBrowserEnv?{write(s,n,a,r,o,h){const m=[s+"="+encodeURIComponent(n)];K.isNumber(a)&&m.push("expires="+new Date(a).toGMTString()),K.isString(r)&&m.push("path="+r),K.isString(o)&&m.push("domain="+o),h===!0&&m.push("secure"),document.cookie=m.join("; ")},read(s){const n=document.cookie.match(new RegExp("(^|;\\s*)("+s+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(s){this.write(s,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function PS(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function YS(s,n){return n?s.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):s}function j_(s,n,a){let r=!PS(n);return s&&(r||a==!1)?YS(s,n):n}const $v=s=>s instanceof Rn?{...s}:s;function wl(s,n){n=n||{};const a={};function r(v,_,N,C){return K.isPlainObject(v)&&K.isPlainObject(_)?K.merge.call({caseless:C},v,_):K.isPlainObject(_)?K.merge({},_):K.isArray(_)?_.slice():_}function o(v,_,N,C){if(K.isUndefined(_)){if(!K.isUndefined(v))return r(void 0,v,N,C)}else return r(v,_,N,C)}function h(v,_){if(!K.isUndefined(_))return r(void 0,_)}function m(v,_){if(K.isUndefined(_)){if(!K.isUndefined(v))return r(void 0,v)}else return r(void 0,_)}function p(v,_,N){if(N in n)return r(v,_);if(N in s)return r(void 0,v)}const b={url:h,method:h,data:h,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:p,headers:(v,_,N)=>o($v(v),$v(_),N,!0)};return K.forEach(Object.keys({...s,...n}),function(_){const N=b[_]||o,C=N(s[_],n[_],_);K.isUndefined(C)&&N!==p||(a[_]=C)}),a}const C_=s=>{const n=wl({},s);let{data:a,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:h,headers:m,auth:p}=n;if(n.headers=m=Rn.from(m),n.url=N_(j_(n.baseURL,n.url,n.allowAbsoluteUrls),s.params,s.paramsSerializer),p&&m.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):""))),K.isFormData(a)){if(on.hasStandardBrowserEnv||on.hasStandardBrowserWebWorkerEnv)m.setContentType(void 0);else if(K.isFunction(a.getHeaders)){const b=a.getHeaders(),v=["content-type","content-length"];Object.entries(b).forEach(([_,N])=>{v.includes(_.toLowerCase())&&m.set(_,N)})}}if(on.hasStandardBrowserEnv&&(r&&K.isFunction(r)&&(r=r(n)),r||r!==!1&&VS(n.url))){const b=o&&h&&qS.read(h);b&&m.set(o,b)}return n},KS=typeof XMLHttpRequest<"u",IS=KS&&function(s){return new Promise(function(a,r){const o=C_(s);let h=o.data;const m=Rn.from(o.headers).normalize();let{responseType:p,onUploadProgress:b,onDownloadProgress:v}=o,_,N,C,D,A;function M(){D&&D(),A&&A(),o.cancelToken&&o.cancelToken.unsubscribe(_),o.signal&&o.signal.removeEventListener("abort",_)}let R=new XMLHttpRequest;R.open(o.method.toUpperCase(),o.url,!0),R.timeout=o.timeout;function I(){if(!R)return;const G=Rn.from("getAllResponseHeaders"in R&&R.getAllResponseHeaders()),Q={data:!p||p==="text"||p==="json"?R.responseText:R.response,status:R.status,statusText:R.statusText,headers:G,config:s,request:R};O_(function(ie){a(ie),M()},function(ie){r(ie),M()},Q),R=null}"onloadend"in R?R.onloadend=I:R.onreadystatechange=function(){!R||R.readyState!==4||R.status===0&&!(R.responseURL&&R.responseURL.indexOf("file:")===0)||setTimeout(I)},R.onabort=function(){R&&(r(new Pe("Request aborted",Pe.ECONNABORTED,s,R)),R=null)},R.onerror=function(F){const Q=F&&F.message?F.message:"Network Error",Z=new Pe(Q,Pe.ERR_NETWORK,s,R);Z.event=F||null,r(Z),R=null},R.ontimeout=function(){let F=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Q=o.transitional||A_;o.timeoutErrorMessage&&(F=o.timeoutErrorMessage),r(new Pe(F,Q.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,s,R)),R=null},h===void 0&&m.setContentType(null),"setRequestHeader"in R&&K.forEach(m.toJSON(),function(F,Q){R.setRequestHeader(Q,F)}),K.isUndefined(o.withCredentials)||(R.withCredentials=!!o.withCredentials),p&&p!=="json"&&(R.responseType=o.responseType),v&&([C,A]=Pf(v,!0),R.addEventListener("progress",C)),b&&R.upload&&([N,D]=Pf(b),R.upload.addEventListener("progress",N),R.upload.addEventListener("loadend",D)),(o.cancelToken||o.signal)&&(_=G=>{R&&(r(!G||G.type?new Fr(null,s,R):G),R.abort(),R=null)},o.cancelToken&&o.cancelToken.subscribe(_),o.signal&&(o.signal.aborted?_():o.signal.addEventListener("abort",_)));const H=HS(o.url);if(H&&on.protocols.indexOf(H)===-1){r(new Pe("Unsupported protocol "+H+":",Pe.ERR_BAD_REQUEST,s));return}R.send(h||null)})},GS=(s,n)=>{const{length:a}=s=s?s.filter(Boolean):[];if(n||a){let r=new AbortController,o;const h=function(v){if(!o){o=!0,p();const _=v instanceof Error?v:this.reason;r.abort(_ instanceof Pe?_:new Fr(_ instanceof Error?_.message:_))}};let m=n&&setTimeout(()=>{m=null,h(new Pe(`timeout ${n} of ms exceeded`,Pe.ETIMEDOUT))},n);const p=()=>{s&&(m&&clearTimeout(m),m=null,s.forEach(v=>{v.unsubscribe?v.unsubscribe(h):v.removeEventListener("abort",h)}),s=null)};s.forEach(v=>v.addEventListener("abort",h));const{signal:b}=r;return b.unsubscribe=()=>K.asap(p),b}},FS=function*(s,n){let a=s.byteLength;if(a<n){yield s;return}let r=0,o;for(;r<a;)o=r+n,yield s.slice(r,o),r=o},XS=async function*(s,n){for await(const a of QS(s))yield*FS(a,n)},QS=async function*(s){if(s[Symbol.asyncIterator]){yield*s;return}const n=s.getReader();try{for(;;){const{done:a,value:r}=await n.read();if(a)break;yield r}}finally{await n.cancel()}},Bv=(s,n,a,r)=>{const o=XS(s,n);let h=0,m,p=b=>{m||(m=!0,r&&r(b))};return new ReadableStream({async pull(b){try{const{done:v,value:_}=await o.next();if(v){p(),b.close();return}let N=_.byteLength;if(a){let C=h+=N;a(C)}b.enqueue(new Uint8Array(_))}catch(v){throw p(v),v}},cancel(b){return p(b),o.return()}},{highWaterMark:2})},Vv=64*1024,{isFunction:Nf}=K,D_=(({fetch:s,Request:n,Response:a})=>({fetch:s,Request:n,Response:a}))(K.global),{ReadableStream:qv,TextEncoder:Pv}=K.global,Yv=(s,...n)=>{try{return!!s(...n)}catch{return!1}},ZS=s=>{const{fetch:n,Request:a,Response:r}=Object.assign({},D_,s),o=Nf(n),h=Nf(a),m=Nf(r);if(!o)return!1;const p=o&&Nf(qv),b=o&&(typeof Pv=="function"?(A=>M=>A.encode(M))(new Pv):async A=>new Uint8Array(await new a(A).arrayBuffer())),v=h&&p&&Yv(()=>{let A=!1;const M=new a(on.origin,{body:new qv,method:"POST",get duplex(){return A=!0,"half"}}).headers.has("Content-Type");return A&&!M}),_=m&&p&&Yv(()=>K.isReadableStream(new r("").body)),N={stream:_&&(A=>A.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(A=>{!N[A]&&(N[A]=(M,R)=>{let I=M&&M[A];if(I)return I.call(M);throw new Pe(`Response type '${A}' is not supported`,Pe.ERR_NOT_SUPPORT,R)})});const C=async A=>{if(A==null)return 0;if(K.isBlob(A))return A.size;if(K.isSpecCompliantForm(A))return(await new a(on.origin,{method:"POST",body:A}).arrayBuffer()).byteLength;if(K.isArrayBufferView(A)||K.isArrayBuffer(A))return A.byteLength;if(K.isURLSearchParams(A)&&(A=A+""),K.isString(A))return(await b(A)).byteLength},D=async(A,M)=>{const R=K.toFiniteNumber(A.getContentLength());return R??C(M)};return async A=>{let{url:M,method:R,data:I,signal:H,cancelToken:G,timeout:F,onDownloadProgress:Q,onUploadProgress:Z,responseType:ie,headers:ne,withCredentials:re="same-origin",fetchOptions:ge}=C_(A);ie=ie?(ie+"").toLowerCase():"text";let Se=GS([H,G&&G.toAbortSignal()],F),Ae=null;const Te=Se&&Se.unsubscribe&&(()=>{Se.unsubscribe()});let se;try{if(Z&&v&&R!=="get"&&R!=="head"&&(se=await D(ne,I))!==0){let w=new a(M,{method:"POST",body:I,duplex:"half"}),T;if(K.isFormData(I)&&(T=w.headers.get("content-type"))&&ne.setContentType(T),w.body){const[le,oe]=Uv(se,Pf(Hv(Z)));I=Bv(w.body,Vv,le,oe)}}K.isString(re)||(re=re?"include":"omit");const Ne=h&&"credentials"in a.prototype,B={...ge,signal:Se,method:R.toUpperCase(),headers:ne.normalize().toJSON(),body:I,duplex:"half",credentials:Ne?re:void 0};Ae=h&&new a(M,B);let te=await(h?n(Ae,ge):n(M,B));const he=_&&(ie==="stream"||ie==="response");if(_&&(Q||he&&Te)){const w={};["status","statusText","headers"].forEach(pe=>{w[pe]=te[pe]});const T=K.toFiniteNumber(te.headers.get("content-length")),[le,oe]=Q&&Uv(T,Pf(Hv(Q),!0))||[];te=new r(Bv(te.body,Vv,le,()=>{oe&&oe(),Te&&Te()}),w)}ie=ie||"text";let ke=await N[K.findKey(N,ie)||"text"](te,A);return!he&&Te&&Te(),await new Promise((w,T)=>{O_(w,T,{data:ke,headers:Rn.from(te.headers),status:te.status,statusText:te.statusText,config:A,request:Ae})})}catch(Ne){throw Te&&Te(),Ne&&Ne.name==="TypeError"&&/Load failed|fetch/i.test(Ne.message)?Object.assign(new Pe("Network Error",Pe.ERR_NETWORK,A,Ae),{cause:Ne.cause||Ne}):Pe.from(Ne,Ne&&Ne.code,A,Ae)}}},WS=new Map,R_=s=>{let n=K.merge.call({skipUndefined:!0},D_,s?s.env:null);const{fetch:a,Request:r,Response:o}=n,h=[r,o,a];let m=h.length,p=m,b,v,_=WS;for(;p--;)b=h[p],v=_.get(b),v===void 0&&_.set(b,v=p?new Map:ZS(n)),_=v;return v};R_();const vm={http:gS,xhr:IS,fetch:{get:R_}};K.forEach(vm,(s,n)=>{if(s){try{Object.defineProperty(s,"name",{value:n})}catch{}Object.defineProperty(s,"adapterName",{value:n})}});const Kv=s=>`- ${s}`,JS=s=>K.isFunction(s)||s===null||s===!1,L_={getAdapter:(s,n)=>{s=K.isArray(s)?s:[s];const{length:a}=s;let r,o;const h={};for(let m=0;m<a;m++){r=s[m];let p;if(o=r,!JS(r)&&(o=vm[(p=String(r)).toLowerCase()],o===void 0))throw new Pe(`Unknown adapter '${p}'`);if(o&&(K.isFunction(o)||(o=o.get(n))))break;h[p||"#"+m]=o}if(!o){const m=Object.entries(h).map(([b,v])=>`adapter ${b} `+(v===!1?"is not supported by the environment":"is not available in the build"));let p=a?m.length>1?`since :
`+m.map(Kv).join(`
`):" "+Kv(m[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return o},adapters:vm};function Fh(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new Fr(null,s)}function Iv(s){return Fh(s),s.headers=Rn.from(s.headers),s.data=Gh.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),L_.getAdapter(s.adapter||Mc.adapter,s)(s).then(function(r){return Fh(s),r.data=Gh.call(s,s.transformResponse,r),r.headers=Rn.from(r.headers),r},function(r){return T_(r)||(Fh(s),r&&r.response&&(r.response.data=Gh.call(s,s.transformResponse,r.response),r.response.headers=Rn.from(r.response.headers))),Promise.reject(r)})}const M_="1.12.0",id={};["object","boolean","number","function","string","symbol"].forEach((s,n)=>{id[s]=function(r){return typeof r===s||"a"+(n<1?"n ":" ")+s}});const Gv={};id.transitional=function(n,a,r){function o(h,m){return"[Axios v"+M_+"] Transitional option '"+h+"'"+m+(r?". "+r:"")}return(h,m,p)=>{if(n===!1)throw new Pe(o(m," has been removed"+(a?" in "+a:"")),Pe.ERR_DEPRECATED);return a&&!Gv[m]&&(Gv[m]=!0,console.warn(o(m," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(h,m,p):!0}};id.spelling=function(n){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${n}`),!0)};function eN(s,n,a){if(typeof s!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);const r=Object.keys(s);let o=r.length;for(;o-- >0;){const h=r[o],m=n[h];if(m){const p=s[h],b=p===void 0||m(p,h,s);if(b!==!0)throw new Pe("option "+h+" must be "+b,Pe.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Pe("Unknown option "+h,Pe.ERR_BAD_OPTION)}}const Uf={assertOptions:eN,validators:id},Ki=Uf.validators;let Sl=class{constructor(n){this.defaults=n||{},this.interceptors={request:new zv,response:new zv}}async request(n,a){try{return await this._request(n,a)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const h=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?h&&!String(r.stack).endsWith(h.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+h):r.stack=h}catch{}}throw r}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=wl(this.defaults,a);const{transitional:r,paramsSerializer:o,headers:h}=a;r!==void 0&&Uf.assertOptions(r,{silentJSONParsing:Ki.transitional(Ki.boolean),forcedJSONParsing:Ki.transitional(Ki.boolean),clarifyTimeoutError:Ki.transitional(Ki.boolean)},!1),o!=null&&(K.isFunction(o)?a.paramsSerializer={serialize:o}:Uf.assertOptions(o,{encode:Ki.function,serialize:Ki.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Uf.assertOptions(a,{baseUrl:Ki.spelling("baseURL"),withXsrfToken:Ki.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let m=h&&K.merge(h.common,h[a.method]);h&&K.forEach(["delete","get","head","post","put","patch","common"],A=>{delete h[A]}),a.headers=Rn.concat(m,h);const p=[];let b=!0;this.interceptors.request.forEach(function(M){typeof M.runWhen=="function"&&M.runWhen(a)===!1||(b=b&&M.synchronous,p.unshift(M.fulfilled,M.rejected))});const v=[];this.interceptors.response.forEach(function(M){v.push(M.fulfilled,M.rejected)});let _,N=0,C;if(!b){const A=[Iv.bind(this),void 0];for(A.unshift(...p),A.push(...v),C=A.length,_=Promise.resolve(a);N<C;)_=_.then(A[N++],A[N++]);return _}C=p.length;let D=a;for(N=0;N<C;){const A=p[N++],M=p[N++];try{D=A(D)}catch(R){M.call(this,R);break}}try{_=Iv.call(this,D)}catch(A){return Promise.reject(A)}for(N=0,C=v.length;N<C;)_=_.then(v[N++],v[N++]);return _}getUri(n){n=wl(this.defaults,n);const a=j_(n.baseURL,n.url,n.allowAbsoluteUrls);return N_(a,n.params,n.paramsSerializer)}};K.forEach(["delete","get","head","options"],function(n){Sl.prototype[n]=function(a,r){return this.request(wl(r||{},{method:n,url:a,data:(r||{}).data}))}});K.forEach(["post","put","patch"],function(n){function a(r){return function(h,m,p){return this.request(wl(p||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:h,data:m}))}}Sl.prototype[n]=a(),Sl.prototype[n+"Form"]=a(!0)});let tN=class z_{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(h){a=h});const r=this;this.promise.then(o=>{if(!r._listeners)return;let h=r._listeners.length;for(;h-- >0;)r._listeners[h](o);r._listeners=null}),this.promise.then=o=>{let h;const m=new Promise(p=>{r.subscribe(p),h=p}).then(o);return m.cancel=function(){r.unsubscribe(h)},m},n(function(h,m,p){r.reason||(r.reason=new Fr(h,m,p),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=r=>{n.abort(r)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new z_(function(o){n=o}),cancel:n}}};function nN(s){return function(a){return s.apply(null,a)}}function iN(s){return K.isObject(s)&&s.isAxiosError===!0}const bm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bm).forEach(([s,n])=>{bm[n]=s});function k_(s){const n=new Sl(s),a=d_(Sl.prototype.request,n);return K.extend(a,Sl.prototype,n,{allOwnKeys:!0}),K.extend(a,n,null,{allOwnKeys:!0}),a.create=function(o){return k_(wl(s,o))},a}const Rt=k_(Mc);Rt.Axios=Sl;Rt.CanceledError=Fr;Rt.CancelToken=tN;Rt.isCancel=T_;Rt.VERSION=M_;Rt.toFormData=nd;Rt.AxiosError=Pe;Rt.Cancel=Rt.CanceledError;Rt.all=function(n){return Promise.all(n)};Rt.spread=nN;Rt.isAxiosError=iN;Rt.mergeConfig=wl;Rt.AxiosHeaders=Rn;Rt.formToJSON=s=>w_(K.isHTMLForm(s)?new FormData(s):s);Rt.getAdapter=L_.getAdapter;Rt.HttpStatusCode=bm;Rt.default=Rt;const{Axios:Kj,AxiosError:Ij,CanceledError:Gj,isCancel:Fj,CancelToken:Xj,VERSION:Qj,all:Zj,Cancel:Wj,isAxiosError:Jj,spread:eC,toFormData:tC,AxiosHeaders:nC,HttpStatusCode:iC,formToJSON:aC,getAdapter:sC,mergeConfig:lC}=Rt,et=Rt.create({baseURL:"http://127.0.0.1:8000/api"});et.interceptors.request.use(s=>{const n=localStorage.getItem("access_token");return n&&(s.headers.Authorization=`Bearer ${n}`),s});const U_=j.createContext(null),Ua=()=>j.useContext(U_);function aN({children:s}){const[n,a]=j.useState(JSON.parse(localStorage.getItem("user"))||null),r=async(p,b)=>{const v=await et.post("/auth/login/",{username:p,password:b});localStorage.setItem("access_token",v.data.access),localStorage.setItem("refresh_token",v.data.refresh),await h()},o=async({email:p,password:b,first_name:v,last_name:_,company_name:N,company_legal_id:C})=>{await et.post("/accounts/register-rh/",{email:p,password:b,first_name:v,last_name:_,company_name:N,company_legal_id:C}),await r(p,b)},h=async()=>{try{const{data:p}=await et.get("/accounts/me/"),b={id:p.id,email:p.email,username:p.username,first_name:p.first_name,last_name:p.last_name,role:p.profile?.role||"EMPLOYEE",company:p.profile?.company||null};a(b),localStorage.setItem("user",JSON.stringify(b))}catch{m()}},m=()=>{localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("user"),a(null)};return j.useEffect(()=>{localStorage.getItem("access_token")&&!n&&h()},[]),f.jsx(U_.Provider,{value:{user:n,setUser:a,login:r,registerRH:o,fetchMe:h,logout:m},children:s})}const sN=(s,n,a,r)=>{const o=[a,{code:n,...r||{}}];if(s?.services?.logger?.forward)return s.services.logger.forward(o,"warn","react-i18next::",!0);Nl(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),s?.services?.logger?.warn?s.services.logger.warn(...o):console?.warn&&console.warn(...o)},Fv={},_m=(s,n,a,r)=>{Nl(a)&&Fv[a]||(Nl(a)&&(Fv[a]=new Date),sN(s,n,a,r))},H_=(s,n)=>()=>{if(s.isInitialized)n();else{const a=()=>{setTimeout(()=>{s.off("initialized",a)},0),n()};s.on("initialized",a)}},ym=(s,n,a)=>{s.loadNamespaces(n,H_(s,a))},Xv=(s,n,a,r)=>{if(Nl(a)&&(a=[a]),s.options.preload&&s.options.preload.indexOf(n)>-1)return ym(s,a,r);a.forEach(o=>{s.options.ns.indexOf(o)<0&&s.options.ns.push(o)}),s.loadLanguages(n,H_(s,r))},lN=(s,n,a={})=>!n.languages||!n.languages.length?(_m(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0):n.hasLoadedNamespace(s,{lng:a.lng,precheck:(r,o)=>{if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,s))return!1}}),Nl=s=>typeof s=="string",rN=s=>typeof s=="object"&&s!==null,oN=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,cN={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},uN=s=>cN[s],fN=s=>s.replace(oN,uN);let xm={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:fN};const dN=(s={})=>{xm={...xm,...s}},hN=()=>xm;let $_;const mN=s=>{$_=s},pN=()=>$_,gN={type:"3rdParty",init(s){dN(s.options.react),mN(s)}},vN=j.createContext();class bN{constructor(){this.usedNamespaces={}}addUsedNamespaces(n){n.forEach(a=>{this.usedNamespaces[a]||(this.usedNamespaces[a]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const _N=(s,n)=>{const a=j.useRef();return j.useEffect(()=>{a.current=s},[s,n]),a.current},B_=(s,n,a,r)=>s.getFixedT(n,a,r),yN=(s,n,a,r)=>j.useCallback(B_(s,n,a,r),[s,n,a,r]),Bs=(s,n={})=>{const{i18n:a}=n,{i18n:r,defaultNS:o}=j.useContext(vN)||{},h=a||r||pN();if(h&&!h.reportNamespaces&&(h.reportNamespaces=new bN),!h){_m(h,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const F=(Z,ie)=>Nl(ie)?ie:rN(ie)&&Nl(ie.defaultValue)?ie.defaultValue:Array.isArray(Z)?Z[Z.length-1]:Z,Q=[F,{},!1];return Q.t=F,Q.i18n={},Q.ready=!1,Q}h.options.react?.wait&&_m(h,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const m={...hN(),...h.options.react,...n},{useSuspense:p,keyPrefix:b}=m;let v=o||h.options?.defaultNS;v=Nl(v)?[v]:v||["translation"],h.reportNamespaces.addUsedNamespaces?.(v);const _=(h.isInitialized||h.initializedStoreOnce)&&v.every(F=>lN(F,h,m)),N=yN(h,n.lng||null,m.nsMode==="fallback"?v:v[0],b),C=()=>N,D=()=>B_(h,n.lng||null,m.nsMode==="fallback"?v:v[0],b),[A,M]=j.useState(C);let R=v.join();n.lng&&(R=`${n.lng}${R}`);const I=_N(R),H=j.useRef(!0);j.useEffect(()=>{const{bindI18n:F,bindI18nStore:Q}=m;H.current=!0,!_&&!p&&(n.lng?Xv(h,n.lng,v,()=>{H.current&&M(D)}):ym(h,v,()=>{H.current&&M(D)})),_&&I&&I!==R&&H.current&&M(D);const Z=()=>{H.current&&M(D)};return F&&h?.on(F,Z),Q&&h?.store.on(Q,Z),()=>{H.current=!1,h&&F&&F?.split(" ").forEach(ie=>h.off(ie,Z)),Q&&h&&Q.split(" ").forEach(ie=>h.store.off(ie,Z))}},[h,R]),j.useEffect(()=>{H.current&&_&&M(C)},[h,b,_]);const G=[A,h,_];if(G.t=A,G.i18n=h,G.ready=_,_||!_&&!p)return G;throw new Promise(F=>{n.lng?Xv(h,n.lng,v,()=>F()):ym(h,v,()=>F())})},xN=()=>{const{t:s}=Bs(),{user:n}=Ua(),a=(()=>{const r=n?.profile?.role;return r==="ADMIN"?{to:"/admin",label:s("home.hero.cta_admin","Ouvrir le dashboard Admin")}:r==="RH"?{to:"/employees",label:s("home.hero.cta_rh","Gérer mes employés")}:r==="EMPLOYEE"?{to:"/me",label:s("home.hero.cta_employee","Accéder à mon portail bAV")}:{to:"/register",label:s("home.hero.cta","Créer un compte RH")}})();return f.jsxs(f.Fragment,{children:[f.jsx("section",{className:"bg-white text-center py-5",children:f.jsxs("div",{className:"container",children:[f.jsx("h1",{className:"display-5 fw-bold text-primary mb-3",children:s("home.hero.title")}),f.jsx("p",{className:"lead text-muted mb-4",children:s("home.hero.subtitle")}),f.jsxs("div",{className:"d-flex gap-2 justify-content-center flex-wrap",children:[f.jsx(ft,{to:a.to,className:"btn btn-primary btn-lg rounded-pill px-4 shadow",children:a.label}),!n&&f.jsx(ft,{to:"/login",className:"btn btn-outline-primary btn-lg rounded-pill px-4",children:s("home.hero.secondary_login","Se connecter")}),n?.profile?.role==="RH"&&f.jsx(ft,{to:"/accounts/company/me",className:"btn btn-outline-primary btn-lg rounded-pill px-4",children:s("home.hero.secondary_company","Paramètres entreprise")}),n?.profile?.role==="ADMIN"&&f.jsx(ft,{to:"/plans",className:"btn btn-outline-primary btn-lg rounded-pill px-4",children:s("home.hero.secondary_plans","Catalogue de plans")})]})]})}),f.jsx("section",{className:"bg-light py-5",children:f.jsxs("div",{className:"container text-center",children:[f.jsx("h2",{className:"fw-bold mb-5",children:s("home.advantages.title")}),f.jsxs("div",{className:"row g-4",children:[f.jsx("div",{className:"col-md-4",children:f.jsxs("div",{className:"card border-0 shadow-sm h-100 p-4",children:[f.jsx("h5",{className:"fw-bold text-primary mb-2",children:s("home.advantages.item1.title")}),f.jsx("p",{className:"text-muted",children:s("home.advantages.item1.desc")}),f.jsx("div",{className:"mt-2",children:f.jsx(ft,{to:"/me",className:"btn btn-sm btn-outline-primary",children:s("home.advantages.item1.link","Simuler ma pension")})})]})}),f.jsx("div",{className:"col-md-4",children:f.jsxs("div",{className:"card border-0 shadow-sm h-100 p-4",children:[f.jsx("h5",{className:"fw-bold text-primary mb-2",children:s("home.advantages.item2.title")}),f.jsx("p",{className:"text-muted",children:s("home.advantages.item2.desc")}),f.jsx("div",{className:"mt-2",children:f.jsx(ft,{to:"/employees",className:"btn btn-sm btn-outline-primary",children:s("home.advantages.item2.link","Gérer mes employés")})})]})}),f.jsx("div",{className:"col-md-4",children:f.jsxs("div",{className:"card border-0 shadow-sm h-100 p-4",children:[f.jsx("h5",{className:"fw-bold text-primary mb-2",children:s("home.advantages.item3.title")}),f.jsx("p",{className:"text-muted",children:s("home.advantages.item3.desc")}),f.jsx("div",{className:"mt-2",children:f.jsx(ft,{to:"/admin",className:"btn btn-sm btn-outline-primary",children:s("home.advantages.item3.link","Voir les KPIs Admin")})})]})})]})]})}),f.jsx("section",{className:"bg-white py-5",children:f.jsxs("div",{className:"container text-center",children:[f.jsx("h2",{className:"fw-bold mb-5",children:s("home.testimonials.title")}),f.jsxs("div",{className:"row g-4 justify-content-center",children:[f.jsx("div",{className:"col-md-5",children:f.jsxs("blockquote",{className:"blockquote",children:[f.jsx("p",{className:"mb-3 text-muted fst-italic",children:s("home.testimonials.item1.text")}),f.jsx("footer",{className:"blockquote-footer",children:s("home.testimonials.item1.author")})]})}),f.jsx("div",{className:"col-md-5",children:f.jsxs("blockquote",{className:"blockquote",children:[f.jsx("p",{className:"mb-3 text-muted fst-italic",children:s("home.testimonials.item2.text")}),f.jsx("footer",{className:"blockquote-footer",children:s("home.testimonials.item2.author")})]})})]})]})}),f.jsx("section",{className:"bg-light py-5 text-center",children:f.jsxs("div",{className:"container",children:[f.jsx("h3",{className:"fw-bold mb-3",children:s("home.cta_final.title")}),f.jsxs("div",{className:"d-flex gap-2 justify-content-center flex-wrap",children:[f.jsx(ft,{to:a.to,className:"btn btn-outline-primary btn-lg rounded-pill px-4",children:a.label}),f.jsx(ft,{to:"/actualites",className:"btn btn-outline-secondary btn-lg rounded-pill px-4",children:s("home.cta_final.button","Découvrir l’actualité")})]})]})})]})};function EN(){const{login:s}=Ua(),n=Lm(),{t:a}=Bs(),[r,o]=j.useState(""),[h,m]=j.useState(""),[p,b]=j.useState(""),[v,_]=j.useState(!1),N=async C=>{C.preventDefault(),b(""),_(!0);try{await s(r,h),n("/")}catch{b(a("login_page.error_login"))}finally{_(!1)}};return f.jsx("div",{className:"row justify-content-center",children:f.jsxs("div",{className:"col-12 col-md-5",children:[f.jsx("h3",{children:a("login_page.title")}),f.jsx("p",{className:"text-muted mb-4",children:a("login_page.subtitle")}),p&&f.jsx("div",{className:"alert alert-danger",children:p}),f.jsxs("form",{onSubmit:N,className:"needs-validation",noValidate:!0,children:[f.jsxs("div",{className:"mb-3",children:[f.jsx("label",{className:"form-label",children:a("login_page.email")}),f.jsx("input",{type:"email",className:"form-control",value:r,onChange:C=>o(C.target.value),required:!0,disabled:v}),f.jsx("div",{className:"invalid-feedback",children:a("login_page.email_required")})]}),f.jsxs("div",{className:"mb-3",children:[f.jsx("label",{className:"form-label",children:a("login_page.password")}),f.jsx("input",{type:"password",className:"form-control",value:h,onChange:C=>m(C.target.value),required:!0,disabled:v}),f.jsx("div",{className:"invalid-feedback",children:a("login_page.password_required")})]}),f.jsx("div",{className:"mb-3",children:f.jsx(ft,{to:"/forgot-password",className:"text-decoration-none",children:a("login_page.forgot_password")})}),f.jsx("button",{type:"submit",className:"btn btn-primary w-100",disabled:v,children:a(v?"login_page.loading":"login_page.submit_btn")})]}),f.jsx("div",{className:"text-center mt-4",children:f.jsxs("p",{className:"text-muted",children:[a("login_page.no_account")," ",f.jsx(ft,{to:"/register",className:"text-decoration-none",children:a("login_page.go_to_register")})]})})]})})}function SN(){const{registerRH:s}=Ua(),n=Lm(),{t:a}=Bs(),[r,o]=j.useState({email:"",password:"",first_name:"",last_name:"",company_name:"",company_legal_id:""}),[h,m]=j.useState(""),[p,b]=j.useState(!1),v=N=>o({...r,[N.target.name]:N.target.value}),_=async N=>{N.preventDefault(),m(""),b(!0);try{if(!r.company_legal_id.trim()){m(a("register_page.company_id_required"));return}await s(r),n("/")}catch{m(a("register_page.error_register"))}finally{b(!1)}};return f.jsx("div",{className:"row justify-content-center",children:f.jsxs("div",{className:"col-12 col-md-8 col-lg-7",children:[f.jsx("h3",{children:a("register_page.rh_title")}),f.jsx("p",{className:"text-muted",children:a("register_page.rh_description")}),h&&f.jsx("div",{className:"alert alert-danger",children:h}),f.jsxs("form",{onSubmit:_,className:"needs-validation",noValidate:!0,children:[f.jsxs("div",{className:"row g-3",children:[f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:a("register_page.email")}),f.jsx("input",{name:"email",type:"email",className:"form-control",value:r.email,onChange:v,required:!0,disabled:p}),f.jsx("div",{className:"invalid-feedback",children:a("register_page.email_required")})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:a("register_page.password")}),f.jsx("input",{name:"password",type:"password",className:"form-control",value:r.password,onChange:v,required:!0,disabled:p}),f.jsx("div",{className:"invalid-feedback",children:a("register_page.password_required")})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:a("register_page.first_name")}),f.jsx("input",{name:"first_name",className:"form-control",value:r.first_name,onChange:v,disabled:p})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:a("register_page.last_name")}),f.jsx("input",{name:"last_name",className:"form-control",value:r.last_name,onChange:v,disabled:p})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:a("register_page.company_name")}),f.jsx("input",{name:"company_name",className:"form-control",value:r.company_name,onChange:v,placeholder:a("register_page.company_name_placeholder"),required:!0,disabled:p}),f.jsx("div",{className:"invalid-feedback",children:a("register_page.company_name_required")})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:a("register_page.company_legal_id")}),f.jsx("input",{name:"company_legal_id",className:"form-control",value:r.company_legal_id,onChange:v,placeholder:a("register_page.company_id_placeholder"),required:!0,disabled:p}),f.jsx("div",{className:"invalid-feedback",children:a("register_page.company_id_required_field")})]})]}),f.jsx("button",{className:"btn btn-primary w-100 mt-3",disabled:p,children:a(p?"register_page.creating_account":"register_page.create_rh_account")})]}),f.jsx("p",{className:"text-muted small mt-3",children:a("register_page.terms_acceptance")})]})})}const Ve=s=>typeof s=="string",bc=()=>{let s,n;const a=new Promise((r,o)=>{s=r,n=o});return a.resolve=s,a.reject=n,a},Qv=s=>s==null?"":""+s,NN=(s,n,a)=>{s.forEach(r=>{n[r]&&(a[r]=n[r])})},AN=/###/g,Zv=s=>s&&s.indexOf("###")>-1?s.replace(AN,"."):s,Wv=s=>!s||Ve(s),xc=(s,n,a)=>{const r=Ve(n)?n.split("."):n;let o=0;for(;o<r.length-1;){if(Wv(s))return{};const h=Zv(r[o]);!s[h]&&a&&(s[h]=new a),Object.prototype.hasOwnProperty.call(s,h)?s=s[h]:s={},++o}return Wv(s)?{}:{obj:s,k:Zv(r[o])}},Jv=(s,n,a)=>{const{obj:r,k:o}=xc(s,n,Object);if(r!==void 0||n.length===1){r[o]=a;return}let h=n[n.length-1],m=n.slice(0,n.length-1),p=xc(s,m,Object);for(;p.obj===void 0&&m.length;)h=`${m[m.length-1]}.${h}`,m=m.slice(0,m.length-1),p=xc(s,m,Object),p?.obj&&typeof p.obj[`${p.k}.${h}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${h}`]=a},wN=(s,n,a,r)=>{const{obj:o,k:h}=xc(s,n,Object);o[h]=o[h]||[],o[h].push(a)},Yf=(s,n)=>{const{obj:a,k:r}=xc(s,n);if(a&&Object.prototype.hasOwnProperty.call(a,r))return a[r]},TN=(s,n,a)=>{const r=Yf(s,a);return r!==void 0?r:Yf(n,a)},V_=(s,n,a)=>{for(const r in n)r!=="__proto__"&&r!=="constructor"&&(r in s?Ve(s[r])||s[r]instanceof String||Ve(n[r])||n[r]instanceof String?a&&(s[r]=n[r]):V_(s[r],n[r],a):s[r]=n[r]);return s},Cr=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ON={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const jN=s=>Ve(s)?s.replace(/[&<>"'\/]/g,n=>ON[n]):s;class CN{constructor(n){this.capacity=n,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(n){const a=this.regExpMap.get(n);if(a!==void 0)return a;const r=new RegExp(n);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(n,r),this.regExpQueue.push(n),r}}const DN=[" ",",","?","!",";"],RN=new CN(20),LN=(s,n,a)=>{n=n||"",a=a||"";const r=DN.filter(m=>n.indexOf(m)<0&&a.indexOf(m)<0);if(r.length===0)return!0;const o=RN.getRegExp(`(${r.map(m=>m==="?"?"\\?":m).join("|")})`);let h=!o.test(s);if(!h){const m=s.indexOf(a);m>0&&!o.test(s.substring(0,m))&&(h=!0)}return h},Em=(s,n,a=".")=>{if(!s)return;if(s[n])return Object.prototype.hasOwnProperty.call(s,n)?s[n]:void 0;const r=n.split(a);let o=s;for(let h=0;h<r.length;){if(!o||typeof o!="object")return;let m,p="";for(let b=h;b<r.length;++b)if(b!==h&&(p+=a),p+=r[b],m=o[p],m!==void 0){if(["string","number","boolean"].indexOf(typeof m)>-1&&b<r.length-1)continue;h+=b-h+1;break}o=m}return o},Ac=s=>s?.replace("_","-"),MN={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,n){console?.[s]?.apply?.(console,n)}};class Kf{constructor(n,a={}){this.init(n,a)}init(n,a={}){this.prefix=a.prefix||"i18next:",this.logger=n||MN,this.options=a,this.debug=a.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,a,r,o){return o&&!this.debug?null:(Ve(n[0])&&(n[0]=`${r}${this.prefix} ${n[0]}`),this.logger[a](n))}create(n){return new Kf(this.logger,{prefix:`${this.prefix}:${n}:`,...this.options})}clone(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new Kf(this.logger,n)}}var Ii=new Kf;class ad{constructor(){this.observers={}}on(n,a){return n.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(a)||0;this.observers[r].set(a,o+1)}),this}off(n,a){if(this.observers[n]){if(!a){delete this.observers[n];return}this.observers[n].delete(a)}}emit(n,...a){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([o,h])=>{for(let m=0;m<h;m++)o(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,h])=>{for(let m=0;m<h;m++)o.apply(o,[n,...a])})}}class eb extends ad{constructor(n,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=n||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(n){this.options.ns.indexOf(n)<0&&this.options.ns.push(n)}removeNamespaces(n){const a=this.options.ns.indexOf(n);a>-1&&this.options.ns.splice(a,1)}getResource(n,a,r,o={}){const h=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,m=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;n.indexOf(".")>-1?p=n.split("."):(p=[n,a],r&&(Array.isArray(r)?p.push(...r):Ve(r)&&h?p.push(...r.split(h)):p.push(r)));const b=Yf(this.data,p);return!b&&!a&&!r&&n.indexOf(".")>-1&&(n=p[0],a=p[1],r=p.slice(2).join(".")),b||!m||!Ve(r)?b:Em(this.data?.[n]?.[a],r,h)}addResource(n,a,r,o,h={silent:!1}){const m=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator;let p=[n,a];r&&(p=p.concat(m?r.split(m):r)),n.indexOf(".")>-1&&(p=n.split("."),o=a,a=p[1]),this.addNamespaces(a),Jv(this.data,p,o),h.silent||this.emit("added",n,a,r,o)}addResources(n,a,r,o={silent:!1}){for(const h in r)(Ve(r[h])||Array.isArray(r[h]))&&this.addResource(n,a,h,r[h],{silent:!0});o.silent||this.emit("added",n,a,r)}addResourceBundle(n,a,r,o,h,m={silent:!1,skipCopy:!1}){let p=[n,a];n.indexOf(".")>-1&&(p=n.split("."),o=r,r=a,a=p[1]),this.addNamespaces(a);let b=Yf(this.data,p)||{};m.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?V_(b,r,h):b={...b,...r},Jv(this.data,p,b),m.silent||this.emit("added",n,a,r)}removeResourceBundle(n,a){this.hasResourceBundle(n,a)&&delete this.data[n][a],this.removeNamespaces(a),this.emit("removed",n,a)}hasResourceBundle(n,a){return this.getResource(n,a)!==void 0}getResourceBundle(n,a){return a||(a=this.options.defaultNS),this.getResource(n,a)}getDataByLanguage(n){return this.data[n]}hasLanguageSomeTranslations(n){const a=this.getDataByLanguage(n);return!!(a&&Object.keys(a)||[]).find(o=>a[o]&&Object.keys(a[o]).length>0)}toJSON(){return this.data}}var q_={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,n,a,r,o){return s.forEach(h=>{n=this.processors[h]?.process(n,a,r,o)??n}),n}};const P_=Symbol("i18next/PATH_KEY");function zN(){const s=[],n=Object.create(null);let a;return n.get=(r,o)=>(a?.revoke?.(),o===P_?s:(s.push(o),a=Proxy.revocable(r,n),a.proxy)),Proxy.revocable(Object.create(null),n).proxy}function Sm(s,n){const{[P_]:a}=s(zN());return a.join(n?.keySeparator??".")}const tb={},nb=s=>!Ve(s)&&typeof s!="boolean"&&typeof s!="number";class If extends ad{constructor(n,a={}){super(),NN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],n,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ii.create("translator")}changeLanguage(n){n&&(this.language=n)}exists(n,a={interpolation:{}}){const r={...a};return n==null?!1:this.resolve(n,r)?.res!==void 0}extractFromKey(n,a){let r=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let h=a.ns||this.options.defaultNS||[];const m=r&&n.indexOf(r)>-1,p=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!LN(n,r,o);if(m&&!p){const b=n.match(this.interpolator.nestingRegexp);if(b&&b.length>0)return{key:n,namespaces:Ve(h)?[h]:h};const v=n.split(r);(r!==o||r===o&&this.options.ns.indexOf(v[0])>-1)&&(h=v.shift()),n=v.join(o)}return{key:n,namespaces:Ve(h)?[h]:h}}translate(n,a,r){let o=typeof a=="object"?{...a}:a;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),n==null)return"";typeof n=="function"&&(n=Sm(n,{...this.options,...o})),Array.isArray(n)||(n=[String(n)]);const h=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,m=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:p,namespaces:b}=this.extractFromKey(n[n.length-1],o),v=b[b.length-1];let _=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;_===void 0&&(_=":");const N=o.lng||this.language,C=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(N?.toLowerCase()==="cimode")return C?h?{res:`${v}${_}${p}`,usedKey:p,exactUsedKey:p,usedLng:N,usedNS:v,usedParams:this.getUsedParamsDetails(o)}:`${v}${_}${p}`:h?{res:p,usedKey:p,exactUsedKey:p,usedLng:N,usedNS:v,usedParams:this.getUsedParamsDetails(o)}:p;const D=this.resolve(n,o);let A=D?.res;const M=D?.usedKey||p,R=D?.exactUsedKey||p,I=["[object Number]","[object Function]","[object RegExp]"],H=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,G=!this.i18nFormat||this.i18nFormat.handleAsObject,F=o.count!==void 0&&!Ve(o.count),Q=If.hasDefaultValue(o),Z=F?this.pluralResolver.getSuffix(N,o.count,o):"",ie=o.ordinal&&F?this.pluralResolver.getSuffix(N,o.count,{ordinal:!1}):"",ne=F&&!o.ordinal&&o.count===0,re=ne&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${Z}`]||o[`defaultValue${ie}`]||o.defaultValue;let ge=A;G&&!A&&Q&&(ge=re);const Se=nb(ge),Ae=Object.prototype.toString.apply(ge);if(G&&ge&&Se&&I.indexOf(Ae)<0&&!(Ve(H)&&Array.isArray(ge))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Te=this.options.returnedObjectHandler?this.options.returnedObjectHandler(M,ge,{...o,ns:b}):`key '${p} (${this.language})' returned an object instead of string.`;return h?(D.res=Te,D.usedParams=this.getUsedParamsDetails(o),D):Te}if(m){const Te=Array.isArray(ge),se=Te?[]:{},Ne=Te?R:M;for(const B in ge)if(Object.prototype.hasOwnProperty.call(ge,B)){const te=`${Ne}${m}${B}`;Q&&!A?se[B]=this.translate(te,{...o,defaultValue:nb(re)?re[B]:void 0,joinArrays:!1,ns:b}):se[B]=this.translate(te,{...o,joinArrays:!1,ns:b}),se[B]===te&&(se[B]=ge[B])}A=se}}else if(G&&Ve(H)&&Array.isArray(A))A=A.join(H),A&&(A=this.extendTranslation(A,n,o,r));else{let Te=!1,se=!1;!this.isValidLookup(A)&&Q&&(Te=!0,A=re),this.isValidLookup(A)||(se=!0,A=p);const B=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&se?void 0:A,te=Q&&re!==A&&this.options.updateMissing;if(se||Te||te){if(this.logger.log(te?"updateKey":"missingKey",N,v,p,te?re:A),m){const T=this.resolve(p,{...o,keySeparator:!1});T&&T.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 he=[];const ke=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ke&&ke[0])for(let T=0;T<ke.length;T++)he.push(ke[T]);else this.options.saveMissingTo==="all"?he=this.languageUtils.toResolveHierarchy(o.lng||this.language):he.push(o.lng||this.language);const w=(T,le,oe)=>{const pe=Q&&oe!==A?oe:B;this.options.missingKeyHandler?this.options.missingKeyHandler(T,v,le,pe,te,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(T,v,le,pe,te,o),this.emit("missingKey",T,v,le,A)};this.options.saveMissing&&(this.options.saveMissingPlurals&&F?he.forEach(T=>{const le=this.pluralResolver.getSuffixes(T,o);ne&&o[`defaultValue${this.options.pluralSeparator}zero`]&&le.indexOf(`${this.options.pluralSeparator}zero`)<0&&le.push(`${this.options.pluralSeparator}zero`),le.forEach(oe=>{w([T],p+oe,o[`defaultValue${oe}`]||re)})}):w(he,p,re))}A=this.extendTranslation(A,n,o,D,r),se&&A===p&&this.options.appendNamespaceToMissingKey&&(A=`${v}${_}${p}`),(se||Te)&&this.options.parseMissingKeyHandler&&(A=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}${_}${p}`:p,Te?A:void 0,o))}return h?(D.res=A,D.usedParams=this.getUsedParamsDetails(o),D):A}extendTranslation(n,a,r,o,h){if(this.i18nFormat?.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const b=Ve(n)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(b){const N=n.match(this.interpolator.nestingRegexp);v=N&&N.length}let _=r.replace&&!Ve(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(_={...this.options.interpolation.defaultVariables,..._}),n=this.interpolator.interpolate(n,_,r.lng||this.language||o.usedLng,r),b){const N=n.match(this.interpolator.nestingRegexp),C=N&&N.length;v<C&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(n=this.interpolator.nest(n,(...N)=>h?.[0]===N[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${N[0]} in key: ${a[0]}`),null):this.translate(...N,a),r)),r.interpolation&&this.interpolator.reset()}const m=r.postProcess||this.options.postProcess,p=Ve(m)?[m]:m;return n!=null&&p?.length&&r.applyPostProcessor!==!1&&(n=q_.handle(p,n,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),n}resolve(n,a={}){let r,o,h,m,p;return Ve(n)&&(n=[n]),n.forEach(b=>{if(this.isValidLookup(r))return;const v=this.extractFromKey(b,a),_=v.key;o=_;let N=v.namespaces;this.options.fallbackNS&&(N=N.concat(this.options.fallbackNS));const C=a.count!==void 0&&!Ve(a.count),D=C&&!a.ordinal&&a.count===0,A=a.context!==void 0&&(Ve(a.context)||typeof a.context=="number")&&a.context!=="",M=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);N.forEach(R=>{this.isValidLookup(r)||(p=R,!tb[`${M[0]}-${R}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(p)&&(tb[`${M[0]}-${R}`]=!0,this.logger.warn(`key "${o}" for languages "${M.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!!!")),M.forEach(I=>{if(this.isValidLookup(r))return;m=I;const H=[_];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(H,_,I,R,a);else{let F;C&&(F=this.pluralResolver.getSuffix(I,a.count,a));const Q=`${this.options.pluralSeparator}zero`,Z=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(a.ordinal&&F.indexOf(Z)===0&&H.push(_+F.replace(Z,this.options.pluralSeparator)),H.push(_+F),D&&H.push(_+Q)),A){const ie=`${_}${this.options.contextSeparator||"_"}${a.context}`;H.push(ie),C&&(a.ordinal&&F.indexOf(Z)===0&&H.push(ie+F.replace(Z,this.options.pluralSeparator)),H.push(ie+F),D&&H.push(ie+Q))}}let G;for(;G=H.pop();)this.isValidLookup(r)||(h=G,r=this.getResource(I,R,G,a))}))})}),{res:r,usedKey:o,exactUsedKey:h,usedLng:m,usedNS:p}}isValidLookup(n){return n!==void 0&&!(!this.options.returnNull&&n===null)&&!(!this.options.returnEmptyString&&n==="")}getResource(n,a,r,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(n,a,r,o):this.resourceStore.getResource(n,a,r,o)}getUsedParamsDetails(n={}){const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=n.replace&&!Ve(n.replace);let o=r?n.replace:n;if(r&&typeof n.count<"u"&&(o.count=n.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const h of a)delete o[h]}return o}static hasDefaultValue(n){const a="defaultValue";for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&a===r.substring(0,a.length)&&n[r]!==void 0)return!0;return!1}}class ib{constructor(n){this.options=n,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ii.create("languageUtils")}getScriptPartFromCode(n){if(n=Ac(n),!n||n.indexOf("-")<0)return null;const a=n.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(n){if(n=Ac(n),!n||n.indexOf("-")<0)return n;const a=n.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(n){if(Ve(n)&&n.indexOf("-")>-1){let a;try{a=Intl.getCanonicalLocales(n)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(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 a;return n.forEach(r=>{if(a)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(a=o)}),!a&&this.options.supportedLngs&&n.forEach(r=>{if(a)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return a=o;const h=this.getLanguagePartFromCode(r);if(this.isSupportedCode(h))return a=h;a=this.options.supportedLngs.find(m=>{if(m===h)return m;if(!(m.indexOf("-")<0&&h.indexOf("-")<0)&&(m.indexOf("-")>0&&h.indexOf("-")<0&&m.substring(0,m.indexOf("-"))===h||m.indexOf(h)===0&&h.length>1))return m})}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(n,a){if(!n)return[];if(typeof n=="function"&&(n=n(a)),Ve(n)&&(n=[n]),Array.isArray(n))return n;if(!a)return n.default||[];let r=n[a];return r||(r=n[this.getScriptPartFromCode(a)]),r||(r=n[this.formatLanguageCode(a)]),r||(r=n[this.getLanguagePartFromCode(a)]),r||(r=n.default),r||[]}toResolveHierarchy(n,a){const r=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],n),o=[],h=m=>{m&&(this.isSupportedCode(m)?o.push(m):this.logger.warn(`rejecting language code not found in supportedLngs: ${m}`))};return Ve(n)&&(n.indexOf("-")>-1||n.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&h(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&h(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&h(this.getLanguagePartFromCode(n))):Ve(n)&&h(this.formatLanguageCode(n)),r.forEach(m=>{o.indexOf(m)<0&&h(this.formatLanguageCode(m))}),o}}const ab={zero:0,one:1,two:2,few:3,many:4,other:5},sb={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class kN{constructor(n,a={}){this.languageUtils=n,this.options=a,this.logger=Ii.create("pluralResolver"),this.pluralRulesCache={}}addRule(n,a){this.rules[n]=a}clearCache(){this.pluralRulesCache={}}getRule(n,a={}){const r=Ac(n==="dev"?"en":n),o=a.ordinal?"ordinal":"cardinal",h=JSON.stringify({cleanedCode:r,type:o});if(h in this.pluralRulesCache)return this.pluralRulesCache[h];let m;try{m=new Intl.PluralRules(r,{type:o})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),sb;if(!n.match(/-|_/))return sb;const b=this.languageUtils.getLanguagePartFromCode(n);m=this.getRule(b,a)}return this.pluralRulesCache[h]=m,m}needsPlural(n,a={}){let r=this.getRule(n,a);return r||(r=this.getRule("dev",a)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(n,a,r={}){return this.getSuffixes(n,r).map(o=>`${a}${o}`)}getSuffixes(n,a={}){let r=this.getRule(n,a);return r||(r=this.getRule("dev",a)),r?r.resolvedOptions().pluralCategories.sort((o,h)=>ab[o]-ab[h]).map(o=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(n,a,r={}){const o=this.getRule(n,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(a)}`:(this.logger.warn(`no plural rule found for: ${n}`),this.getSuffix("dev",a,r))}}const lb=(s,n,a,r=".",o=!0)=>{let h=TN(s,n,a);return!h&&o&&Ve(a)&&(h=Em(s,a,r),h===void 0&&(h=Em(n,a,r))),h},Xh=s=>s.replace(/\$/g,"$$$$");class UN{constructor(n={}){this.logger=Ii.create("interpolator"),this.options=n,this.format=n?.interpolation?.format||(a=>a),this.init(n)}init(n={}){n.interpolation||(n.interpolation={escapeValue:!0});const{escape:a,escapeValue:r,useRawValueToEscape:o,prefix:h,prefixEscaped:m,suffix:p,suffixEscaped:b,formatSeparator:v,unescapeSuffix:_,unescapePrefix:N,nestingPrefix:C,nestingPrefixEscaped:D,nestingSuffix:A,nestingSuffixEscaped:M,nestingOptionsSeparator:R,maxReplaces:I,alwaysFormat:H}=n.interpolation;this.escape=a!==void 0?a:jN,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=h?Cr(h):m||"{{",this.suffix=p?Cr(p):b||"}}",this.formatSeparator=v||",",this.unescapePrefix=_?"":N||"-",this.unescapeSuffix=this.unescapePrefix?"":_||"",this.nestingPrefix=C?Cr(C):D||Cr("$t("),this.nestingSuffix=A?Cr(A):M||Cr(")"),this.nestingOptionsSeparator=R||",",this.maxReplaces=I||1e3,this.alwaysFormat=H!==void 0?H:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const n=(a,r)=>a?.source===r?(a.lastIndex=0,a):new RegExp(r,"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,a,r,o){let h,m,p;const b=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},v=D=>{if(D.indexOf(this.formatSeparator)<0){const I=lb(a,b,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(I,void 0,r,{...o,...a,interpolationkey:D}):I}const A=D.split(this.formatSeparator),M=A.shift().trim(),R=A.join(this.formatSeparator).trim();return this.format(lb(a,b,M,this.options.keySeparator,this.options.ignoreJSONStructure),R,r,{...o,...a,interpolationkey:M})};this.resetRegExp();const _=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,N=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:D=>Xh(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?Xh(this.escape(D)):Xh(D)}].forEach(D=>{for(p=0;h=D.regex.exec(n);){const A=h[1].trim();if(m=v(A),m===void 0)if(typeof _=="function"){const R=_(n,h,o);m=Ve(R)?R:""}else if(o&&Object.prototype.hasOwnProperty.call(o,A))m="";else if(N){m=h[0];continue}else this.logger.warn(`missed to pass in variable ${A} for interpolating ${n}`),m="";else!Ve(m)&&!this.useRawValueToEscape&&(m=Qv(m));const M=D.safeValue(m);if(n=n.replace(h[0],M),N?(D.regex.lastIndex+=m.length,D.regex.lastIndex-=h[0].length):D.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),n}nest(n,a,r={}){let o,h,m;const p=(b,v)=>{const _=this.nestingOptionsSeparator;if(b.indexOf(_)<0)return b;const N=b.split(new RegExp(`${_}[ ]*{`));let C=`{${N[1]}`;b=N[0],C=this.interpolate(C,m);const D=C.match(/'/g),A=C.match(/"/g);((D?.length??0)%2===0&&!A||A.length%2!==0)&&(C=C.replace(/'/g,'"'));try{m=JSON.parse(C),v&&(m={...v,...m})}catch(M){return this.logger.warn(`failed parsing options string in nesting for key ${b}`,M),`${b}${_}${C}`}return m.defaultValue&&m.defaultValue.indexOf(this.prefix)>-1&&delete m.defaultValue,b};for(;o=this.nestingRegexp.exec(n);){let b=[];m={...r},m=m.replace&&!Ve(m.replace)?m.replace:m,m.applyPostProcessor=!1,delete m.defaultValue;const v=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(v!==-1&&(b=o[1].slice(v).split(this.formatSeparator).map(_=>_.trim()).filter(Boolean),o[1]=o[1].slice(0,v)),h=a(p.call(this,o[1].trim(),m),m),h&&o[0]===n&&!Ve(h))return h;Ve(h)||(h=Qv(h)),h||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${n}`),h=""),b.length&&(h=b.reduce((_,N)=>this.format(_,N,r.lng,{...r,interpolationkey:o[1].trim()}),h.trim())),n=n.replace(o[0],h),this.regexp.lastIndex=0}return n}}const HN=s=>{let n=s.toLowerCase().trim();const a={};if(s.indexOf("(")>-1){const r=s.split("(");n=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);n==="currency"&&o.indexOf(":")<0?a.currency||(a.currency=o.trim()):n==="relativetime"&&o.indexOf(":")<0?a.range||(a.range=o.trim()):o.split(";").forEach(m=>{if(m){const[p,...b]=m.split(":"),v=b.join(":").trim().replace(/^'+|'+$/g,""),_=p.trim();a[_]||(a[_]=v),v==="false"&&(a[_]=!1),v==="true"&&(a[_]=!0),isNaN(v)||(a[_]=parseInt(v,10))}})}return{formatName:n,formatOptions:a}},rb=s=>{const n={};return(a,r,o)=>{let h=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(h={...h,[o.interpolationkey]:void 0});const m=r+JSON.stringify(h);let p=n[m];return p||(p=s(Ac(r),o),n[m]=p),p(a)}},$N=s=>(n,a,r)=>s(Ac(a),r)(n);class BN{constructor(n={}){this.logger=Ii.create("formatter"),this.options=n,this.init(n)}init(n,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";const r=a.cacheInBuiltFormats?rb:$N;this.formats={number:r((o,h)=>{const m=new Intl.NumberFormat(o,{...h});return p=>m.format(p)}),currency:r((o,h)=>{const m=new Intl.NumberFormat(o,{...h,style:"currency"});return p=>m.format(p)}),datetime:r((o,h)=>{const m=new Intl.DateTimeFormat(o,{...h});return p=>m.format(p)}),relativetime:r((o,h)=>{const m=new Intl.RelativeTimeFormat(o,{...h});return p=>m.format(p,h.range||"day")}),list:r((o,h)=>{const m=new Intl.ListFormat(o,{...h});return p=>m.format(p)})}}add(n,a){this.formats[n.toLowerCase().trim()]=a}addCached(n,a){this.formats[n.toLowerCase().trim()]=rb(a)}format(n,a,r,o={}){const h=a.split(this.formatSeparator);if(h.length>1&&h[0].indexOf("(")>1&&h[0].indexOf(")")<0&&h.find(p=>p.indexOf(")")>-1)){const p=h.findIndex(b=>b.indexOf(")")>-1);h[0]=[h[0],...h.splice(1,p)].join(this.formatSeparator)}return h.reduce((p,b)=>{const{formatName:v,formatOptions:_}=HN(b);if(this.formats[v]){let N=p;try{const C=o?.formatParams?.[o.interpolationkey]||{},D=C.locale||C.lng||o.locale||o.lng||r;N=this.formats[v](p,D,{..._,...o,...C})}catch(C){this.logger.warn(C)}return N}else this.logger.warn(`there was no format function for ${v}`);return p},n)}}const VN=(s,n)=>{s.pending[n]!==void 0&&(delete s.pending[n],s.pendingCount--)};class qN extends ad{constructor(n,a,r,o={}){super(),this.backend=n,this.store=a,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ii.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,o.backend,o)}queueLoad(n,a,r,o){const h={},m={},p={},b={};return n.forEach(v=>{let _=!0;a.forEach(N=>{const C=`${v}|${N}`;!r.reload&&this.store.hasResourceBundle(v,N)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?m[C]===void 0&&(m[C]=!0):(this.state[C]=1,_=!1,m[C]===void 0&&(m[C]=!0),h[C]===void 0&&(h[C]=!0),b[N]===void 0&&(b[N]=!0)))}),_||(p[v]=!0)}),(Object.keys(h).length||Object.keys(m).length)&&this.queue.push({pending:m,pendingCount:Object.keys(m).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(h),pending:Object.keys(m),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(b)}}loaded(n,a,r){const o=n.split("|"),h=o[0],m=o[1];a&&this.emit("failedLoading",h,m,a),!a&&r&&this.store.addResourceBundle(h,m,r,void 0,void 0,{skipCopy:!0}),this.state[n]=a?-1:2,a&&r&&(this.state[n]=0);const p={};this.queue.forEach(b=>{wN(b.loaded,[h],m),VN(b,n),a&&b.errors.push(a),b.pendingCount===0&&!b.done&&(Object.keys(b.loaded).forEach(v=>{p[v]||(p[v]={});const _=b.loaded[v];_.length&&_.forEach(N=>{p[v][N]===void 0&&(p[v][N]=!0)})}),b.done=!0,b.errors.length?b.callback(b.errors):b.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(b=>!b.done)}read(n,a,r,o=0,h=this.retryTimeout,m){if(!n.length)return m(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:n,ns:a,fcName:r,tried:o,wait:h,callback:m});return}this.readingCalls++;const p=(v,_)=>{if(this.readingCalls--,this.waitingReads.length>0){const N=this.waitingReads.shift();this.read(N.lng,N.ns,N.fcName,N.tried,N.wait,N.callback)}if(v&&_&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,n,a,r,o+1,h*2,m)},h);return}m(v,_)},b=this.backend[r].bind(this.backend);if(b.length===2){try{const v=b(n,a);v&&typeof v.then=="function"?v.then(_=>p(null,_)).catch(p):p(null,v)}catch(v){p(v)}return}return b(n,a,p)}prepareLoading(n,a,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Ve(n)&&(n=this.languageUtils.toResolveHierarchy(n)),Ve(a)&&(a=[a]);const h=this.queueLoad(n,a,r,o);if(!h.toLoad.length)return h.pending.length||o(),null;h.toLoad.forEach(m=>{this.loadOne(m)})}load(n,a,r){this.prepareLoading(n,a,{},r)}reload(n,a,r){this.prepareLoading(n,a,{reload:!0},r)}loadOne(n,a=""){const r=n.split("|"),o=r[0],h=r[1];this.read(o,h,"read",void 0,void 0,(m,p)=>{m&&this.logger.warn(`${a}loading namespace ${h} for language ${o} failed`,m),!m&&p&&this.logger.log(`${a}loaded namespace ${h} for language ${o}`,p),this.loaded(n,m,p)})}saveMissing(n,a,r,o,h,m={},p=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${r}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const b={...m,isUpdate:h},v=this.backend.create.bind(this.backend);if(v.length<6)try{let _;v.length===5?_=v(n,a,r,o,b):_=v(n,a,r,o),_&&typeof _.then=="function"?_.then(N=>p(null,N)).catch(p):p(null,_)}catch(_){p(_)}else v(n,a,r,o,p,b)}!n||!n[0]||this.store.addResource(n[0],a,r,o)}}}const ob=()=>({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:s=>{let n={};if(typeof s[1]=="object"&&(n=s[1]),Ve(s[1])&&(n.defaultValue=s[1]),Ve(s[2])&&(n.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const a=s[3]||s[2];Object.keys(a).forEach(r=>{n[r]=a[r]})}return n},interpolation:{escapeValue:!0,format:s=>s,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),cb=s=>(Ve(s.ns)&&(s.ns=[s.ns]),Ve(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),Ve(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs?.indexOf?.("cimode")<0&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),typeof s.initImmediate=="boolean"&&(s.initAsync=s.initImmediate),s),Af=()=>{},PN=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(a=>{typeof s[a]=="function"&&(s[a]=s[a].bind(s))})};class wc extends ad{constructor(n={},a){if(super(),this.options=cb(n),this.services={},this.logger=Ii,this.modules={external:[]},PN(this),a&&!this.isInitialized&&!n.isClone){if(!this.options.initAsync)return this.init(n,a),this;setTimeout(()=>{this.init(n,a)},0)}}init(n={},a){this.isInitializing=!0,typeof n=="function"&&(a=n,n={}),n.defaultNS==null&&n.ns&&(Ve(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=ob();this.options={...r,...this.options,...cb(n)},this.options.interpolation={...r.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=v=>v?typeof v=="function"?new v:v:null;if(!this.options.isClone){this.modules.logger?Ii.init(o(this.modules.logger),this.options):Ii.init(null,this.options);let v;this.modules.formatter?v=this.modules.formatter:v=BN;const _=new ib(this.options);this.store=new eb(this.options.resources,this.options);const N=this.services;N.logger=Ii,N.resourceStore=this.store,N.languageUtils=_,N.pluralResolver=new kN(_,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.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"),v&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(N.formatter=o(v),N.formatter.init&&N.formatter.init(N,this.options),this.options.interpolation.format=N.formatter.format.bind(N.formatter)),N.interpolator=new UN(this.options),N.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},N.backendConnector=new qN(o(this.modules.backend),N.resourceStore,N,this.options),N.backendConnector.on("*",(D,...A)=>{this.emit(D,...A)}),this.modules.languageDetector&&(N.languageDetector=o(this.modules.languageDetector),N.languageDetector.init&&N.languageDetector.init(N,this.options.detection,this.options)),this.modules.i18nFormat&&(N.i18nFormat=o(this.modules.i18nFormat),N.i18nFormat.init&&N.i18nFormat.init(this)),this.translator=new If(this.services,this.options),this.translator.on("*",(D,...A)=>{this.emit(D,...A)}),this.modules.external.forEach(D=>{D.init&&D.init(this)})}if(this.format=this.options.interpolation.format,a||(a=Af),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const v=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);v.length>0&&v[0]!=="dev"&&(this.options.lng=v[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(v=>{this[v]=(..._)=>this.store[v](..._)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(v=>{this[v]=(..._)=>(this.store[v](..._),this)});const p=bc(),b=()=>{const v=(_,N)=>{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(N),a(_,N)};if(this.languages&&!this.isInitialized)return v(null,this.t.bind(this));this.changeLanguage(this.options.lng,v)};return this.options.resources||!this.options.initAsync?b():setTimeout(b,0),p}loadResources(n,a=Af){let r=a;const o=Ve(n)?n:this.language;if(typeof n=="function"&&(r=n),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const h=[],m=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(v=>{v!=="cimode"&&h.indexOf(v)<0&&h.push(v)})};o?m(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>m(b)),this.options.preload?.forEach?.(p=>m(p)),this.services.backendConnector.load(h,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(p)})}else r(null)}reloadResources(n,a,r){const o=bc();return typeof n=="function"&&(r=n,n=void 0),typeof a=="function"&&(r=a,a=void 0),n||(n=this.languages),a||(a=this.options.ns),r||(r=Af),this.services.backendConnector.reload(n,a,h=>{o.resolve(),r(h)}),o}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"&&q_.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 a=0;a<this.languages.length;a++){const r=this.languages[a];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(n)<0&&this.store.hasLanguageSomeTranslations(n)&&(this.resolvedLanguage=n,this.languages.unshift(n))}}changeLanguage(n,a){this.isLanguageChangingTo=n;const r=bc();this.emit("languageChanging",n);const o=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},h=(p,b)=>{b?this.isLanguageChangingTo===n&&(o(b),this.translator.changeLanguage(b),this.isLanguageChangingTo=void 0,this.emit("languageChanged",b),this.logger.log("languageChanged",b)):this.isLanguageChangingTo=void 0,r.resolve((...v)=>this.t(...v)),a&&a(p,(...v)=>this.t(...v))},m=p=>{!n&&!p&&this.services.languageDetector&&(p=[]);const b=Ve(p)?p:p&&p[0],v=this.store.hasLanguageSomeTranslations(b)?b:this.services.languageUtils.getBestMatchFromCodes(Ve(p)?[p]:p);v&&(this.language||o(v),this.translator.language||this.translator.changeLanguage(v),this.services.languageDetector?.cacheUserLanguage?.(v)),this.loadResources(v,_=>{h(_,v)})};return!n&&this.services.languageDetector&&!this.services.languageDetector.async?m(this.services.languageDetector.detect()):!n&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(m):this.services.languageDetector.detect(m):m(n),r}getFixedT(n,a,r){const o=(h,m,...p)=>{let b;typeof m!="object"?b=this.options.overloadTranslationOptionHandler([h,m].concat(p)):b={...m},b.lng=b.lng||o.lng,b.lngs=b.lngs||o.lngs,b.ns=b.ns||o.ns,b.keyPrefix!==""&&(b.keyPrefix=b.keyPrefix||r||o.keyPrefix);const v=this.options.keySeparator||".";let _;return b.keyPrefix&&Array.isArray(h)?_=h.map(N=>(typeof N=="function"&&(N=Sm(N,{...this.options,...m})),`${b.keyPrefix}${v}${N}`)):(typeof h=="function"&&(h=Sm(h,{...this.options,...m})),_=b.keyPrefix?`${b.keyPrefix}${v}${h}`:h),this.t(_,b)};return Ve(n)?o.lng=n:o.lngs=n,o.ns=a,o.keyPrefix=r,o}t(...n){return this.translator?.translate(...n)}exists(...n){return this.translator?.exists(...n)}setDefaultNamespace(n){this.options.defaultNS=n}hasLoadedNamespace(n,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=a.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,h=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const m=(p,b)=>{const v=this.services.backendConnector.state[`${p}|${b}`];return v===-1||v===0||v===2};if(a.precheck){const p=a.precheck(this,m);if(p!==void 0)return p}return!!(this.hasResourceBundle(r,n)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||m(r,n)&&(!o||m(h,n)))}loadNamespaces(n,a){const r=bc();return this.options.ns?(Ve(n)&&(n=[n]),n.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),a&&a(o)}),r):(a&&a(),Promise.resolve())}loadLanguages(n,a){const r=bc();Ve(n)&&(n=[n]);const o=this.options.preload||[],h=n.filter(m=>o.indexOf(m)<0&&this.services.languageUtils.isSupportedCode(m));return h.length?(this.options.preload=o.concat(h),this.loadResources(m=>{r.resolve(),a&&a(m)}),r):(a&&a(),Promise.resolve())}dir(n){if(n||(n=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!n)return"rtl";try{const o=new Intl.Locale(n);if(o&&o.getTextInfo){const h=o.getTextInfo();if(h&&h.direction)return h.direction}}catch{}const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new ib(ob());return n.toLowerCase().indexOf("-latn")>1?"ltr":a.indexOf(r.getLanguagePartFromCode(n))>-1||n.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(n={},a){return new wc(n,a)}cloneInstance(n={},a=Af){const r=n.forkResourceStore;r&&delete n.forkResourceStore;const o={...this.options,...n,isClone:!0},h=new wc(o);if((n.debug!==void 0||n.prefix!==void 0)&&(h.logger=h.logger.clone(n)),["store","services","language"].forEach(p=>{h[p]=this[p]}),h.services={...this.services},h.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},r){const p=Object.keys(this.store.data).reduce((b,v)=>(b[v]={...this.store.data[v]},b[v]=Object.keys(b[v]).reduce((_,N)=>(_[N]={...b[v][N]},_),b[v]),b),{});h.store=new eb(p,o),h.services.resourceStore=h.store}return h.translator=new If(h.services,o),h.translator.on("*",(p,...b)=>{h.emit(p,...b)}),h.init(o,a),h.translator.options=o,h.translator.backendConnector.services.utils={hasLoadedNamespace:h.hasLoadedNamespace.bind(h)},h}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ut=wc.createInstance();Ut.createInstance=wc.createInstance;Ut.createInstance;Ut.dir;Ut.init;Ut.loadResources;Ut.reloadResources;Ut.use;Ut.changeLanguage;Ut.getFixedT;Ut.t;Ut.exists;Ut.setDefaultNamespace;Ut.hasLoadedNamespace;Ut.loadNamespaces;Ut.loadLanguages;const YN="Accueil",KN="Connexion",IN="Inscription",GN="Déconnexion",FN="Langue",XN="Tableau de Bord",QN="Simulateur",ZN="Contributions",WN="Paramètres entreprise",JN="Gestion des employés",eA={home:"Accueil",about:"À propos",competence:"Compétences",news:"Actualités",contact:"Contact",mon_bav:"Mon bAV",users:"Comptes utilisateurs",employees_data:"Employés (données)",plans:"Plans",simulator:"Simulateur",dashboard:"Dashboard",company:"Entreprise"},tA={hero:{title:"Gérez les retraites de vos employés avec sérénité",subtitle:"Une plateforme simple, rapide et sécurisée pour planifier les pensions de vos salariés.",cta:"Créer un compte employeur",cta_admin:"Ouvrir le dashboard Admin",cta_rh:"Gérer mes employés",cta_employee:"Accéder à mon portail bAV",secondary_login:"Se connecter",secondary_company:"Paramètres entreprise",secondary_plans:"Catalogue de plans"},advantages:{title:"Pourquoi choisir BavSpeeD ?",item1:{title:"100% Digital",desc:"Gérez tout depuis votre ordinateur ou smartphone, sans papier.",link:"Simuler ma pension"},item2:{title:"Sécurisé",desc:"Vos données et celles de vos employés sont protégées par cryptage.",link:"Gérer mes employés"},item3:{title:"Calcul automatisé",desc:"Simulez les pensions de retraite selon les plans définis.",link:"Voir les KPIs Admin"}},testimonials:{title:"Ils nous font confiance",item1:{text:"Grâce à BavSpeeD, nous avons simplifié toute la gestion des pensions de notre entreprise.",author:"Jean Dupont, RH chez A&B Solutions"},item2:{text:"Intuitif et sécurisé. Nos employés peuvent voir leurs droits en un clic.",author:"Nadine Ebong, Directrice chez AgroCamer"}},cta_final:{title:"Commencez à planifier les retraites dès aujourd’hui",button:"S’inscrire maintenant"},links:{about:"À propos de nous",competences:"Compétences",news:"Actualités",contact:"Contact"}},nA={title:"Créer un compte",employee_tab:"Employé",employer_tab:"Employeur",username:"Nom d'utilisateur",email:"Adresse email",password:"Mot de passe",matricule:"Numéro d'immatriculation",first_name:"Nom",last_name:"Prénom",sexe:"Sexe",male:"Masculin",female:"Féminin",date_naissance:"Date de naissance",entreprise:"Nom de l'entreprise",date_entree:"Date d'entrée",salaire:"Salaire (€)",submit_employee:"S'inscrire comme Employé",company_name:"Nom de l'entreprise",company_siret:"Numéro SIRET",company_address:"Adresse de l'entreprise",submit_employer:"S'inscrire comme Employeur",employee_register_btn:"Créer un compte Employé",employer_register_btn:"Créer un compte Employeur",error_register:"Erreur lors de l'inscription"},iA={title:"Connexion à votre compte",subtitle:"Accédez à votre espace personnel",email:"Adresse email",password:"Mot de passe",submit_btn:"Se connecter",forgot_password:"Mot de passe oublié ?",error_login:"Échec de la connexion. Veuillez vérifier vos identifiants.",no_account:"Pas encore de compte ?",go_to_register:"Créer un compte",loading:"Connexion en cours..."},aA={rights:"Tous droits réservés.",privacy:"Politique de confidentialité",terms:"Conditions d'utilisation"},sA={welcome:YN,login:KN,register:IN,logout:GN,language:FN,employee_dashboard:XN,simulator:QN,contributions:ZN,company_settings:WN,employee_management:JN,navbar:eA,home:tA,register_page:nA,login_page:iA,footer:aA},lA="Startseite",rA="Anmeldung",oA="Registrierung",cA="Abmelden",uA="Sprache",fA="Dashboard",dA="Rentenrechner",hA="Beiträge",mA="Unternehmenseinstellungen",pA="Mitarbeiterverwaltung",gA={hero:{title:"Verwalten Sie die betriebliche Altersvorsorge Ihrer Mitarbeiter mit Vertrauen",subtitle:"Eine einfache, schnelle und sichere Plattform zur Planung der Betriebsrenten Ihrer Mitarbeiter.",cta:"Arbeitgeberkonto erstellen"},advantages:{title:"Warum BavSpeeD wählen?",item1:{title:"100% Digital",desc:"Alles online verwalten – ohne Papierkram, jederzeit und überall."},item2:{title:"Sicher",desc:"Ihre Daten und die Ihrer Mitarbeiter sind durch moderne Verschlüsselung geschützt."},item3:{title:"Automatische Berechnung",desc:"Berechnen Sie Rentenansprüche automatisch anhand der definierten Pläne."}},testimonials:{title:"Unsere zufriedenen Kunden",item1:{text:"Mit BavSpeeD konnten wir die gesamte Verwaltung unserer Betriebsrenten vereinfachen.",author:"Jean Dupont, Personalabteilung bei A&B Solutions"},item2:{text:"Intuitiv und sicher – unsere Mitarbeiter können ihre Ansprüche mit einem Klick einsehen.",author:"Nadine Ebong, Geschäftsführerin bei AgroCamer"}},cta_final:{title:"Beginnen Sie noch heute mit der Rentenplanung",button:"Jetzt registrieren"}},vA={title:"Ein Konto erstellen",rh_title:"HR-Registrierung",rh_description:"Nur Personalverantwortliche können ein Konto erstellen. Anschließend können Sie Mitarbeiterkonten erstellen und ihnen Zugänge zuweisen.",employee_tab:"Mitarbeiter",employer_tab:"Arbeitgeber",username:"Benutzername",email:"E-Mail-Adresse",password:"Passwort",matricule:"Mitarbeiternummer",first_name:"Vorname",last_name:"Nachname",sexe:"Geschlecht",male:"Männlich",female:"Weiblich",date_naissance:"Geburtsdatum",entreprise:"Unternehmensname",date_entree:"Eintrittsdatum",salaire:"Gehalt (€)",submit_employee:"Als Mitarbeiter registrieren",company_name:"Name des Unternehmens",company_legal_id:"Unternehmensidentifikation",company_siret:"Handelsregisternummer",company_address:"Adresse des Unternehmens",submit_employer:"Als Arbeitgeber registrieren",employee_register_btn:"Mitarbeiterkonto erstellen",employer_register_btn:"Arbeitgeberkonto erstellen",create_rh_account:"Mein HR-Konto erstellen",error_register:"HR-Registrierung nicht möglich. Bitte überprüfen Sie die Informationen.",company_id_required:"Die Unternehmensidentifikation ist obligatorisch.",email_required:"E-Mail-Adresse ist erforderlich",password_required:"Passwort ist erforderlich",company_name_required:"Name des Unternehmens ist erforderlich",company_id_required_field:"Identifikation ist erforderlich",company_name_placeholder:"z.B. Beispiel GmbH",company_id_placeholder:"z.B. DE-123456",terms_acceptance:"Durch die Erstellung eines Kontos akzeptieren Sie unsere Nutzungsbedingungen und unsere Datenschutzrichtlinie.",creating_account:"Konto wird erstellt..."},bA={title:"Melden Sie sich bei Ihrem Konto an",subtitle:"Greifen Sie auf Ihren persönlichen Bereich zu",email:"E-Mail-Adresse",password:"Passwort",submit_btn:"Anmelden",forgot_password:"Passwort vergessen?",error_login:"Anmeldung fehlgeschlagen. Bitte überprüfen Sie Ihre Zugangsdaten.",no_account:"Noch kein Konto?",go_to_register:"Konto erstellen",loading:"Anmeldung läuft...",email_required:"E-Mail-Adresse ist erforderlich",password_required:"Passwort ist erforderlich"},_A={description:"Digitale Plattform für die betriebliche Altersvorsorge: beraten, verwalten und steuern — einfach, schnell und umfassend.",free_signup:"Kostenlose Registrierung",request_demo:"Demo anfordern",company:"Unternehmen",legal:"Rechtliche Hinweise",privacy:"Datenschutzerklärung",terms:"Nutzungsbedingungen",back_to_top:"Nach oben ↑",rights:"Alle Rechte vorbehalten."},yA={about:"Über uns",skills:"Kompetenzen",news:"Nachrichten",my_pension:"Meine Betriebsrente",user_accounts:"Benutzerkonten",employees_data:"Mitarbeiter (Daten)",plans:"Pläne",simulator:"Simulator",dashboard:"Dashboard",company:"Unternehmen"},xA={employee:"Mitarbeiter",rh:"Personalabteilung",admin:"Administrator"},EA={no_company:"Kein Unternehmen",open_navigation:"Navigation öffnen",close_menu:"Menü schließen"},SA={title:"Über uns",subtitle:"BavSpeeD ist eine moderne bAV-Plattform (Betriebliche Altersversorgung), die die betriebliche Altersvorsorge vereinfacht, sichert und professionalisiert – von der Verwaltung der Pläne bis zur Mitarbeiterkommunikation.",create_employer_account:"Arbeitgeberkonto erstellen",read_news:"Aktuelles lesen",mission_aria:"Unsere Mission",mission_title:"Unsere Mission",mission_description:"Ein umfassendes und transparentes Erlebnis der betrieblichen Altersvorsorge zu bieten, konform mit dem BetrAVG, indem wir die Verwaltung von Plänen, Rentenberechnungen, offizielle Dokumente und das Mitarbeiterportal vereinheitlichen.",mission_item1:"Konformität & Rückverfolgbarkeit von Anfang bis Ende",mission_item2:"Verständliche Berechnungen und Prognosen für alle",mission_item3:"HR-Automatisierung & Reduzierung repetitiver Aufgaben",simplification_title:"Was wir vereinfachen",simplification_description:"Von der Einrichtung der Pläne bis zum Mitarbeiterportal, mit professionellen PDF-Berichten, gestalteten Verträgen und gebrauchsfertigen Konformitätsexporten.",simplification_details:"Governance nach Rollen (Admin / HR / Mitarbeiter), vom Admin verwalteter Plan-Katalog, Nutzungsstatistiken und zeitgestempelte Dokumente (Kopf-/Fußzeile + Kontaktdaten).",advantages_aria:"Wichtige Vorteile",advantage1_title:"100% Digital",advantage1_description:"Verwalten Sie alles von Ihrem Computer oder Smartphone, ohne Papier. Import von Mitarbeitern, PDF-Generierung, Mitarbeiterportal… alles ist zentralisiert.",advantage2_title:"Sicher",advantage2_description:"Zugriff nach Rollen, HR-Kontrolle und unterzeichnbare Dokumente mit Zeitstempel und rechtlichen Hinweisen. Ihre Daten werden sorgfältig behandelt.",advantage3_title:"Automatische Berechnung",advantage3_description:"Simulationen nach Alter/Datum, nach Plan, mit eingegebenem oder gespeichertem Gehalt. Die Planformeln werden vom Admin in einem einheitlichen Katalog gesteuert.",commitments_aria:"Unsere Verpflichtungen",commitments_title:"Unsere Verpflichtungen",commitment1_title:"Konformität und Sicherheit",commitment1_description:"Berechtigungen nach Rolle, Aufbewahrung von Nachweisen (PDF mit Kopf-/Fußzeile, Unternehmenskontaktdaten, Datum/Uhrzeit der Generierung).",commitment2_title:"Transparenz für den Mitarbeiter",commitment2_description:"Persönliches Portal mit Simulationen (Alter/Datum, Plan, Gehalt), detaillierte Berichte und herunterladbare Dokumente.",commitment3_title:"Effizienz für die Personalabteilung",commitment3_description:"Importe, Exporte, Einladungen, Zurücksetzungen, Kontoverfolgung und Generierung von qualitativ hochwertigen Berichten/Verträgen.",commitment4_title:"Steuerung für den Admin",commitment4_description:"Plan-Katalog, Nutzungsstatistiken nach Unternehmen und Typ, Zugriffskontrolle und Daten-Governance.",how_it_works_aria:"Funktionsweise",how_it_works_title:"Wie es funktioniert",how_it_works_rh:": bindet Mitarbeiter an das Unternehmen, verwaltet Konten und Dokumente.",how_it_works_employee:": konsultiert seine Informationen, simuliert seine Rente, lädt seine Berichte/Verträge herunter.",trust_aria:"Vertrauen und Konformität",compliance_title:"Konformität & Dokumentenqualität",compliance_description:"Alle Berichte und Verträge enthalten Kopf- und Fußzeile",of_company:"von",compliance_description_continued:", die Kontaktdaten des Unternehmens sowie das Datum und die Uhrzeit der Generierung. Zugängliche Stile, klare Hierarchie und ausreichender Kontrast.",support_title:"Support & Begleitung",support_description:"Geführte Einrichtung (anfänglicher Import, Plan-Einrichtung), dann Kompetenzaufbau der Teams für eine autonome und zuverlässige Nutzung.",ready_to_start:"Bereit zu starten?",create_employer_account_short:"Arbeitgeberkonto erstellen"},NA={title:"Kompetenzen & Expertise",subtitle:"bAV / Direktzusage · Konformität BetrAVG · Aktuarwesen & Modellierung · Governance nach Rollen · Mitarbeiterportale & professionelle PDF-Dokumente",create_employer_account:"Arbeitgeberkonto erstellen",employee_portal:"Mitarbeiterportal",expertise_areas_aria:"Expertise-Bereiche",expertise1_title:"100% Digital & HR-Integration",expertise1_description:"Von Anfang bis Ende: Erstellung von Konten, CSV/XLSX-Import, Zugriffsverwaltung, Einladungen und Zurücksetzungen. Schlüsseloperationen sind zentralisiert und nachverfolgbar.",expertise1_link:"Mitarbeiter verwalten (HR)",expertise2_title:"Sicherheit, Konformität & Governance",expertise2_description:"Zugriffsmodell nach Rollen (Admin/HR/Mitarbeiter), Konformität mit BetrAVG, PSVaG im Kontext, Überprüfbarkeit und Aufbewahrung von Nachweisen über zeitgestempelte Dokumente.",expertise2_link:"Admin-Dashboard öffnen",expertise3_title:"Aktuarwesen & Modellierung",expertise3_description:"Vom Katalog gesteuerte Formeln (Admin), robuste Berechnungen (Zielalter, Zieldatum, Dienstalter), dokumentierte Annahmen und klare Rentenprognosen.",expertise3_link:"Plan-Katalog ansehen (Admin)",expertise4_title:"Mitarbeiterportal & Erfahrung",expertise4_description:"Lesbare Simulationen (Plan, Gehalt, Alter/Datum), herunterladbare Dokumente (Berichte, Verträge), zugänglicher Stil und verständliches Vokabular.",expertise4_link:"Zum Mitarbeiterportal",methodology_aria:"Methodik",methodology_title:"Unser Ansatz",methodology_step1_title:"Rahmensetzung",methodology_step1_description:": Ziele, Umfang der Pläne, Governance und Rollen (Admin/HR/Mitarbeiter).",methodology_step2_title:"Parametrierung",methodology_step2_description:": vom Admin verwalteter Plan-Katalog (Formeln, Multiplikatoren, Regeln), HR-Verbindungen.",methodology_step3_title:"Migration",methodology_step3_description:": Import von Daten (CSV/XLSX), Qualitätskontrollen und Validierung.",methodology_step4_title:"Betrieb",methodology_step4_description:": Mitarbeiterportal, Berichte/Verträge PDF, Indikatoren und Nutzungsstatistiken.",methodology_step5_title:"Kontinuierliche Verbesserung",methodology_step5_description:": Nutzungsverfolgung, evolutionäre Konformität, Plan-Updates.",quality_aria:"Qualitätsmerkmale",quality_docs_title:"Dokumentenqualität",quality_docs_description:"Professionelle PDFs mit Kopf-/Fußzeile",of_company:"von",quality_docs_continued:", Kontaktdaten (Adresse, E-Mail, Telefon), Datum/Uhrzeit der Generierung, lesbare Stile und klare Hierarchie. Konforme Verträge und unterschriftsfertige Berichte.",security_title:"Sicherheit & Vertraulichkeit",security_description:"Zugriff nach Rolle und Prinzip der geringsten Rechte. Sensible Felder in Exporten minimiert, Nachverfolgbarkeit von Schlüsseloperationen und Trennung der Verantwortlichkeiten (Admin verwaltet Plan-Katalog, HR verwaltet Konten).",need_assistance:"Brauchen Sie Unterstützung?",create_employer_account_short:"Arbeitgeberkonto erstellen"},AA={title:"Nachrichten",subtitle:"Finanzen · Aktuarwesen · Sozialversicherung · Versicherung · bAV",filters_aria:"Filter",theme_label:"Thema",theme_aria:"Nach Thema filtern",search_label:"Suche",search_placeholder:"Thema suchen (z.B. Zinssatz, Sterblichkeit, PSVaG)…",search_aria:"Freie Suche in den Nachrichten",articles_list_aria:"Liste der Nachrichten",illustration:"Illustration",read_analysis:"Analyse lesen",no_results:"Kein Artikel entspricht Ihrem Filter.",technical_integration_aria:"Technische Integration",integration_note_title:"Zukünftige Integration:",integration_note_description:'diese Seite kann eine Nachrichten-API konsumieren (z.B. interner Feed, RSS oder Aggregator) und den "Seed"-Inhalt ersetzen. Behalten Sie die Felder theme, title, blurb, date bei, um die Filter zu behalten.',integration_item1:"Hier einen Fetch zu einem Endpoint verbinden (z.B.: /api/news/).",integration_item2:'Ein Feld link für "Analyse lesen" vorsehen.',integration_item3:"Optional: Paginierung / Lazy Loading bei vielen Artikeln.",themes:{all:"Alle",finance:"Finanzen",actuarial:"Aktuarwesen",social_security:"Sozialversicherung",insurance:"Versicherung",bav:"Betriebliche Altersvorsorge (bAV)"},articles:{finance:{title:"Zinssätze, Inflation und Rente: Was zu beachten ist",blurb:"Inflation und Zinspolitik beeinflussen direkt die langfristigen Verpflichtungen von Unternehmen. Eine vorsichtige Verwaltung finanzieller Annahmen (Diskontsatz, Aufwertung) ermöglicht die Stabilisierung von bAV-Verpflichtungen.",badge:"Analyse"},actuarial:{title:"Aktuarische Annahmen: Transparenz und Rückverfolgbarkeit",blurb:"Annahmen (Sterbetafeln, Diskontsatz, Lohnwachstum) müssen dokumentiert und nachweisbar sein. Unser Ansatz: jede Annahme versionieren und in die generierten PDFs/Verträge aufnehmen.",badge:"Best Practices"},social_security:{title:"Koordination mit gesetzlichen Systemen",blurb:"Unternehmensregelungen (bAV) ergänzen die gesetzlichen Systeme. Klare Kommunikation vermeidet doppelte Erwartungen und erleichtert Rentenentscheidungen.",badge:"Pädagogik"},insurance:{title:"Governance und Schutz der Begünstigten",blurb:"Zugriffskontrollen nach Rollen, Protokollierung und standardisierte Dokumente stärken das Vertrauen. Regelmäßige Audits gewährleisten die Konformität (BetrAVG, PSVaG).",badge:"Governance"},bav:{title:"Direktzusage: Einfachheit der Formel, Strenge der Ausführung",blurb:"Klare Formeln (z.B. Multiplikator × Gehalt × Dienstalter), professionelle PDFs und vollständige Rückverfolgbarkeit sind die Schlüssel zu einem System, das von allen Zielgruppen (HR, Mitarbeiter, Auditoren) verstanden und akzeptiert wird.",badge:"bAV"}}},wA={welcome:lA,login:rA,register:oA,logout:cA,language:uA,employee_dashboard:fA,simulator:dA,contributions:hA,company_settings:mA,employee_management:pA,home:gA,register_page:vA,login_page:bA,footer:_A,navbar:yA,roles:xA,common:EA,about:SA,competence:NA,news:AA},TA=typeof window<"u"?localStorage.getItem("lang"):null,Y_=TA||"fr",K_=s=>{typeof document<"u"&&document.documentElement.setAttribute("lang",s)};Ut.use(gN).init({resources:{fr:{translation:sA},de:{translation:wA}},lng:Y_,fallbackLng:"fr",interpolation:{escapeValue:!1},saveMissing:!1});K_(Y_);Ut.on("languageChanged",s=>{try{localStorage.setItem("lang",s)}catch{}K_(s)});function OA(){const{user:s,logout:n}=Ua(),a=s?.role==="RH"||s?.role==="ADMIN",r=s?.role==="EMPLOYEE",{t:o}=Bs(),h=$s(),[m,p]=j.useState(Ut.language),[b,v]=j.useState(!1),_=j.useRef(null);j.useEffect(()=>{const M=R=>{_.current&&!_.current.contains(R.target)&&v(!1)};return document.addEventListener("mousedown",M),()=>{document.removeEventListener("mousedown",M)}},[]);const N=()=>{const M=document.getElementById("mainNav");M?.classList.contains("show")&&window.bootstrap?.Collapse?.getOrCreateInstance(M)?.hide(),v(!1)};j.useEffect(()=>{N()},[h.pathname]);const C=M=>{Ut.changeLanguage(M),p(M),v(!1),N()},D=()=>{v(!b)},A=M=>({EMPLOYEE:o("roles.employee"),RH:o("roles.rh"),ADMIN:o("roles.admin")})[M]||M;return f.jsx("nav",{className:"navbar navbar-expand-lg bg-white border-bottom sticky-top",children:f.jsxs("div",{className:"container",children:[f.jsx(ft,{className:"navbar-brand fw-bold",to:"/",onClick:N,children:"Bavspeed"}),f.jsx("button",{className:"navbar-toggler",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mainNav","aria-controls":"mainNav","aria-expanded":"false","aria-label":o("common.open_navigation"),children:f.jsx("span",{className:"navbar-toggler-icon"})}),f.jsxs("div",{id:"mainNav",className:"collapse navbar-collapse",children:[f.jsxs("ul",{className:"navbar-nav me-auto mb-2 mb-lg-0",children:[f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/",onClick:N,children:o("welcome")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/about",onClick:N,children:o("navbar.about")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/competence",onClick:N,children:o("navbar.skills")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/actualites",onClick:N,children:o("navbar.news")})}),r&&f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/mon-bav",onClick:N,children:o("navbar.my_pension")})}),a&&f.jsxs(f.Fragment,{children:[f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/rh/employes",onClick:N,children:o("navbar.user_accounts")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/rh/employes-donnees",onClick:N,children:o("navbar.employees_data")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/rh/plans",onClick:N,children:o("navbar.plans")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/rh/simulateur",onClick:N,children:o("navbar.simulator")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/rh/dashboard",onClick:N,children:o("navbar.dashboard")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/rh/entreprise",onClick:N,children:o("navbar.company")})})]})]}),f.jsxs("div",{className:"d-flex align-items-center gap-2",children:[f.jsxs("div",{className:"btn-group me-2",ref:_,children:[f.jsx("button",{type:"button",className:"btn btn-outline-secondary btn-sm dropdown-toggle",onClick:D,"aria-expanded":b,children:m==="fr"?"Français":"Deutsch"}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${b?"show":""}`,style:{position:"absolute",inset:"0px auto auto 0px",margin:"0px",transform:"translate(0px, 38px)"},children:[f.jsx("li",{children:f.jsxs("button",{className:`dropdown-item ${m==="fr"?"active":""}`,onClick:()=>C("fr"),children:["Français ",m==="fr"&&"✓"]})}),f.jsx("li",{children:f.jsxs("button",{className:`dropdown-item ${m==="de"?"active":""}`,onClick:()=>C("de"),children:["Deutsch ",m==="de"&&"✓"]})})]})]}),s?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"text-end me-2 small",children:[f.jsx("div",{className:"fw-semibold",children:s.first_name||s.username}),f.jsxs("div",{className:"text-muted",children:[s.company?.name||o("common.no_company")," • ",A(s.role)]})]}),f.jsx("button",{className:"btn btn-outline-secondary",onClick:()=>{n(),N()},children:o("logout")})]}):f.jsxs(f.Fragment,{children:[f.jsx(ft,{className:"btn btn-outline-secondary",to:"/login",onClick:N,children:o("login")}),f.jsx(ft,{className:"btn btn-primary",to:"/register",onClick:N,children:o("home.hero.cta")})]})]})]})]})})}const ub=["fr","de","en"],fb={fr:"FR",de:"DE",en:"EN"};function jA({className:s=""}){const[n,a]=j.useState(()=>{const r=localStorage.getItem("lang");return r&&ub.includes(r)?r:"fr"});return j.useEffect(()=>{localStorage.setItem("lang",n),window.dispatchEvent(new CustomEvent("lang-change",{detail:{lang:n}}))},[n]),f.jsxs("div",{className:`dropdown ${s}`,children:[f.jsx("button",{className:"btn btn-outline-secondary dropdown-toggle",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false","aria-label":"Changer de langue",children:fb[n]}),f.jsx("ul",{className:"dropdown-menu dropdown-menu-end",children:ub.map(r=>f.jsx("li",{children:f.jsx("button",{className:`dropdown-item ${n===r?"active":""}`,onClick:()=>a(r),children:fb[r]})},r))})]})}function CA(){const{t:s}=Bs();return f.jsx("footer",{className:"footer border-top mt-auto",children:f.jsxs("div",{className:"container py-5",children:[f.jsxs("div",{className:"row g-4",children:[f.jsxs("div",{className:"col-12 col-md-5",children:[f.jsxs("div",{className:"d-flex align-items-center gap-2 mb-3",children:[f.jsx("div",{className:"footer-logo rounded-circle"}),f.jsx("span",{className:"fw-bold fs-5",children:"Bavspeed"})]}),f.jsx("p",{className:"text-muted mb-3",children:s("footer.description")}),f.jsxs("div",{className:"d-flex flex-wrap gap-2",children:[f.jsx(ft,{className:"btn btn-primary btn-sm",to:"/login",children:s("footer.free_signup")}),f.jsx(ft,{className:"btn btn-outline-secondary btn-sm",to:"/",children:s("footer.request_demo")})]})]}),f.jsxs("div",{className:"col-6 col-md-4 col-lg-1",children:[f.jsx("h6",{className:"text-uppercase text-muted small mb-3",children:s("footer.company")}),f.jsxs("ul",{className:"list-unstyled d-grid gap-2",children:[f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/about",children:s("navbar.about")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/competence",children:s("navbar.skills")})}),f.jsx("li",{className:"nav-item",children:f.jsx(vn,{className:"nav-link",to:"/actualites",children:s("navbar.news")})})]})]})]}),f.jsx("hr",{className:"my-4"}),f.jsxs("div",{className:"d-flex flex-column flex-lg-row align-items-start align-items-lg-center justify-content-between gap-3",children:[f.jsxs("div",{className:"d-flex flex-wrap gap-3 small",children:[f.jsxs("span",{className:"text-muted",children:["© ",new Date().getFullYear()," Bavspeed"]}),f.jsx(ft,{className:"link-secondary text-decoration-none",to:"/",children:s("footer.legal")}),f.jsx(ft,{className:"link-secondary text-decoration-none",to:"/",children:s("footer.privacy")}),f.jsx(ft,{className:"link-secondary text-decoration-none",to:"/",children:s("footer.terms")}),f.jsx("a",{className:"link-secondary text-decoration-none",href:"#top",children:s("footer.back_to_top")})]}),f.jsx(jA,{})]})]})})}const db={type:"Standard",indexation:0,revalo:0,taux_tech:0,formula:"STANDARD_5PCT_LAST_SALARY_X_YOS",rate:.05};function DA(){const{user:s}=Ua(),n=s?.role==="RH"||s?.role==="ADMIN",[a,r]=j.useState([]),[o,h]=j.useState(!0),[m,p]=j.useState(""),[b,v]=j.useState(1),[_,N]=j.useState(10),[C,D]=j.useState(0),[A,M]=j.useState(null),[R,I]=j.useState(null),[H,G]=j.useState(db),[F,Q]=j.useState(null),[Z,ie]=j.useState(!1),ne=se=>Array.isArray(se)?se:se&&Array.isArray(se.results)?se.results:[],re=async()=>{h(!0),p("");try{const se=new URLSearchParams;se.set("page",b),se.set("page_size",_),se.set("ordering","type");const{data:Ne}=await et.get(`/plans/?${se.toString()}`);r(ne(Ne)),D(Ne?.count??(Array.isArray(Ne)?Ne.length:0)),M(Ne?.next||null),I(Ne?.previous||null)}catch{p("Impossible de charger les plans (êtes-vous connecté ?)."),r([]),D(0),M(null),I(null)}finally{h(!1)}};j.useEffect(()=>{re()},[b,_]);const ge=()=>{G(db),Q(null)},Se=se=>{Q(se.id),G({type:se.type??"Standard",indexation:Number(se.indexation??0),revalo:Number(se.revalo??0),taux_tech:Number(se.taux_tech??0),formula:se.regles_json?.formula??"STANDARD_5PCT_LAST_SALARY_X_YOS",rate:Number(se.regles_json?.rate??.05)}),window.scrollTo({top:0,behavior:"smooth"})},Ae=async se=>{if(window.confirm("Supprimer ce plan ?"))try{await et.delete(`/plans/${se}/`),re()}catch{alert("Suppression impossible.")}},Te=async se=>{se.preventDefault(),ie(!0),p("");const Ne={type:H.type,indexation:Number(H.indexation)||0,revalo:Number(H.revalo)||0,taux_tech:Number(H.taux_tech)||0,regles_json:{formula:H.formula||"STANDARD_5PCT_LAST_SALARY_X_YOS",rate:Number(H.rate)||.05}};try{F?await et.put(`/plans/${F}/`,Ne):await et.post("/plans/",Ne),ge(),re()}catch{p("Enregistrement impossible (vérifiez les champs et vos droits).")}finally{ie(!1)}};return n?f.jsxs("div",{className:"row g-4",children:[f.jsxs("div",{className:"col-12",children:[f.jsx("h3",{children:"Plans d’entreprise"}),f.jsxs("p",{className:"text-muted mb-1",children:["Créez/éditez les plans (ex. ",f.jsx("em",{children:"Standard"}),", ",f.jsx("em",{children:"Direktzusage"}),", ",f.jsx("em",{children:"Unterstützungskasse"}),") et leurs règles de calcul."]})]}),f.jsx("div",{className:"col-12",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h5",{className:"card-title mb-3",children:F?"Modifier le plan":"Nouveau plan"}),m&&f.jsx("div",{className:"alert alert-danger",children:m}),f.jsxs("form",{className:"row g-3",onSubmit:Te,children:[f.jsxs("div",{className:"col-12 col-md-4",children:[f.jsx("label",{className:"form-label",children:"Type"}),f.jsxs("select",{className:"form-select",value:H.type,onChange:se=>G({...H,type:se.target.value}),children:[f.jsx("option",{value:"Standard",children:"Standard"}),f.jsx("option",{value:"Direktzusage",children:"Direktzusage"}),f.jsx("option",{value:"Unterstützungskasse",children:"Unterstützungskasse"})]})]}),f.jsxs("div",{className:"col-6 col-md-2",children:[f.jsx("label",{className:"form-label",children:"Indexation (%)"}),f.jsx("input",{type:"number",step:"0.01",className:"form-control",value:H.indexation,onChange:se=>G({...H,indexation:se.target.value})})]}),f.jsxs("div",{className:"col-6 col-md-2",children:[f.jsx("label",{className:"form-label",children:"Revalo (%)"}),f.jsx("input",{type:"number",step:"0.01",className:"form-control",value:H.revalo,onChange:se=>G({...H,revalo:se.target.value})})]}),f.jsxs("div",{className:"col-6 col-md-2",children:[f.jsx("label",{className:"form-label",children:"Taux tech. (%)"}),f.jsx("input",{type:"number",step:"0.01",className:"form-control",value:H.taux_tech,onChange:se=>G({...H,taux_tech:se.target.value})})]}),f.jsxs("div",{className:"col-12",children:[f.jsx("hr",{}),f.jsx("h6",{children:"Règles de calcul"})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:"Formule"}),f.jsx("select",{className:"form-select",value:H.formula,onChange:se=>G({...H,formula:se.target.value}),children:f.jsx("option",{value:"STANDARD_5PCT_LAST_SALARY_X_YOS",children:"Standard • 5% × dernier salaire × ancienneté (années)"})})]}),f.jsxs("div",{className:"col-12 col-md-3",children:[f.jsx("label",{className:"form-label",children:"Taux (rate)"}),f.jsx("input",{type:"number",step:"0.0001",className:"form-control",value:H.rate,onChange:se=>G({...H,rate:se.target.value})}),f.jsx("div",{className:"form-text",children:"Ex : 0.05 pour 5%."})]}),f.jsxs("div",{className:"col-12 d-flex gap-2",children:[f.jsx("button",{className:"btn btn-primary",disabled:Z,children:Z?"Enregistrement…":F?"Mettre à jour":"Créer le plan"}),F&&f.jsx("button",{type:"button",className:"btn btn-light",onClick:ge,children:"Annuler"})]})]})]})})}),f.jsx("div",{className:"col-12",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-2",children:[f.jsx("h5",{className:"card-title mb-0",children:"Plans existants"}),f.jsxs("div",{className:"d-flex align-items-center gap-2",children:[f.jsxs("span",{className:"text-muted small",children:["Total : ",C]}),f.jsxs("select",{className:"form-select form-select-sm",style:{width:90},value:_,onChange:se=>{N(Number(se.target.value)),v(1)},children:[f.jsx("option",{value:"10",children:"10"}),f.jsx("option",{value:"20",children:"20"}),f.jsx("option",{value:"50",children:"50"})]})]})]}),o?f.jsx("div",{className:"text-muted",children:"Chargement…"}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"table-responsive",children:f.jsxs("table",{className:"table align-middle",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"#"}),f.jsx("th",{children:"Type"}),f.jsx("th",{children:"Indexation"}),f.jsx("th",{children:"Revalo"}),f.jsx("th",{children:"Taux tech."}),f.jsx("th",{children:"Formule"}),f.jsx("th",{children:"Taux"}),f.jsx("th",{className:"text-end",children:"Actions"})]})}),f.jsx("tbody",{children:!a||a.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:"8",className:"text-muted",children:"Aucun plan."})}):a.map((se,Ne)=>f.jsxs("tr",{children:[f.jsx("td",{children:se.id}),f.jsx("td",{children:se.type}),f.jsxs("td",{children:[se.indexation??0,"%"]}),f.jsxs("td",{children:[se.revalo??0,"%"]}),f.jsxs("td",{children:[se.taux_tech??0,"%"]}),f.jsx("td",{children:se.regles_json?.formula||"—"}),f.jsx("td",{children:se.regles_json?.rate??"—"}),f.jsx("td",{className:"text-end",children:f.jsxs("div",{className:"btn-group",children:[f.jsx("button",{className:"btn btn-sm btn-outline-secondary",onClick:()=>Se(se),children:"Éditer"}),f.jsx("button",{className:"btn btn-sm btn-outline-danger",onClick:()=>Ae(se.id),children:"Supprimer"})]})})]},se.id))})]})}),f.jsxs("div",{className:"d-flex justify-content-between align-items-center mt-3",children:[f.jsx("button",{className:"btn btn-outline-secondary",onClick:()=>v(se=>Math.max(1,se-1)),disabled:!R||b<=1,children:"← Précédent"}),f.jsxs("div",{className:"small text-muted",children:["Page ",f.jsx("strong",{children:b})," / ",Math.max(1,Math.ceil(C/_))]}),f.jsx("button",{className:"btn btn-outline-secondary",onClick:()=>v(se=>se+1),disabled:!A||b>=Math.ceil(C/_),children:"Suivant →"})]})]})]})})})]}):f.jsx("div",{className:"alert alert-warning",children:"Accès RH/Admin uniquement."})}function RA(){const{user:s}=Ua(),n=s?.role==="RH"||s?.role==="ADMIN",[a,r]=j.useState([]),[o,h]=j.useState(!0),[m,p]=j.useState(""),[b,v]=j.useState(""),[_,N]=j.useState(""),[C,D]=j.useState(""),[A,M]=j.useState(""),[R,I]=j.useState(""),[H,G]=j.useState(""),[F,Q]=j.useState(""),[Z,ie]=j.useState(1),[ne,re]=j.useState(10),[ge,Se]=j.useState(0),[Ae,Te]=j.useState(null),[se,Ne]=j.useState(null),[B,te]=j.useState(null),[he,ke]=j.useState(null),[w,T]=j.useState(!1),le=async()=>{p(""),h(!0);try{const fe=new URLSearchParams;b&&fe.set("q",b),_&&fe.set("sexe",_),C&&fe.set("plan_type",C),A&&fe.set("salaire_min",A),R&&fe.set("salaire_max",R),H&&fe.set("date_entree_from",H),F&&fe.set("date_entree_to",F),fe.set("page",Z),fe.set("page_size",ne);const{data:Re}=await et.get(`/employees/?${fe.toString()}`);r(Re.results||Re),Se(Re.count??(Array.isArray(Re)?Re.length:0)),Te(Re.next||null),Ne(Re.previous||null)}catch{p("Impossible de charger les employés.")}finally{h(!1)}};j.useEffect(()=>{le()},[Z,ne]);const oe=fe=>{fe.preventDefault(),ie(1),le()},pe=()=>{v(""),N(""),D(""),M(""),I(""),G(""),Q(""),ie(1),le()},Oe=async fe=>{if(fe.preventDefault(),!!B){p(""),ke(null);try{T(!0);const Re=new FormData;Re.append("file",B);const{data:ve}=await et.post("/employees/import/",Re,{headers:{"Content-Type":"multipart/form-data"}});ke(ve),le()}catch{p("Import impossible. Vérifiez le format du fichier.")}finally{T(!1)}}};if(!n)return f.jsx("div",{className:"alert alert-warning",children:"Accès RH/Admin uniquement."});const Ee=Math.max(1,Math.ceil(ge/ne));return f.jsxs("div",{className:"row g-4",children:[f.jsx("div",{className:"col-12",children:f.jsx("h3",{children:"Employés (fiches métier)"})}),f.jsx("div",{className:"col-12",children:f.jsxs("form",{className:"row g-3 align-items-end",onSubmit:oe,children:[f.jsxs("div",{className:"col-12 col-md-3",children:[f.jsx("label",{className:"form-label",children:"Recherche"}),f.jsx("input",{className:"form-control",placeholder:"Matricule, nom, prénom…",value:b,onChange:fe=>v(fe.target.value)})]}),f.jsxs("div",{className:"col-6 col-md-2",children:[f.jsx("label",{className:"form-label",children:"Sexe"}),f.jsxs("select",{className:"form-select",value:_,onChange:fe=>N(fe.target.value),children:[f.jsx("option",{value:"",children:"Tous"}),f.jsx("option",{value:"M",children:"M"}),f.jsx("option",{value:"F",children:"F"})]})]}),f.jsxs("div",{className:"col-6 col-md-3",children:[f.jsx("label",{className:"form-label",children:"Plan"}),f.jsxs("select",{className:"form-select",value:C,onChange:fe=>D(fe.target.value),children:[f.jsx("option",{value:"",children:"Tous"}),f.jsx("option",{value:"Standard",children:"Standard"}),f.jsx("option",{value:"Direktzusage",children:"Direktzusage"}),f.jsx("option",{value:"Unterstützungskasse",children:"Unterstützungskasse"})]})]}),f.jsxs("div",{className:"col-6 col-md-2",children:[f.jsx("label",{className:"form-label",children:"Salaire min (€)"}),f.jsx("input",{type:"number",className:"form-control",value:A,onChange:fe=>M(fe.target.value)})]}),f.jsxs("div",{className:"col-6 col-md-2",children:[f.jsx("label",{className:"form-label",children:"Salaire max (€)"}),f.jsx("input",{type:"number",className:"form-control",value:R,onChange:fe=>I(fe.target.value)})]}),f.jsxs("div",{className:"col-6 col-md-2",children:[f.jsx("label",{className:"form-label",children:"Entrée du"}),f.jsx("input",{type:"date",className:"form-control",value:H,onChange:fe=>G(fe.target.value)})]}),f.jsxs("div",{className:"col-6 col-md-2",children:[f.jsx("label",{className:"form-label",children:"au"}),f.jsx("input",{type:"date",className:"form-control",value:F,onChange:fe=>Q(fe.target.value)})]}),f.jsxs("div",{className:"col-6 col-md-2",children:[f.jsx("label",{className:"form-label",children:"Taille page"}),f.jsxs("select",{className:"form-select",value:ne,onChange:fe=>re(Number(fe.target.value)),children:[f.jsx("option",{children:"10"}),f.jsx("option",{children:"20"}),f.jsx("option",{children:"50"}),f.jsx("option",{children:"100"})]})]}),f.jsx("div",{className:"col-6 col-md-2 d-grid",children:f.jsx("button",{className:"btn btn-outline-secondary",children:"Filtrer"})}),f.jsx("div",{className:"col-6 col-md-2 d-grid",children:f.jsx("button",{type:"button",className:"btn btn-light",onClick:pe,children:"Réinitialiser"})})]})}),f.jsx("div",{className:"col-12",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h5",{className:"card-title mb-3",children:"Import CSV/XLSX"}),m&&f.jsx("div",{className:"alert alert-danger",children:m}),he&&f.jsxs("div",{className:"alert alert-info",children:["Import : ",f.jsxs("strong",{children:[he.inserted," créés"]}),", ",f.jsxs("strong",{children:[he.updated," mis à jour"]}),".",he.errors?.length?f.jsxs(f.Fragment,{children:[f.jsx("br",{}),"Erreurs (",he.errors.length,") :",f.jsx("ul",{className:"mb-0",children:he.errors.slice(0,5).map((fe,Re)=>f.jsxs("li",{children:["Ligne ",fe.row,": ",fe.error]},Re))})]}):" Aucune erreur."]}),f.jsxs("form",{className:"row g-3",onSubmit:Oe,children:[f.jsx("div",{className:"col-12 col-md-6",children:f.jsx("input",{className:"form-control",type:"file",accept:".csv,.xlsx,.xls",onChange:fe=>te(fe.target.files?.[0]||null)})}),f.jsx("div",{className:"col-12 col-md-2 d-grid",children:f.jsx("button",{className:"btn btn-primary",disabled:w||!B,children:w?"Import…":"Importer"})})]})]})})}),f.jsx("div",{className:"col-12",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-2",children:[f.jsx("h5",{className:"card-title mb-0",children:"Liste des employés"}),f.jsxs("div",{className:"text-muted small",children:["Total : ",ge]})]}),o?f.jsx("div",{className:"text-muted",children:"Chargement…"}):f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"table-responsive",children:f.jsxs("table",{className:"table align-middle",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"Matricule"}),f.jsx("th",{children:"Nom"}),f.jsx("th",{children:"Sexe"}),f.jsx("th",{children:"Naissance"}),f.jsx("th",{children:"Entrée"}),f.jsx("th",{children:"Sortie"}),f.jsx("th",{children:"Salaire"}),f.jsx("th",{children:"Plan"})]})}),f.jsx("tbody",{children:!a||a.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:"8",className:"text-muted",children:"Aucun employé."})}):a.map(fe=>f.jsxs("tr",{children:[f.jsx("td",{children:fe.matricule}),f.jsxs("td",{children:[fe.prenom," ",fe.nom]}),f.jsx("td",{children:fe.sexe}),f.jsx("td",{children:fe.date_naissance||"—"}),f.jsx("td",{children:fe.date_entree||"—"}),f.jsx("td",{children:fe.date_sortie||"—"}),f.jsxs("td",{children:[fe.salaire," €"]}),f.jsx("td",{children:fe.plan?fe.plan.type||fe.plan.id:"—"})]},fe.id))})]})}),f.jsxs("div",{className:"d-flex justify-content-between align-items-center mt-3",children:[f.jsx("button",{className:"btn btn-outline-secondary",onClick:()=>ie(fe=>Math.max(1,fe-1)),disabled:!se||Z<=1,children:"← Précédent"}),f.jsxs("div",{className:"small text-muted",children:["Page ",f.jsx("strong",{children:Z})," / ",Ee]}),f.jsx("button",{className:"btn btn-outline-secondary",onClick:()=>ie(fe=>fe+1),disabled:!Ae||Z>=Ee,children:"Suivant →"})]})]})]})})})]})}function LA(){const{user:s}=Ua(),n=s?.role==="RH"||s?.role==="ADMIN",[a,r]=j.useState([]),[o,h]=j.useState([]),[m,p]=j.useState(!0),[b,v]=j.useState(!0),[_,N]=j.useState(""),[C,D]=j.useState(""),[A,M]=j.useState({employee_id:"",plan_id:"",last_salary:"",start_date:"",target_date:""}),[R,I]=j.useState(null),[H,G]=j.useState("");j.useEffect(()=>{const Z=async()=>{p(!0),N("");try{const{data:ne}=await et.get("/employees/?page=1&page_size=100&ordering=matricule"),re=Array.isArray(ne)?ne:Array.isArray(ne?.results)?ne.results:[];r(re)}catch{N("Impossible de charger les employés (connexion requise)."),r([])}finally{p(!1)}},ie=async()=>{v(!0),D("");try{const{data:ne}=await et.get("/plans/?page_size=100&ordering=type"),re=Array.isArray(ne)?ne:Array.isArray(ne?.results)?ne.results:ne;h(re)}catch{D("Impossible de charger les plans."),h([])}finally{v(!1)}};Z(),ie()},[]);const F=Z=>{const ie=Z?Number(Z):"",ne=ie?a.find(re=>re.id===ie):null;M(re=>({...re,employee_id:ie,last_salary:ne?ne.salaire:"",start_date:ne&&ne.date_entree||"",plan_id:ne?.plan?.id||re.plan_id}))},Q=async Z=>{Z.preventDefault(),G(""),I(null);try{const ie={};if(A.plan_id&&(ie.plan_id=Number(A.plan_id)),A.employee_id&&(ie.employee_id=Number(A.employee_id)),A.last_salary&&(ie.last_salary=Number(A.last_salary)),A.start_date&&(ie.start_date=A.start_date),A.target_date&&(ie.target_date=A.target_date),!ie.plan_id&&!ie.plan_type)return G("Veuillez sélectionner un plan.");const{data:ne}=await et.post("/plans/simulate/",ie);I(ne)}catch{G("Simulation impossible. Vérifiez les champs/droits.")}};return n?f.jsxs("div",{className:"row g-4",children:[f.jsxs("div",{className:"col-12",children:[f.jsx("h3",{children:"Simulateur — Pension par Plan"}),f.jsx("p",{className:"text-muted",children:"Choisissez un employé et/ou modifiez les champs pour simuler selon un plan."})]}),f.jsxs("div",{className:"col-12 col-lg-8",children:[f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[H&&f.jsx("div",{className:"alert alert-danger",children:H}),f.jsxs("form",{className:"row g-3",onSubmit:Q,children:[f.jsxs("div",{className:"col-12",children:[f.jsx("label",{className:"form-label",children:"Employé (optionnel)"}),m?f.jsx("div",{className:"form-control bg-light",children:"Chargement…"}):_?f.jsx("div",{className:"alert alert-warning mb-0",children:_}):f.jsxs("select",{className:"form-select",value:A.employee_id,onChange:Z=>F(Z.target.value),children:[f.jsx("option",{value:"",children:"— Aucun —"}),a.map(Z=>f.jsxs("option",{value:Z.id,children:[Z.matricule," — ",Z.prenom," ",Z.nom," (salaire: ",Z.salaire," €)"]},Z.id))]})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:"Plan"}),b?f.jsx("div",{className:"form-control bg-light",children:"Chargement…"}):C?f.jsx("div",{className:"alert alert-warning mb-0",children:C}):f.jsxs("select",{className:"form-select",value:A.plan_id,onChange:Z=>M({...A,plan_id:Z.target.value}),required:!0,children:[f.jsx("option",{value:"",children:"— Sélectionner un plan —"}),o.map(Z=>f.jsx("option",{value:Z.id,children:Z.type},Z.id))]}),f.jsx("div",{className:"form-text",children:"Le calcul utilisera les règles du plan (ex: Standard = 5% × salaire × ancienneté)."})]}),f.jsxs("div",{className:"col-12 col-md-3",children:[f.jsx("label",{className:"form-label",children:"Dernier salaire (€)"}),f.jsx("input",{type:"number",step:"0.01",className:"form-control",value:A.last_salary,onChange:Z=>M({...A,last_salary:Z.target.value})})]}),f.jsxs("div",{className:"col-12 col-md-3",children:[f.jsx("label",{className:"form-label",children:"Date d’entrée"}),f.jsx("input",{type:"date",className:"form-control",value:A.start_date,onChange:Z=>M({...A,start_date:Z.target.value})})]}),f.jsxs("div",{className:"col-12 col-md-3",children:[f.jsx("label",{className:"form-label",children:"Date cible"}),f.jsx("input",{type:"date",className:"form-control",value:A.target_date,onChange:Z=>M({...A,target_date:Z.target.value})}),f.jsx("div",{className:"form-text",children:"Vide = aujourd’hui."})]}),f.jsx("div",{className:"col-12",children:f.jsx("button",{className:"btn btn-primary",children:"Simuler"})})]})]})}),R&&f.jsxs("div",{className:"alert alert-success mt-3",children:[f.jsx("div",{className:"fw-semibold mb-1",children:"Résultat"}),f.jsxs("div",{children:["Plan : ",f.jsx("strong",{children:R.plan?.type})]}),f.jsxs("div",{children:["Ancienneté (années) : ",f.jsx("strong",{children:R.inputs?.years_of_service})]}),f.jsxs("div",{children:["Pension annuelle : ",f.jsxs("strong",{children:[R.result?.pension_annual," €"]})]}),f.jsxs("div",{children:["Pension mensuelle : ",f.jsxs("strong",{children:[R.result?.pension_monthly," €"]})]})]})]}),f.jsx("div",{className:"col-12 col-lg-4",children:f.jsxs("div",{className:"p-3 bg-light rounded-3",children:[f.jsx("h6",{children:"Rappels"}),f.jsxs("ul",{className:"small mb-0",children:[f.jsx("li",{children:"Employé : préremplit salaire et date d’entrée (modifiable)."}),f.jsx("li",{children:"Plan : applique la formule du plan (aujourd’hui Standard 5%)."}),f.jsx("li",{children:"Tu peux simuler **un autre plan** que celui de l’employé."})]})]})})]}):f.jsx("div",{className:"alert alert-warning",children:"Accès RH/Admin uniquement."})}function MA(){const{user:s}=Ua(),n=s?.role==="RH"||s?.role==="ADMIN",[a,r]=j.useState(null),[o,h]=j.useState("");return j.useEffect(()=>{(async()=>{h("");try{const{data:p}=await et.get("/analytics/overview/");r(p)}catch{h("Impossible de charger les indicateurs.")}})()},[]),n?f.jsxs("div",{className:"row g-4",children:[f.jsx("div",{className:"col-12",children:f.jsx("h3",{children:"Tableau de bord RH"})}),o&&f.jsx("div",{className:"col-12",children:f.jsx("div",{className:"alert alert-danger",children:o})}),a?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"col-12 col-md-4",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"text-muted small",children:"Effectif total"}),f.jsx("div",{className:"display-6",children:a.total_employees})]})})}),f.jsx("div",{className:"col-12 col-md-4",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("div",{className:"text-muted small",children:"Salaire moyen"}),f.jsxs("div",{className:"display-6",children:[a.salary?.avg??0," €"]}),f.jsxs("div",{className:"small text-muted",children:["min ",a.salary?.min??0," € • max ",a.salary?.max??0," €"]})]})})}),f.jsx("div",{className:"col-12 col-lg-6",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h5",{className:"card-title",children:"Répartition par plan"}),f.jsxs("ul",{className:"list-group list-group-flush",children:[(a.by_plan||[]).map((m,p)=>f.jsxs("li",{className:"list-group-item d-flex justify-content-between",children:[f.jsx("span",{children:m.plan}),f.jsx("span",{className:"fw-semibold",children:m.count})]},p)),(!a.by_plan||a.by_plan.length===0)&&f.jsx("li",{className:"list-group-item text-muted",children:"Aucune donnée."})]})]})})}),f.jsx("div",{className:"col-12 col-lg-6",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h5",{className:"card-title",children:"Répartition par sexe"}),f.jsxs("ul",{className:"list-group list-group-flush",children:[(a.by_sex||[]).map((m,p)=>f.jsxs("li",{className:"list-group-item d-flex justify-content-between",children:[f.jsx("span",{children:m.sexe}),f.jsx("span",{className:"fw-semibold",children:m.count})]},p)),(!a.by_sex||a.by_sex.length===0)&&f.jsx("li",{className:"list-group-item text-muted",children:"Aucune donnée."})]})]})})})]}):f.jsx("div",{className:"col-12 text-muted",children:"Chargement…"})]}):f.jsx("div",{className:"alert alert-warning",children:"Accès RH/Admin uniquement."})}var bn="top",Yn="bottom",Kn="right",_n="left",sd="auto",Xr=[bn,Yn,Kn,_n],Tl="start",Hr="end",I_="clippingParents",Vm="viewport",Lr="popper",G_="reference",Nm=Xr.reduce(function(s,n){return s.concat([n+"-"+Tl,n+"-"+Hr])},[]),qm=[].concat(Xr,[sd]).reduce(function(s,n){return s.concat([n,n+"-"+Tl,n+"-"+Hr])},[]),F_="beforeRead",X_="read",Q_="afterRead",Z_="beforeMain",W_="main",J_="afterMain",ey="beforeWrite",ty="write",ny="afterWrite",iy=[F_,X_,Q_,Z_,W_,J_,ey,ty,ny];function Qi(s){return s?(s.nodeName||"").toLowerCase():null}function In(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var n=s.ownerDocument;return n&&n.defaultView||window}return s}function Ol(s){var n=In(s).Element;return s instanceof n||s instanceof Element}function si(s){var n=In(s).HTMLElement;return s instanceof n||s instanceof HTMLElement}function Pm(s){if(typeof ShadowRoot>"u")return!1;var n=In(s).ShadowRoot;return s instanceof n||s instanceof ShadowRoot}function zA(s){var n=s.state;Object.keys(n.elements).forEach(function(a){var r=n.styles[a]||{},o=n.attributes[a]||{},h=n.elements[a];!si(h)||!Qi(h)||(Object.assign(h.style,r),Object.keys(o).forEach(function(m){var p=o[m];p===!1?h.removeAttribute(m):h.setAttribute(m,p===!0?"":p)}))})}function kA(s){var n=s.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow),function(){Object.keys(n.elements).forEach(function(r){var o=n.elements[r],h=n.attributes[r]||{},m=Object.keys(n.styles.hasOwnProperty(r)?n.styles[r]:a[r]),p=m.reduce(function(b,v){return b[v]="",b},{});!si(o)||!Qi(o)||(Object.assign(o.style,p),Object.keys(h).forEach(function(b){o.removeAttribute(b)}))})}}const Ym={name:"applyStyles",enabled:!0,phase:"write",fn:zA,effect:kA,requires:["computeStyles"]};function Gi(s){return s.split("-")[0]}var Al=Math.max,Gf=Math.min,$r=Math.round;function Am(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function ay(){return!/^((?!chrome|android).)*safari/i.test(Am())}function Br(s,n,a){n===void 0&&(n=!1),a===void 0&&(a=!1);var r=s.getBoundingClientRect(),o=1,h=1;n&&si(s)&&(o=s.offsetWidth>0&&$r(r.width)/s.offsetWidth||1,h=s.offsetHeight>0&&$r(r.height)/s.offsetHeight||1);var m=Ol(s)?In(s):window,p=m.visualViewport,b=!ay()&&a,v=(r.left+(b&&p?p.offsetLeft:0))/o,_=(r.top+(b&&p?p.offsetTop:0))/h,N=r.width/o,C=r.height/h;return{width:N,height:C,top:_,right:v+N,bottom:_+C,left:v,x:v,y:_}}function Km(s){var n=Br(s),a=s.offsetWidth,r=s.offsetHeight;return Math.abs(n.width-a)<=1&&(a=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:s.offsetLeft,y:s.offsetTop,width:a,height:r}}function sy(s,n){var a=n.getRootNode&&n.getRootNode();if(s.contains(n))return!0;if(a&&Pm(a)){var r=n;do{if(r&&s.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function za(s){return In(s).getComputedStyle(s)}function UA(s){return["table","td","th"].indexOf(Qi(s))>=0}function Vs(s){return((Ol(s)?s.ownerDocument:s.document)||window.document).documentElement}function ld(s){return Qi(s)==="html"?s:s.assignedSlot||s.parentNode||(Pm(s)?s.host:null)||Vs(s)}function hb(s){return!si(s)||za(s).position==="fixed"?null:s.offsetParent}function HA(s){var n=/firefox/i.test(Am()),a=/Trident/i.test(Am());if(a&&si(s)){var r=za(s);if(r.position==="fixed")return null}var o=ld(s);for(Pm(o)&&(o=o.host);si(o)&&["html","body"].indexOf(Qi(o))<0;){var h=za(o);if(h.transform!=="none"||h.perspective!=="none"||h.contain==="paint"||["transform","perspective"].indexOf(h.willChange)!==-1||n&&h.willChange==="filter"||n&&h.filter&&h.filter!=="none")return o;o=o.parentNode}return null}function zc(s){for(var n=In(s),a=hb(s);a&&UA(a)&&za(a).position==="static";)a=hb(a);return a&&(Qi(a)==="html"||Qi(a)==="body"&&za(a).position==="static")?n:a||HA(s)||n}function Im(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Ec(s,n,a){return Al(s,Gf(n,a))}function $A(s,n,a){var r=Ec(s,n,a);return r>a?a:r}function ly(){return{top:0,right:0,bottom:0,left:0}}function ry(s){return Object.assign({},ly(),s)}function oy(s,n){return n.reduce(function(a,r){return a[r]=s,a},{})}var BA=function(n,a){return n=typeof n=="function"?n(Object.assign({},a.rects,{placement:a.placement})):n,ry(typeof n!="number"?n:oy(n,Xr))};function VA(s){var n,a=s.state,r=s.name,o=s.options,h=a.elements.arrow,m=a.modifiersData.popperOffsets,p=Gi(a.placement),b=Im(p),v=[_n,Kn].indexOf(p)>=0,_=v?"height":"width";if(!(!h||!m)){var N=BA(o.padding,a),C=Km(h),D=b==="y"?bn:_n,A=b==="y"?Yn:Kn,M=a.rects.reference[_]+a.rects.reference[b]-m[b]-a.rects.popper[_],R=m[b]-a.rects.reference[b],I=zc(h),H=I?b==="y"?I.clientHeight||0:I.clientWidth||0:0,G=M/2-R/2,F=N[D],Q=H-C[_]-N[A],Z=H/2-C[_]/2+G,ie=Ec(F,Z,Q),ne=b;a.modifiersData[r]=(n={},n[ne]=ie,n.centerOffset=ie-Z,n)}}function qA(s){var n=s.state,a=s.options,r=a.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=n.elements.popper.querySelector(o),!o)||sy(n.elements.popper,o)&&(n.elements.arrow=o))}const cy={name:"arrow",enabled:!0,phase:"main",fn:VA,effect:qA,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vr(s){return s.split("-")[1]}var PA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YA(s,n){var a=s.x,r=s.y,o=n.devicePixelRatio||1;return{x:$r(a*o)/o||0,y:$r(r*o)/o||0}}function mb(s){var n,a=s.popper,r=s.popperRect,o=s.placement,h=s.variation,m=s.offsets,p=s.position,b=s.gpuAcceleration,v=s.adaptive,_=s.roundOffsets,N=s.isFixed,C=m.x,D=C===void 0?0:C,A=m.y,M=A===void 0?0:A,R=typeof _=="function"?_({x:D,y:M}):{x:D,y:M};D=R.x,M=R.y;var I=m.hasOwnProperty("x"),H=m.hasOwnProperty("y"),G=_n,F=bn,Q=window;if(v){var Z=zc(a),ie="clientHeight",ne="clientWidth";if(Z===In(a)&&(Z=Vs(a),za(Z).position!=="static"&&p==="absolute"&&(ie="scrollHeight",ne="scrollWidth")),Z=Z,o===bn||(o===_n||o===Kn)&&h===Hr){F=Yn;var re=N&&Z===Q&&Q.visualViewport?Q.visualViewport.height:Z[ie];M-=re-r.height,M*=b?1:-1}if(o===_n||(o===bn||o===Yn)&&h===Hr){G=Kn;var ge=N&&Z===Q&&Q.visualViewport?Q.visualViewport.width:Z[ne];D-=ge-r.width,D*=b?1:-1}}var Se=Object.assign({position:p},v&&PA),Ae=_===!0?YA({x:D,y:M},In(a)):{x:D,y:M};if(D=Ae.x,M=Ae.y,b){var Te;return Object.assign({},Se,(Te={},Te[F]=H?"0":"",Te[G]=I?"0":"",Te.transform=(Q.devicePixelRatio||1)<=1?"translate("+D+"px, "+M+"px)":"translate3d("+D+"px, "+M+"px, 0)",Te))}return Object.assign({},Se,(n={},n[F]=H?M+"px":"",n[G]=I?D+"px":"",n.transform="",n))}function KA(s){var n=s.state,a=s.options,r=a.gpuAcceleration,o=r===void 0?!0:r,h=a.adaptive,m=h===void 0?!0:h,p=a.roundOffsets,b=p===void 0?!0:p,v={placement:Gi(n.placement),variation:Vr(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,mb(Object.assign({},v,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:m,roundOffsets:b})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,mb(Object.assign({},v,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:b})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const Gm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:KA,data:{}};var wf={passive:!0};function IA(s){var n=s.state,a=s.instance,r=s.options,o=r.scroll,h=o===void 0?!0:o,m=r.resize,p=m===void 0?!0:m,b=In(n.elements.popper),v=[].concat(n.scrollParents.reference,n.scrollParents.popper);return h&&v.forEach(function(_){_.addEventListener("scroll",a.update,wf)}),p&&b.addEventListener("resize",a.update,wf),function(){h&&v.forEach(function(_){_.removeEventListener("scroll",a.update,wf)}),p&&b.removeEventListener("resize",a.update,wf)}}const Fm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:IA,data:{}};var GA={left:"right",right:"left",bottom:"top",top:"bottom"};function Hf(s){return s.replace(/left|right|bottom|top/g,function(n){return GA[n]})}var FA={start:"end",end:"start"};function pb(s){return s.replace(/start|end/g,function(n){return FA[n]})}function Xm(s){var n=In(s),a=n.pageXOffset,r=n.pageYOffset;return{scrollLeft:a,scrollTop:r}}function Qm(s){return Br(Vs(s)).left+Xm(s).scrollLeft}function XA(s,n){var a=In(s),r=Vs(s),o=a.visualViewport,h=r.clientWidth,m=r.clientHeight,p=0,b=0;if(o){h=o.width,m=o.height;var v=ay();(v||!v&&n==="fixed")&&(p=o.offsetLeft,b=o.offsetTop)}return{width:h,height:m,x:p+Qm(s),y:b}}function QA(s){var n,a=Vs(s),r=Xm(s),o=(n=s.ownerDocument)==null?void 0:n.body,h=Al(a.scrollWidth,a.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),m=Al(a.scrollHeight,a.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-r.scrollLeft+Qm(s),b=-r.scrollTop;return za(o||a).direction==="rtl"&&(p+=Al(a.clientWidth,o?o.clientWidth:0)-h),{width:h,height:m,x:p,y:b}}function Zm(s){var n=za(s),a=n.overflow,r=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(a+o+r)}function uy(s){return["html","body","#document"].indexOf(Qi(s))>=0?s.ownerDocument.body:si(s)&&Zm(s)?s:uy(ld(s))}function Sc(s,n){var a;n===void 0&&(n=[]);var r=uy(s),o=r===((a=s.ownerDocument)==null?void 0:a.body),h=In(r),m=o?[h].concat(h.visualViewport||[],Zm(r)?r:[]):r,p=n.concat(m);return o?p:p.concat(Sc(ld(m)))}function wm(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function ZA(s,n){var a=Br(s,!1,n==="fixed");return a.top=a.top+s.clientTop,a.left=a.left+s.clientLeft,a.bottom=a.top+s.clientHeight,a.right=a.left+s.clientWidth,a.width=s.clientWidth,a.height=s.clientHeight,a.x=a.left,a.y=a.top,a}function gb(s,n,a){return n===Vm?wm(XA(s,a)):Ol(n)?ZA(n,a):wm(QA(Vs(s)))}function WA(s){var n=Sc(ld(s)),a=["absolute","fixed"].indexOf(za(s).position)>=0,r=a&&si(s)?zc(s):s;return Ol(r)?n.filter(function(o){return Ol(o)&&sy(o,r)&&Qi(o)!=="body"}):[]}function JA(s,n,a,r){var o=n==="clippingParents"?WA(s):[].concat(n),h=[].concat(o,[a]),m=h[0],p=h.reduce(function(b,v){var _=gb(s,v,r);return b.top=Al(_.top,b.top),b.right=Gf(_.right,b.right),b.bottom=Gf(_.bottom,b.bottom),b.left=Al(_.left,b.left),b},gb(s,m,r));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function fy(s){var n=s.reference,a=s.element,r=s.placement,o=r?Gi(r):null,h=r?Vr(r):null,m=n.x+n.width/2-a.width/2,p=n.y+n.height/2-a.height/2,b;switch(o){case bn:b={x:m,y:n.y-a.height};break;case Yn:b={x:m,y:n.y+n.height};break;case Kn:b={x:n.x+n.width,y:p};break;case _n:b={x:n.x-a.width,y:p};break;default:b={x:n.x,y:n.y}}var v=o?Im(o):null;if(v!=null){var _=v==="y"?"height":"width";switch(h){case Tl:b[v]=b[v]-(n[_]/2-a[_]/2);break;case Hr:b[v]=b[v]+(n[_]/2-a[_]/2);break}}return b}function qr(s,n){n===void 0&&(n={});var a=n,r=a.placement,o=r===void 0?s.placement:r,h=a.strategy,m=h===void 0?s.strategy:h,p=a.boundary,b=p===void 0?I_:p,v=a.rootBoundary,_=v===void 0?Vm:v,N=a.elementContext,C=N===void 0?Lr:N,D=a.altBoundary,A=D===void 0?!1:D,M=a.padding,R=M===void 0?0:M,I=ry(typeof R!="number"?R:oy(R,Xr)),H=C===Lr?G_:Lr,G=s.rects.popper,F=s.elements[A?H:C],Q=JA(Ol(F)?F:F.contextElement||Vs(s.elements.popper),b,_,m),Z=Br(s.elements.reference),ie=fy({reference:Z,element:G,placement:o}),ne=wm(Object.assign({},G,ie)),re=C===Lr?ne:Z,ge={top:Q.top-re.top+I.top,bottom:re.bottom-Q.bottom+I.bottom,left:Q.left-re.left+I.left,right:re.right-Q.right+I.right},Se=s.modifiersData.offset;if(C===Lr&&Se){var Ae=Se[o];Object.keys(ge).forEach(function(Te){var se=[Kn,Yn].indexOf(Te)>=0?1:-1,Ne=[bn,Yn].indexOf(Te)>=0?"y":"x";ge[Te]+=Ae[Ne]*se})}return ge}function ew(s,n){n===void 0&&(n={});var a=n,r=a.placement,o=a.boundary,h=a.rootBoundary,m=a.padding,p=a.flipVariations,b=a.allowedAutoPlacements,v=b===void 0?qm:b,_=Vr(r),N=_?p?Nm:Nm.filter(function(A){return Vr(A)===_}):Xr,C=N.filter(function(A){return v.indexOf(A)>=0});C.length===0&&(C=N);var D=C.reduce(function(A,M){return A[M]=qr(s,{placement:M,boundary:o,rootBoundary:h,padding:m})[Gi(M)],A},{});return Object.keys(D).sort(function(A,M){return D[A]-D[M]})}function tw(s){if(Gi(s)===sd)return[];var n=Hf(s);return[pb(s),n,pb(n)]}function nw(s){var n=s.state,a=s.options,r=s.name;if(!n.modifiersData[r]._skip){for(var o=a.mainAxis,h=o===void 0?!0:o,m=a.altAxis,p=m===void 0?!0:m,b=a.fallbackPlacements,v=a.padding,_=a.boundary,N=a.rootBoundary,C=a.altBoundary,D=a.flipVariations,A=D===void 0?!0:D,M=a.allowedAutoPlacements,R=n.options.placement,I=Gi(R),H=I===R,G=b||(H||!A?[Hf(R)]:tw(R)),F=[R].concat(G).reduce(function(pe,Oe){return pe.concat(Gi(Oe)===sd?ew(n,{placement:Oe,boundary:_,rootBoundary:N,padding:v,flipVariations:A,allowedAutoPlacements:M}):Oe)},[]),Q=n.rects.reference,Z=n.rects.popper,ie=new Map,ne=!0,re=F[0],ge=0;ge<F.length;ge++){var Se=F[ge],Ae=Gi(Se),Te=Vr(Se)===Tl,se=[bn,Yn].indexOf(Ae)>=0,Ne=se?"width":"height",B=qr(n,{placement:Se,boundary:_,rootBoundary:N,altBoundary:C,padding:v}),te=se?Te?Kn:_n:Te?Yn:bn;Q[Ne]>Z[Ne]&&(te=Hf(te));var he=Hf(te),ke=[];if(h&&ke.push(B[Ae]<=0),p&&ke.push(B[te]<=0,B[he]<=0),ke.every(function(pe){return pe})){re=Se,ne=!1;break}ie.set(Se,ke)}if(ne)for(var w=A?3:1,T=function(Oe){var Ee=F.find(function(fe){var Re=ie.get(fe);if(Re)return Re.slice(0,Oe).every(function(ve){return ve})});if(Ee)return re=Ee,"break"},le=w;le>0;le--){var oe=T(le);if(oe==="break")break}n.placement!==re&&(n.modifiersData[r]._skip=!0,n.placement=re,n.reset=!0)}}const dy={name:"flip",enabled:!0,phase:"main",fn:nw,requiresIfExists:["offset"],data:{_skip:!1}};function vb(s,n,a){return a===void 0&&(a={x:0,y:0}),{top:s.top-n.height-a.y,right:s.right-n.width+a.x,bottom:s.bottom-n.height+a.y,left:s.left-n.width-a.x}}function bb(s){return[bn,Kn,Yn,_n].some(function(n){return s[n]>=0})}function iw(s){var n=s.state,a=s.name,r=n.rects.reference,o=n.rects.popper,h=n.modifiersData.preventOverflow,m=qr(n,{elementContext:"reference"}),p=qr(n,{altBoundary:!0}),b=vb(m,r),v=vb(p,o,h),_=bb(b),N=bb(v);n.modifiersData[a]={referenceClippingOffsets:b,popperEscapeOffsets:v,isReferenceHidden:_,hasPopperEscaped:N},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":_,"data-popper-escaped":N})}const hy={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:iw};function aw(s,n,a){var r=Gi(s),o=[_n,bn].indexOf(r)>=0?-1:1,h=typeof a=="function"?a(Object.assign({},n,{placement:s})):a,m=h[0],p=h[1];return m=m||0,p=(p||0)*o,[_n,Kn].indexOf(r)>=0?{x:p,y:m}:{x:m,y:p}}function sw(s){var n=s.state,a=s.options,r=s.name,o=a.offset,h=o===void 0?[0,0]:o,m=qm.reduce(function(_,N){return _[N]=aw(N,n.rects,h),_},{}),p=m[n.placement],b=p.x,v=p.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=b,n.modifiersData.popperOffsets.y+=v),n.modifiersData[r]=m}const my={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sw};function lw(s){var n=s.state,a=s.name;n.modifiersData[a]=fy({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}const Wm={name:"popperOffsets",enabled:!0,phase:"read",fn:lw,data:{}};function rw(s){return s==="x"?"y":"x"}function ow(s){var n=s.state,a=s.options,r=s.name,o=a.mainAxis,h=o===void 0?!0:o,m=a.altAxis,p=m===void 0?!1:m,b=a.boundary,v=a.rootBoundary,_=a.altBoundary,N=a.padding,C=a.tether,D=C===void 0?!0:C,A=a.tetherOffset,M=A===void 0?0:A,R=qr(n,{boundary:b,rootBoundary:v,padding:N,altBoundary:_}),I=Gi(n.placement),H=Vr(n.placement),G=!H,F=Im(I),Q=rw(F),Z=n.modifiersData.popperOffsets,ie=n.rects.reference,ne=n.rects.popper,re=typeof M=="function"?M(Object.assign({},n.rects,{placement:n.placement})):M,ge=typeof re=="number"?{mainAxis:re,altAxis:re}:Object.assign({mainAxis:0,altAxis:0},re),Se=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,Ae={x:0,y:0};if(Z){if(h){var Te,se=F==="y"?bn:_n,Ne=F==="y"?Yn:Kn,B=F==="y"?"height":"width",te=Z[F],he=te+R[se],ke=te-R[Ne],w=D?-ne[B]/2:0,T=H===Tl?ie[B]:ne[B],le=H===Tl?-ne[B]:-ie[B],oe=n.elements.arrow,pe=D&&oe?Km(oe):{width:0,height:0},Oe=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:ly(),Ee=Oe[se],fe=Oe[Ne],Re=Ec(0,ie[B],pe[B]),ve=G?ie[B]/2-w-Re-Ee-ge.mainAxis:T-Re-Ee-ge.mainAxis,Gn=G?-ie[B]/2+w+Re+fe+ge.mainAxis:le+Re+fe+ge.mainAxis,yn=n.elements.arrow&&zc(n.elements.arrow),Ji=yn?F==="y"?yn.clientTop||0:yn.clientLeft||0:0,Ai=(Te=Se?.[F])!=null?Te:0,Ln=te+ve-Ai-Ji,$a=te+Gn-Ai,Fn=Ec(D?Gf(he,Ln):he,te,D?Al(ke,$a):ke);Z[F]=Fn,Ae[F]=Fn-te}if(p){var Nt,Ys=F==="x"?bn:_n,ea=F==="x"?Yn:Kn,ce=Z[Q],tt=Q==="y"?"height":"width",At=ce+R[Ys],Kt=ce-R[ea],Ks=[bn,_n].indexOf(I)!==-1,ta=(Nt=Se?.[Q])!=null?Nt:0,It=Ks?At:ce-ie[tt]-ne[tt]-ta+ge.altAxis,Mt=Ks?ce+ie[tt]+ne[tt]-ta-ge.altAxis:Kt,Mn=D&&Ks?$A(It,ce,Mt):Ec(D?It:At,ce,D?Mt:Kt);Z[Q]=Mn,Ae[Q]=Mn-ce}n.modifiersData[r]=Ae}}const py={name:"preventOverflow",enabled:!0,phase:"main",fn:ow,requiresIfExists:["offset"]};function cw(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function uw(s){return s===In(s)||!si(s)?Xm(s):cw(s)}function fw(s){var n=s.getBoundingClientRect(),a=$r(n.width)/s.offsetWidth||1,r=$r(n.height)/s.offsetHeight||1;return a!==1||r!==1}function dw(s,n,a){a===void 0&&(a=!1);var r=si(n),o=si(n)&&fw(n),h=Vs(n),m=Br(s,o,a),p={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(r||!r&&!a)&&((Qi(n)!=="body"||Zm(h))&&(p=uw(n)),si(n)?(b=Br(n,!0),b.x+=n.clientLeft,b.y+=n.clientTop):h&&(b.x=Qm(h))),{x:m.left+p.scrollLeft-b.x,y:m.top+p.scrollTop-b.y,width:m.width,height:m.height}}function hw(s){var n=new Map,a=new Set,r=[];s.forEach(function(h){n.set(h.name,h)});function o(h){a.add(h.name);var m=[].concat(h.requires||[],h.requiresIfExists||[]);m.forEach(function(p){if(!a.has(p)){var b=n.get(p);b&&o(b)}}),r.push(h)}return s.forEach(function(h){a.has(h.name)||o(h)}),r}function mw(s){var n=hw(s);return iy.reduce(function(a,r){return a.concat(n.filter(function(o){return o.phase===r}))},[])}function pw(s){var n;return function(){return n||(n=new Promise(function(a){Promise.resolve().then(function(){n=void 0,a(s())})})),n}}function gw(s){var n=s.reduce(function(a,r){var o=a[r.name];return a[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,a},{});return Object.keys(n).map(function(a){return n[a]})}var _b={placement:"bottom",modifiers:[],strategy:"absolute"};function yb(){for(var s=arguments.length,n=new Array(s),a=0;a<s;a++)n[a]=arguments[a];return!n.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function rd(s){s===void 0&&(s={});var n=s,a=n.defaultModifiers,r=a===void 0?[]:a,o=n.defaultOptions,h=o===void 0?_b:o;return function(p,b,v){v===void 0&&(v=h);var _={placement:"bottom",orderedModifiers:[],options:Object.assign({},_b,h),modifiersData:{},elements:{reference:p,popper:b},attributes:{},styles:{}},N=[],C=!1,D={state:_,setOptions:function(I){var H=typeof I=="function"?I(_.options):I;M(),_.options=Object.assign({},h,_.options,H),_.scrollParents={reference:Ol(p)?Sc(p):p.contextElement?Sc(p.contextElement):[],popper:Sc(b)};var G=mw(gw([].concat(r,_.options.modifiers)));return _.orderedModifiers=G.filter(function(F){return F.enabled}),A(),D.update()},forceUpdate:function(){if(!C){var I=_.elements,H=I.reference,G=I.popper;if(yb(H,G)){_.rects={reference:dw(H,zc(G),_.options.strategy==="fixed"),popper:Km(G)},_.reset=!1,_.placement=_.options.placement,_.orderedModifiers.forEach(function(ge){return _.modifiersData[ge.name]=Object.assign({},ge.data)});for(var F=0;F<_.orderedModifiers.length;F++){if(_.reset===!0){_.reset=!1,F=-1;continue}var Q=_.orderedModifiers[F],Z=Q.fn,ie=Q.options,ne=ie===void 0?{}:ie,re=Q.name;typeof Z=="function"&&(_=Z({state:_,options:ne,name:re,instance:D})||_)}}}},update:pw(function(){return new Promise(function(R){D.forceUpdate(),R(_)})}),destroy:function(){M(),C=!0}};if(!yb(p,b))return D;D.setOptions(v).then(function(R){!C&&v.onFirstUpdate&&v.onFirstUpdate(R)});function A(){_.orderedModifiers.forEach(function(R){var I=R.name,H=R.options,G=H===void 0?{}:H,F=R.effect;if(typeof F=="function"){var Q=F({state:_,name:I,instance:D,options:G}),Z=function(){};N.push(Q||Z)}})}function M(){N.forEach(function(R){return R()}),N=[]}return D}}var vw=rd(),bw=[Fm,Wm,Gm,Ym],_w=rd({defaultModifiers:bw}),yw=[Fm,Wm,Gm,Ym,my,dy,py,cy,hy],Jm=rd({defaultModifiers:yw});const gy=Object.freeze(Object.defineProperty({__proto__:null,afterMain:J_,afterRead:Q_,afterWrite:ny,applyStyles:Ym,arrow:cy,auto:sd,basePlacements:Xr,beforeMain:Z_,beforeRead:F_,beforeWrite:ey,bottom:Yn,clippingParents:I_,computeStyles:Gm,createPopper:Jm,createPopperBase:vw,createPopperLite:_w,detectOverflow:qr,end:Hr,eventListeners:Fm,flip:dy,hide:hy,left:_n,main:W_,modifierPhases:iy,offset:my,placements:qm,popper:Lr,popperGenerator:rd,popperOffsets:Wm,preventOverflow:py,read:X_,reference:G_,right:Kn,start:Tl,top:bn,variationPlacements:Nm,viewport:Vm,write:ty},Symbol.toStringTag,{value:"Module"}));/*!
* Bootstrap v5.3.8 (https://getbootstrap.com/)
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/const ks=new Map,Qh={set(s,n,a){ks.has(s)||ks.set(s,new Map);const r=ks.get(s);if(!r.has(n)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(n,a)},get(s,n){return ks.has(s)&&ks.get(s).get(n)||null},remove(s,n){if(!ks.has(s))return;const a=ks.get(s);a.delete(n),a.size===0&&ks.delete(s)}},xw=1e6,Ew=1e3,Tm="transitionend",vy=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(n,a)=>`#${CSS.escape(a)}`)),s),Sw=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),Nw=s=>{do s+=Math.floor(Math.random()*xw);while(document.getElementById(s));return s},Aw=s=>{if(!s)return 0;let{transitionDuration:n,transitionDelay:a}=window.getComputedStyle(s);const r=Number.parseFloat(n),o=Number.parseFloat(a);return!r&&!o?0:(n=n.split(",")[0],a=a.split(",")[0],(Number.parseFloat(n)+Number.parseFloat(a))*Ew)},by=s=>{s.dispatchEvent(new Event(Tm))},Ra=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),Us=s=>Ra(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(vy(s)):null,Qr=s=>{if(!Ra(s)||s.getClientRects().length===0)return!1;const n=getComputedStyle(s).getPropertyValue("visibility")==="visible",a=s.closest("details:not([open])");if(!a)return n;if(a!==s){const r=s.closest("summary");if(r&&r.parentNode!==a||r===null)return!1}return n},Hs=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",_y=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const n=s.getRootNode();return n instanceof ShadowRoot?n:null}return s instanceof ShadowRoot?s:s.parentNode?_y(s.parentNode):null},Ff=()=>{},kc=s=>{s.offsetHeight},yy=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Zh=[],ww=s=>{document.readyState==="loading"?(Zh.length||document.addEventListener("DOMContentLoaded",()=>{for(const n of Zh)n()}),Zh.push(s)):s()},li=()=>document.documentElement.dir==="rtl",oi=s=>{ww(()=>{const n=yy();if(n){const a=s.NAME,r=n.fn[a];n.fn[a]=s.jQueryInterface,n.fn[a].Constructor=s,n.fn[a].noConflict=()=>(n.fn[a]=r,s.jQueryInterface)}})},Cn=(s,n=[],a=s)=>typeof s=="function"?s.call(...n):a,xy=(s,n,a=!0)=>{if(!a){Cn(s);return}const o=Aw(n)+5;let h=!1;const m=({target:p})=>{p===n&&(h=!0,n.removeEventListener(Tm,m),Cn(s))};n.addEventListener(Tm,m),setTimeout(()=>{h||by(n)},o)},ep=(s,n,a,r)=>{const o=s.length;let h=s.indexOf(n);return h===-1?!a&&r?s[o-1]:s[0]:(h+=a?1:-1,r&&(h=(h+o)%o),s[Math.max(0,Math.min(h,o-1))])},Tw=/[^.]*(?=\..*)\.|.*/,Ow=/\..*/,jw=/::\d+$/,Wh={};let xb=1;const Ey={mouseenter:"mouseover",mouseleave:"mouseout"},Cw=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Sy(s,n){return n&&`${n}::${xb++}`||s.uidEvent||xb++}function Ny(s){const n=Sy(s);return s.uidEvent=n,Wh[n]=Wh[n]||{},Wh[n]}function Dw(s,n){return function a(r){return tp(r,{delegateTarget:s}),a.oneOff&&ae.off(s,r.type,n),n.apply(s,[r])}}function Rw(s,n,a){return function r(o){const h=s.querySelectorAll(n);for(let{target:m}=o;m&&m!==this;m=m.parentNode)for(const p of h)if(p===m)return tp(o,{delegateTarget:m}),r.oneOff&&ae.off(s,o.type,n,a),a.apply(m,[o])}}function Ay(s,n,a=null){return Object.values(s).find(r=>r.callable===n&&r.delegationSelector===a)}function wy(s,n,a){const r=typeof n=="string",o=r?a:n||a;let h=Ty(s);return Cw.has(h)||(h=s),[r,o,h]}function Eb(s,n,a,r,o){if(typeof n!="string"||!s)return;let[h,m,p]=wy(n,a,r);n in Ey&&(m=(A=>function(M){if(!M.relatedTarget||M.relatedTarget!==M.delegateTarget&&!M.delegateTarget.contains(M.relatedTarget))return A.call(this,M)})(m));const b=Ny(s),v=b[p]||(b[p]={}),_=Ay(v,m,h?a:null);if(_){_.oneOff=_.oneOff&&o;return}const N=Sy(m,n.replace(Tw,"")),C=h?Rw(s,a,m):Dw(s,m);C.delegationSelector=h?a:null,C.callable=m,C.oneOff=o,C.uidEvent=N,v[N]=C,s.addEventListener(p,C,h)}function Om(s,n,a,r,o){const h=Ay(n[a],r,o);h&&(s.removeEventListener(a,h,!!o),delete n[a][h.uidEvent])}function Lw(s,n,a,r){const o=n[a]||{};for(const[h,m]of Object.entries(o))h.includes(r)&&Om(s,n,a,m.callable,m.delegationSelector)}function Ty(s){return s=s.replace(Ow,""),Ey[s]||s}const ae={on(s,n,a,r){Eb(s,n,a,r,!1)},one(s,n,a,r){Eb(s,n,a,r,!0)},off(s,n,a,r){if(typeof n!="string"||!s)return;const[o,h,m]=wy(n,a,r),p=m!==n,b=Ny(s),v=b[m]||{},_=n.startsWith(".");if(typeof h<"u"){if(!Object.keys(v).length)return;Om(s,b,m,h,o?a:null);return}if(_)for(const N of Object.keys(b))Lw(s,b,N,n.slice(1));for(const[N,C]of Object.entries(v)){const D=N.replace(jw,"");(!p||n.includes(D))&&Om(s,b,m,C.callable,C.delegationSelector)}},trigger(s,n,a){if(typeof n!="string"||!s)return null;const r=yy(),o=Ty(n),h=n!==o;let m=null,p=!0,b=!0,v=!1;h&&r&&(m=r.Event(n,a),r(s).trigger(m),p=!m.isPropagationStopped(),b=!m.isImmediatePropagationStopped(),v=m.isDefaultPrevented());const _=tp(new Event(n,{bubbles:p,cancelable:!0}),a);return v&&_.preventDefault(),b&&s.dispatchEvent(_),_.defaultPrevented&&m&&m.preventDefault(),_}};function tp(s,n={}){for(const[a,r]of Object.entries(n))try{s[a]=r}catch{Object.defineProperty(s,a,{configurable:!0,get(){return r}})}return s}function Sb(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function Jh(s){return s.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}const La={setDataAttribute(s,n,a){s.setAttribute(`data-bs-${Jh(n)}`,a)},removeDataAttribute(s,n){s.removeAttribute(`data-bs-${Jh(n)}`)},getDataAttributes(s){if(!s)return{};const n={},a=Object.keys(s.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of a){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1),n[o]=Sb(s.dataset[r])}return n},getDataAttribute(s,n){return Sb(s.getAttribute(`data-bs-${Jh(n)}`))}};class Uc{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(n){return n=this._mergeConfigObj(n),n=this._configAfterMerge(n),this._typeCheckConfig(n),n}_configAfterMerge(n){return n}_mergeConfigObj(n,a){const r=Ra(a)?La.getDataAttribute(a,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Ra(a)?La.getDataAttributes(a):{},...typeof n=="object"?n:{}}}_typeCheckConfig(n,a=this.constructor.DefaultType){for(const[r,o]of Object.entries(a)){const h=n[r],m=Ra(h)?"element":Sw(h);if(!new RegExp(o).test(m))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${m}" but expected type "${o}".`)}}}const Mw="5.3.8";class Ni extends Uc{constructor(n,a){super(),n=Us(n),n&&(this._element=n,this._config=this._getConfig(a),Qh.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Qh.remove(this._element,this.constructor.DATA_KEY),ae.off(this._element,this.constructor.EVENT_KEY);for(const n of Object.getOwnPropertyNames(this))this[n]=null}_queueCallback(n,a,r=!0){xy(n,a,r)}_getConfig(n){return n=this._mergeConfigObj(n,this._element),n=this._configAfterMerge(n),this._typeCheckConfig(n),n}static getInstance(n){return Qh.get(Us(n),this.DATA_KEY)}static getOrCreateInstance(n,a={}){return this.getInstance(n)||new this(n,typeof a=="object"?a:null)}static get VERSION(){return Mw}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(n){return`${n}${this.EVENT_KEY}`}}const em=s=>{let n=s.getAttribute("data-bs-target");if(!n||n==="#"){let a=s.getAttribute("href");if(!a||!a.includes("#")&&!a.startsWith("."))return null;a.includes("#")&&!a.startsWith("#")&&(a=`#${a.split("#")[1]}`),n=a&&a!=="#"?a.trim():null}return n?n.split(",").map(a=>vy(a)).join(","):null},Ce={find(s,n=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(n,s))},findOne(s,n=document.documentElement){return Element.prototype.querySelector.call(n,s)},children(s,n){return[].concat(...s.children).filter(a=>a.matches(n))},parents(s,n){const a=[];let r=s.parentNode.closest(n);for(;r;)a.push(r),r=r.parentNode.closest(n);return a},prev(s,n){let a=s.previousElementSibling;for(;a;){if(a.matches(n))return[a];a=a.previousElementSibling}return[]},next(s,n){let a=s.nextElementSibling;for(;a;){if(a.matches(n))return[a];a=a.nextElementSibling}return[]},focusableChildren(s){const n=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(a=>`${a}:not([tabindex^="-"])`).join(",");return this.find(n,s).filter(a=>!Hs(a)&&Qr(a))},getSelectorFromElement(s){const n=em(s);return n&&Ce.findOne(n)?n:null},getElementFromSelector(s){const n=em(s);return n?Ce.findOne(n):null},getMultipleElementsFromSelector(s){const n=em(s);return n?Ce.find(n):[]}},od=(s,n="hide")=>{const a=`click.dismiss${s.EVENT_KEY}`,r=s.NAME;ae.on(document,a,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Hs(this))return;const h=Ce.getElementFromSelector(this)||this.closest(`.${r}`);s.getOrCreateInstance(h)[n]()})},zw="alert",kw="bs.alert",Oy=`.${kw}`,Uw=`close${Oy}`,Hw=`closed${Oy}`,$w="fade",Bw="show";class cd extends Ni{static get NAME(){return zw}close(){if(ae.trigger(this._element,Uw).defaultPrevented)return;this._element.classList.remove(Bw);const a=this._element.classList.contains($w);this._queueCallback(()=>this._destroyElement(),this._element,a)}_destroyElement(){this._element.remove(),ae.trigger(this._element,Hw),this.dispose()}static jQueryInterface(n){return this.each(function(){const a=cd.getOrCreateInstance(this);if(typeof n=="string"){if(a[n]===void 0||n.startsWith("_")||n==="constructor")throw new TypeError(`No method named "${n}"`);a[n](this)}})}}od(cd,"close");oi(cd);const Vw="button",qw="bs.button",Pw=`.${qw}`,Yw=".data-api",Kw="active",Nb='[data-bs-toggle="button"]',Iw=`click${Pw}${Yw}`;class ud extends Ni{static get NAME(){return Vw}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Kw))}static jQueryInterface(n){return this.each(function(){const a=ud.getOrCreateInstance(this);n==="toggle"&&a[n]()})}}ae.on(document,Iw,Nb,s=>{s.preventDefault();const n=s.target.closest(Nb);ud.getOrCreateInstance(n).toggle()});oi(ud);const Gw="swipe",Zr=".bs.swipe",Fw=`touchstart${Zr}`,Xw=`touchmove${Zr}`,Qw=`touchend${Zr}`,Zw=`pointerdown${Zr}`,Ww=`pointerup${Zr}`,Jw="touch",eT="pen",tT="pointer-event",nT=40,iT={endCallback:null,leftCallback:null,rightCallback:null},aT={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Xf extends Uc{constructor(n,a){super(),this._element=n,!(!n||!Xf.isSupported())&&(this._config=this._getConfig(a),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return iT}static get DefaultType(){return aT}static get NAME(){return Gw}dispose(){ae.off(this._element,Zr)}_start(n){if(!this._supportPointerEvents){this._deltaX=n.touches[0].clientX;return}this._eventIsPointerPenTouch(n)&&(this._deltaX=n.clientX)}_end(n){this._eventIsPointerPenTouch(n)&&(this._deltaX=n.clientX-this._deltaX),this._handleSwipe(),Cn(this._config.endCallback)}_move(n){this._deltaX=n.touches&&n.touches.length>1?0:n.touches[0].clientX-this._deltaX}_handleSwipe(){const n=Math.abs(this._deltaX);if(n<=nT)return;const a=n/this._deltaX;this._deltaX=0,a&&Cn(a>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ae.on(this._element,Zw,n=>this._start(n)),ae.on(this._element,Ww,n=>this._end(n)),this._element.classList.add(tT)):(ae.on(this._element,Fw,n=>this._start(n)),ae.on(this._element,Xw,n=>this._move(n)),ae.on(this._element,Qw,n=>this._end(n)))}_eventIsPointerPenTouch(n){return this._supportPointerEvents&&(n.pointerType===eT||n.pointerType===Jw)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const sT="carousel",lT="bs.carousel",qs=`.${lT}`,jy=".data-api",rT="ArrowLeft",oT="ArrowRight",cT=500,_c="next",Dr="prev",Mr="left",$f="right",uT=`slide${qs}`,tm=`slid${qs}`,fT=`keydown${qs}`,dT=`mouseenter${qs}`,hT=`mouseleave${qs}`,mT=`dragstart${qs}`,pT=`load${qs}${jy}`,gT=`click${qs}${jy}`,Cy="carousel",Tf="active",vT="slide",bT="carousel-item-end",_T="carousel-item-start",yT="carousel-item-next",xT="carousel-item-prev",Dy=".active",Ry=".carousel-item",ET=Dy+Ry,ST=".carousel-item img",NT=".carousel-indicators",AT="[data-bs-slide], [data-bs-slide-to]",wT='[data-bs-ride="carousel"]',TT={[rT]:$f,[oT]:Mr},OT={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},jT={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Hc extends Ni{constructor(n,a){super(n,a),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ce.findOne(NT,this._element),this._addEventListeners(),this._config.ride===Cy&&this.cycle()}static get Default(){return OT}static get DefaultType(){return jT}static get NAME(){return sT}next(){this._slide(_c)}nextWhenVisible(){!document.hidden&&Qr(this._element)&&this.next()}prev(){this._slide(Dr)}pause(){this._isSliding&&by(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ae.one(this._element,tm,()=>this.cycle());return}this.cycle()}}to(n){const a=this._getItems();if(n>a.length-1||n<0)return;if(this._isSliding){ae.one(this._element,tm,()=>this.to(n));return}const r=this._getItemIndex(this._getActive());if(r===n)return;const o=n>r?_c:Dr;this._slide(o,a[n])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(n){return n.defaultInterval=n.interval,n}_addEventListeners(){this._config.keyboard&&ae.on(this._element,fT,n=>this._keydown(n)),this._config.pause==="hover"&&(ae.on(this._element,dT,()=>this.pause()),ae.on(this._element,hT,()=>this._maybeEnableCycle())),this._config.touch&&Xf.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Ce.find(ST,this._element))ae.on(r,mT,o=>o.preventDefault());const a={leftCallback:()=>this._slide(this._directionToOrder(Mr)),rightCallback:()=>this._slide(this._directionToOrder($f)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),cT+this._config.interval))}};this._swipeHelper=new Xf(this._element,a)}_keydown(n){if(/input|textarea/i.test(n.target.tagName))return;const a=TT[n.key];a&&(n.preventDefault(),this._slide(this._directionToOrder(a)))}_getItemIndex(n){return this._getItems().indexOf(n)}_setActiveIndicatorElement(n){if(!this._indicatorsElement)return;const a=Ce.findOne(Dy,this._indicatorsElement);a.classList.remove(Tf),a.removeAttribute("aria-current");const r=Ce.findOne(`[data-bs-slide-to="${n}"]`,this._indicatorsElement);r&&(r.classList.add(Tf),r.setAttribute("aria-current","true"))}_updateInterval(){const n=this._activeElement||this._getActive();if(!n)return;const a=Number.parseInt(n.getAttribute("data-bs-interval"),10);this._config.interval=a||this._config.defaultInterval}_slide(n,a=null){if(this._isSliding)return;const r=this._getActive(),o=n===_c,h=a||ep(this._getItems(),r,o,this._config.wrap);if(h===r)return;const m=this._getItemIndex(h),p=D=>ae.trigger(this._element,D,{relatedTarget:h,direction:this._orderToDirection(n),from:this._getItemIndex(r),to:m});if(p(uT).defaultPrevented||!r||!h)return;const v=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(m),this._activeElement=h;const _=o?_T:bT,N=o?yT:xT;h.classList.add(N),kc(h),r.classList.add(_),h.classList.add(_);const C=()=>{h.classList.remove(_,N),h.classList.add(Tf),r.classList.remove(Tf,N,_),this._isSliding=!1,p(tm)};this._queueCallback(C,r,this._isAnimated()),v&&this.cycle()}_isAnimated(){return this._element.classList.contains(vT)}_getActive(){return Ce.findOne(ET,this._element)}_getItems(){return Ce.find(Ry,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(n){return li()?n===Mr?Dr:_c:n===Mr?_c:Dr}_orderToDirection(n){return li()?n===Dr?Mr:$f:n===Dr?$f:Mr}static jQueryInterface(n){return this.each(function(){const a=Hc.getOrCreateInstance(this,n);if(typeof n=="number"){a.to(n);return}if(typeof n=="string"){if(a[n]===void 0||n.startsWith("_")||n==="constructor")throw new TypeError(`No method named "${n}"`);a[n]()}})}}ae.on(document,gT,AT,function(s){const n=Ce.getElementFromSelector(this);if(!n||!n.classList.contains(Cy))return;s.preventDefault();const a=Hc.getOrCreateInstance(n),r=this.getAttribute("data-bs-slide-to");if(r){a.to(r),a._maybeEnableCycle();return}if(La.getDataAttribute(this,"slide")==="next"){a.next(),a._maybeEnableCycle();return}a.prev(),a._maybeEnableCycle()});ae.on(window,pT,()=>{const s=Ce.find(wT);for(const n of s)Hc.getOrCreateInstance(n)});oi(Hc);const CT="collapse",DT="bs.collapse",$c=`.${DT}`,RT=".data-api",LT=`show${$c}`,MT=`shown${$c}`,zT=`hide${$c}`,kT=`hidden${$c}`,UT=`click${$c}${RT}`,nm="show",kr="collapse",Of="collapsing",HT="collapsed",$T=`:scope .${kr} .${kr}`,BT="collapse-horizontal",VT="width",qT="height",PT=".collapse.show, .collapse.collapsing",jm='[data-bs-toggle="collapse"]',YT={parent:null,toggle:!0},KT={parent:"(null|element)",toggle:"boolean"};class Tc extends Ni{constructor(n,a){super(n,a),this._isTransitioning=!1,this._triggerArray=[];const r=Ce.find(jm);for(const o of r){const h=Ce.getSelectorFromElement(o),m=Ce.find(h).filter(p=>p===this._element);h!==null&&m.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return YT}static get DefaultType(){return KT}static get NAME(){return CT}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let n=[];if(this._config.parent&&(n=this._getFirstLevelChildren(PT).filter(p=>p!==this._element).map(p=>Tc.getOrCreateInstance(p,{toggle:!1}))),n.length&&n[0]._isTransitioning||ae.trigger(this._element,LT).defaultPrevented)return;for(const p of n)p.hide();const r=this._getDimension();this._element.classList.remove(kr),this._element.classList.add(Of),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(Of),this._element.classList.add(kr,nm),this._element.style[r]="",ae.trigger(this._element,MT)},m=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[m]}px`}hide(){if(this._isTransitioning||!this._isShown()||ae.trigger(this._element,zT).defaultPrevented)return;const a=this._getDimension();this._element.style[a]=`${this._element.getBoundingClientRect()[a]}px`,kc(this._element),this._element.classList.add(Of),this._element.classList.remove(kr,nm);for(const o of this._triggerArray){const h=Ce.getElementFromSelector(o);h&&!this._isShown(h)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(Of),this._element.classList.add(kr),ae.trigger(this._element,kT)};this._element.style[a]="",this._queueCallback(r,this._element,!0)}_isShown(n=this._element){return n.classList.contains(nm)}_configAfterMerge(n){return n.toggle=!!n.toggle,n.parent=Us(n.parent),n}_getDimension(){return this._element.classList.contains(BT)?VT:qT}_initializeChildren(){if(!this._config.parent)return;const n=this._getFirstLevelChildren(jm);for(const a of n){const r=Ce.getElementFromSelector(a);r&&this._addAriaAndCollapsedClass([a],this._isShown(r))}}_getFirstLevelChildren(n){const a=Ce.find($T,this._config.parent);return Ce.find(n,this._config.parent).filter(r=>!a.includes(r))}_addAriaAndCollapsedClass(n,a){if(n.length)for(const r of n)r.classList.toggle(HT,!a),r.setAttribute("aria-expanded",a)}static jQueryInterface(n){const a={};return typeof n=="string"&&/show|hide/.test(n)&&(a.toggle=!1),this.each(function(){const r=Tc.getOrCreateInstance(this,a);if(typeof n=="string"){if(typeof r[n]>"u")throw new TypeError(`No method named "${n}"`);r[n]()}})}}ae.on(document,UT,jm,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const n of Ce.getMultipleElementsFromSelector(this))Tc.getOrCreateInstance(n,{toggle:!1}).toggle()});oi(Tc);const Ab="dropdown",IT="bs.dropdown",jl=`.${IT}`,np=".data-api",GT="Escape",wb="Tab",FT="ArrowUp",Tb="ArrowDown",XT=2,QT=`hide${jl}`,ZT=`hidden${jl}`,WT=`show${jl}`,JT=`shown${jl}`,Ly=`click${jl}${np}`,My=`keydown${jl}${np}`,e1=`keyup${jl}${np}`,zr="show",t1="dropup",n1="dropend",i1="dropstart",a1="dropup-center",s1="dropdown-center",xl='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',l1=`${xl}.${zr}`,Bf=".dropdown-menu",r1=".navbar",o1=".navbar-nav",c1=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",u1=li()?"top-end":"top-start",f1=li()?"top-start":"top-end",d1=li()?"bottom-end":"bottom-start",h1=li()?"bottom-start":"bottom-end",m1=li()?"left-start":"right-start",p1=li()?"right-start":"left-start",g1="top",v1="bottom",b1={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},_1={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Fi extends Ni{constructor(n,a){super(n,a),this._popper=null,this._parent=this._element.parentNode,this._menu=Ce.next(this._element,Bf)[0]||Ce.prev(this._element,Bf)[0]||Ce.findOne(Bf,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return b1}static get DefaultType(){return _1}static get NAME(){return Ab}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Hs(this._element)||this._isShown())return;const n={relatedTarget:this._element};if(!ae.trigger(this._element,WT,n).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(o1))for(const r of[].concat(...document.body.children))ae.on(r,"mouseover",Ff);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(zr),this._element.classList.add(zr),ae.trigger(this._element,JT,n)}}hide(){if(Hs(this._element)||!this._isShown())return;const n={relatedTarget:this._element};this._completeHide(n)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(n){if(!ae.trigger(this._element,QT,n).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ae.off(r,"mouseover",Ff);this._popper&&this._popper.destroy(),this._menu.classList.remove(zr),this._element.classList.remove(zr),this._element.setAttribute("aria-expanded","false"),La.removeDataAttribute(this._menu,"popper"),ae.trigger(this._element,ZT,n)}}_getConfig(n){if(n=super._getConfig(n),typeof n.reference=="object"&&!Ra(n.reference)&&typeof n.reference.getBoundingClientRect!="function")throw new TypeError(`${Ab.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return n}_createPopper(){if(typeof gy>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let n=this._element;this._config.reference==="parent"?n=this._parent:Ra(this._config.reference)?n=Us(this._config.reference):typeof this._config.reference=="object"&&(n=this._config.reference);const a=this._getPopperConfig();this._popper=Jm(n,this._menu,a)}_isShown(){return this._menu.classList.contains(zr)}_getPlacement(){const n=this._parent;if(n.classList.contains(n1))return m1;if(n.classList.contains(i1))return p1;if(n.classList.contains(a1))return g1;if(n.classList.contains(s1))return v1;const a=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return n.classList.contains(t1)?a?f1:u1:a?h1:d1}_detectNavbar(){return this._element.closest(r1)!==null}_getOffset(){const{offset:n}=this._config;return typeof n=="string"?n.split(",").map(a=>Number.parseInt(a,10)):typeof n=="function"?a=>n(a,this._element):n}_getPopperConfig(){const n={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(La.setDataAttribute(this._menu,"popper","static"),n.modifiers=[{name:"applyStyles",enabled:!1}]),{...n,...Cn(this._config.popperConfig,[void 0,n])}}_selectMenuItem({key:n,target:a}){const r=Ce.find(c1,this._menu).filter(o=>Qr(o));r.length&&ep(r,a,n===Tb,!r.includes(a)).focus()}static jQueryInterface(n){return this.each(function(){const a=Fi.getOrCreateInstance(this,n);if(typeof n=="string"){if(typeof a[n]>"u")throw new TypeError(`No method named "${n}"`);a[n]()}})}static clearMenus(n){if(n.button===XT||n.type==="keyup"&&n.key!==wb)return;const a=Ce.find(l1);for(const r of a){const o=Fi.getInstance(r);if(!o||o._config.autoClose===!1)continue;const h=n.composedPath(),m=h.includes(o._menu);if(h.includes(o._element)||o._config.autoClose==="inside"&&!m||o._config.autoClose==="outside"&&m||o._menu.contains(n.target)&&(n.type==="keyup"&&n.key===wb||/input|select|option|textarea|form/i.test(n.target.tagName)))continue;const p={relatedTarget:o._element};n.type==="click"&&(p.clickEvent=n),o._completeHide(p)}}static dataApiKeydownHandler(n){const a=/input|textarea/i.test(n.target.tagName),r=n.key===GT,o=[FT,Tb].includes(n.key);if(!o&&!r||a&&!r)return;n.preventDefault();const h=this.matches(xl)?this:Ce.prev(this,xl)[0]||Ce.next(this,xl)[0]||Ce.findOne(xl,n.delegateTarget.parentNode),m=Fi.getOrCreateInstance(h);if(o){n.stopPropagation(),m.show(),m._selectMenuItem(n);return}m._isShown()&&(n.stopPropagation(),m.hide(),h.focus())}}ae.on(document,My,xl,Fi.dataApiKeydownHandler);ae.on(document,My,Bf,Fi.dataApiKeydownHandler);ae.on(document,Ly,Fi.clearMenus);ae.on(document,e1,Fi.clearMenus);ae.on(document,Ly,xl,function(s){s.preventDefault(),Fi.getOrCreateInstance(this).toggle()});oi(Fi);const zy="backdrop",y1="fade",Ob="show",jb=`mousedown.bs.${zy}`,x1={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},E1={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ky extends Uc{constructor(n){super(),this._config=this._getConfig(n),this._isAppended=!1,this._element=null}static get Default(){return x1}static get DefaultType(){return E1}static get NAME(){return zy}show(n){if(!this._config.isVisible){Cn(n);return}this._append();const a=this._getElement();this._config.isAnimated&&kc(a),a.classList.add(Ob),this._emulateAnimation(()=>{Cn(n)})}hide(n){if(!this._config.isVisible){Cn(n);return}this._getElement().classList.remove(Ob),this._emulateAnimation(()=>{this.dispose(),Cn(n)})}dispose(){this._isAppended&&(ae.off(this._element,jb),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const n=document.createElement("div");n.className=this._config.className,this._config.isAnimated&&n.classList.add(y1),this._element=n}return this._element}_configAfterMerge(n){return n.rootElement=Us(n.rootElement),n}_append(){if(this._isAppended)return;const n=this._getElement();this._config.rootElement.append(n),ae.on(n,jb,()=>{Cn(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(n){xy(n,this._getElement(),this._config.isAnimated)}}const S1="focustrap",N1="bs.focustrap",Qf=`.${N1}`,A1=`focusin${Qf}`,w1=`keydown.tab${Qf}`,T1="Tab",O1="forward",Cb="backward",j1={autofocus:!0,trapElement:null},C1={autofocus:"boolean",trapElement:"element"};class Uy extends Uc{constructor(n){super(),this._config=this._getConfig(n),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return j1}static get DefaultType(){return C1}static get NAME(){return S1}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ae.off(document,Qf),ae.on(document,A1,n=>this._handleFocusin(n)),ae.on(document,w1,n=>this._handleKeydown(n)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ae.off(document,Qf))}_handleFocusin(n){const{trapElement:a}=this._config;if(n.target===document||n.target===a||a.contains(n.target))return;const r=Ce.focusableChildren(a);r.length===0?a.focus():this._lastTabNavDirection===Cb?r[r.length-1].focus():r[0].focus()}_handleKeydown(n){n.key===T1&&(this._lastTabNavDirection=n.shiftKey?Cb:O1)}}const Db=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Rb=".sticky-top",jf="padding-right",Lb="margin-right";class Cm{constructor(){this._element=document.body}getWidth(){const n=document.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}hide(){const n=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,jf,a=>a+n),this._setElementAttributes(Db,jf,a=>a+n),this._setElementAttributes(Rb,Lb,a=>a-n)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,jf),this._resetElementAttributes(Db,jf),this._resetElementAttributes(Rb,Lb)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(n,a,r){const o=this.getWidth(),h=m=>{if(m!==this._element&&window.innerWidth>m.clientWidth+o)return;this._saveInitialAttribute(m,a);const p=window.getComputedStyle(m).getPropertyValue(a);m.style.setProperty(a,`${r(Number.parseFloat(p))}px`)};this._applyManipulationCallback(n,h)}_saveInitialAttribute(n,a){const r=n.style.getPropertyValue(a);r&&La.setDataAttribute(n,a,r)}_resetElementAttributes(n,a){const r=o=>{const h=La.getDataAttribute(o,a);if(h===null){o.style.removeProperty(a);return}La.removeDataAttribute(o,a),o.style.setProperty(a,h)};this._applyManipulationCallback(n,r)}_applyManipulationCallback(n,a){if(Ra(n)){a(n);return}for(const r of Ce.find(n,this._element))a(r)}}const D1="modal",R1="bs.modal",ri=`.${R1}`,L1=".data-api",M1="Escape",z1=`hide${ri}`,k1=`hidePrevented${ri}`,Hy=`hidden${ri}`,$y=`show${ri}`,U1=`shown${ri}`,H1=`resize${ri}`,$1=`click.dismiss${ri}`,B1=`mousedown.dismiss${ri}`,V1=`keydown.dismiss${ri}`,q1=`click${ri}${L1}`,Mb="modal-open",P1="fade",zb="show",im="modal-static",Y1=".modal.show",K1=".modal-dialog",I1=".modal-body",G1='[data-bs-toggle="modal"]',F1={backdrop:!0,focus:!0,keyboard:!0},X1={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Pr extends Ni{constructor(n,a){super(n,a),this._dialog=Ce.findOne(K1,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Cm,this._addEventListeners()}static get Default(){return F1}static get DefaultType(){return X1}static get NAME(){return D1}toggle(n){return this._isShown?this.hide():this.show(n)}show(n){this._isShown||this._isTransitioning||ae.trigger(this._element,$y,{relatedTarget:n}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Mb),this._adjustDialog(),this._backdrop.show(()=>this._showElement(n)))}hide(){!this._isShown||this._isTransitioning||ae.trigger(this._element,z1).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(zb),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ae.off(window,ri),ae.off(this._dialog,ri),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ky({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Uy({trapElement:this._element})}_showElement(n){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const a=Ce.findOne(I1,this._dialog);a&&(a.scrollTop=0),kc(this._element),this._element.classList.add(zb);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ae.trigger(this._element,U1,{relatedTarget:n})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ae.on(this._element,V1,n=>{if(n.key===M1){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ae.on(window,H1,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ae.on(this._element,B1,n=>{ae.one(this._element,$1,a=>{if(!(this._element!==n.target||this._element!==a.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Mb),this._resetAdjustments(),this._scrollBar.reset(),ae.trigger(this._element,Hy)})}_isAnimated(){return this._element.classList.contains(P1)}_triggerBackdropTransition(){if(ae.trigger(this._element,k1).defaultPrevented)return;const a=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(im)||(a||(this._element.style.overflowY="hidden"),this._element.classList.add(im),this._queueCallback(()=>{this._element.classList.remove(im),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const n=this._element.scrollHeight>document.documentElement.clientHeight,a=this._scrollBar.getWidth(),r=a>0;if(r&&!n){const o=li()?"paddingLeft":"paddingRight";this._element.style[o]=`${a}px`}if(!r&&n){const o=li()?"paddingRight":"paddingLeft";this._element.style[o]=`${a}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(n,a){return this.each(function(){const r=Pr.getOrCreateInstance(this,n);if(typeof n=="string"){if(typeof r[n]>"u")throw new TypeError(`No method named "${n}"`);r[n](a)}})}}ae.on(document,q1,G1,function(s){const n=Ce.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&s.preventDefault(),ae.one(n,$y,o=>{o.defaultPrevented||ae.one(n,Hy,()=>{Qr(this)&&this.focus()})});const a=Ce.findOne(Y1);a&&Pr.getInstance(a).hide(),Pr.getOrCreateInstance(n).toggle(this)});od(Pr);oi(Pr);const Q1="offcanvas",Z1="bs.offcanvas",Ha=`.${Z1}`,By=".data-api",W1=`load${Ha}${By}`,J1="Escape",kb="show",Ub="showing",Hb="hiding",eO="offcanvas-backdrop",Vy=".offcanvas.show",tO=`show${Ha}`,nO=`shown${Ha}`,iO=`hide${Ha}`,$b=`hidePrevented${Ha}`,qy=`hidden${Ha}`,aO=`resize${Ha}`,sO=`click${Ha}${By}`,lO=`keydown.dismiss${Ha}`,rO='[data-bs-toggle="offcanvas"]',oO={backdrop:!0,keyboard:!0,scroll:!1},cO={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Zi extends Ni{constructor(n,a){super(n,a),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return oO}static get DefaultType(){return cO}static get NAME(){return Q1}toggle(n){return this._isShown?this.hide():this.show(n)}show(n){if(this._isShown||ae.trigger(this._element,tO,{relatedTarget:n}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Cm().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ub);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(kb),this._element.classList.remove(Ub),ae.trigger(this._element,nO,{relatedTarget:n})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ae.trigger(this._element,iO).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Hb),this._backdrop.hide();const a=()=>{this._element.classList.remove(kb,Hb),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Cm().reset(),ae.trigger(this._element,qy)};this._queueCallback(a,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const n=()=>{if(this._config.backdrop==="static"){ae.trigger(this._element,$b);return}this.hide()},a=!!this._config.backdrop;return new ky({className:eO,isVisible:a,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:a?n:null})}_initializeFocusTrap(){return new Uy({trapElement:this._element})}_addEventListeners(){ae.on(this._element,lO,n=>{if(n.key===J1){if(this._config.keyboard){this.hide();return}ae.trigger(this._element,$b)}})}static jQueryInterface(n){return this.each(function(){const a=Zi.getOrCreateInstance(this,n);if(typeof n=="string"){if(a[n]===void 0||n.startsWith("_")||n==="constructor")throw new TypeError(`No method named "${n}"`);a[n](this)}})}}ae.on(document,sO,rO,function(s){const n=Ce.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),Hs(this))return;ae.one(n,qy,()=>{Qr(this)&&this.focus()});const a=Ce.findOne(Vy);a&&a!==n&&Zi.getInstance(a).hide(),Zi.getOrCreateInstance(n).toggle(this)});ae.on(window,W1,()=>{for(const s of Ce.find(Vy))Zi.getOrCreateInstance(s).show()});ae.on(window,aO,()=>{for(const s of Ce.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(s).position!=="fixed"&&Zi.getOrCreateInstance(s).hide()});od(Zi);oi(Zi);const uO=/^aria-[\w-]*$/i,Py={"*":["class","dir","id","lang","role",uO],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},fO=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),dO=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,hO=(s,n)=>{const a=s.nodeName.toLowerCase();return n.includes(a)?fO.has(a)?!!dO.test(s.nodeValue):!0:n.filter(r=>r instanceof RegExp).some(r=>r.test(a))};function mO(s,n,a){if(!s.length)return s;if(a&&typeof a=="function")return a(s);const o=new window.DOMParser().parseFromString(s,"text/html"),h=[].concat(...o.body.querySelectorAll("*"));for(const m of h){const p=m.nodeName.toLowerCase();if(!Object.keys(n).includes(p)){m.remove();continue}const b=[].concat(...m.attributes),v=[].concat(n["*"]||[],n[p]||[]);for(const _ of b)hO(_,v)||m.removeAttribute(_.nodeName)}return o.body.innerHTML}const pO="TemplateFactory",gO={allowList:Py,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},vO={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},bO={entry:"(string|element|function|null)",selector:"(string|element)"};class _O extends Uc{constructor(n){super(),this._config=this._getConfig(n)}static get Default(){return gO}static get DefaultType(){return vO}static get NAME(){return pO}getContent(){return Object.values(this._config.content).map(n=>this._resolvePossibleFunction(n)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(n){return this._checkContent(n),this._config.content={...this._config.content,...n},this}toHtml(){const n=document.createElement("div");n.innerHTML=this._maybeSanitize(this._config.template);for(const[o,h]of Object.entries(this._config.content))this._setContent(n,h,o);const a=n.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&a.classList.add(...r.split(" ")),a}_typeCheckConfig(n){super._typeCheckConfig(n),this._checkContent(n.content)}_checkContent(n){for(const[a,r]of Object.entries(n))super._typeCheckConfig({selector:a,entry:r},bO)}_setContent(n,a,r){const o=Ce.findOne(r,n);if(o){if(a=this._resolvePossibleFunction(a),!a){o.remove();return}if(Ra(a)){this._putElementInTemplate(Us(a),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(a);return}o.textContent=a}}_maybeSanitize(n){return this._config.sanitize?mO(n,this._config.allowList,this._config.sanitizeFn):n}_resolvePossibleFunction(n){return Cn(n,[void 0,this])}_putElementInTemplate(n,a){if(this._config.html){a.innerHTML="",a.append(n);return}a.textContent=n.textContent}}const yO="tooltip",xO=new Set(["sanitize","allowList","sanitizeFn"]),am="fade",EO="modal",Cf="show",SO=".tooltip-inner",Bb=`.${EO}`,Vb="hide.bs.modal",yc="hover",sm="focus",lm="click",NO="manual",AO="hide",wO="hidden",TO="show",OO="shown",jO="inserted",CO="click",DO="focusin",RO="focusout",LO="mouseenter",MO="mouseleave",zO={AUTO:"auto",TOP:"top",RIGHT:li()?"left":"right",BOTTOM:"bottom",LEFT:li()?"right":"left"},kO={allowList:Py,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},UO={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Wr extends Ni{constructor(n,a){if(typeof gy>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(n,a),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return kO}static get DefaultType(){return UO}static get NAME(){return yO}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ae.off(this._element.closest(Bb),Vb,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const n=ae.trigger(this._element,this.constructor.eventName(TO)),r=(_y(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(n.defaultPrevented||!r)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:h}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(h.append(o),ae.trigger(this._element,this.constructor.eventName(jO))),this._popper=this._createPopper(o),o.classList.add(Cf),"ontouchstart"in document.documentElement)for(const p of[].concat(...document.body.children))ae.on(p,"mouseover",Ff);const m=()=>{ae.trigger(this._element,this.constructor.eventName(OO)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(m,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ae.trigger(this._element,this.constructor.eventName(AO)).defaultPrevented)return;if(this._getTipElement().classList.remove(Cf),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))ae.off(o,"mouseover",Ff);this._activeTrigger[lm]=!1,this._activeTrigger[sm]=!1,this._activeTrigger[yc]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ae.trigger(this._element,this.constructor.eventName(wO)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(n){const a=this._getTemplateFactory(n).toHtml();if(!a)return null;a.classList.remove(am,Cf),a.classList.add(`bs-${this.constructor.NAME}-auto`);const r=Nw(this.constructor.NAME).toString();return a.setAttribute("id",r),this._isAnimated()&&a.classList.add(am),a}setContent(n){this._newContent=n,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(n){return this._templateFactory?this._templateFactory.changeContent(n):this._templateFactory=new _O({...this._config,content:n,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[SO]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(n){return this.constructor.getOrCreateInstance(n.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(am)}_isShown(){return this.tip&&this.tip.classList.contains(Cf)}_createPopper(n){const a=Cn(this._config.placement,[this,n,this._element]),r=zO[a.toUpperCase()];return Jm(this._element,n,this._getPopperConfig(r))}_getOffset(){const{offset:n}=this._config;return typeof n=="string"?n.split(",").map(a=>Number.parseInt(a,10)):typeof n=="function"?a=>n(a,this._element):n}_resolvePossibleFunction(n){return Cn(n,[this._element,this._element])}_getPopperConfig(n){const a={placement:n,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...a,...Cn(this._config.popperConfig,[void 0,a])}}_setListeners(){const n=this._config.trigger.split(" ");for(const a of n)if(a==="click")ae.on(this._element,this.constructor.eventName(CO),this._config.selector,r=>{const o=this._initializeOnDelegatedTarget(r);o._activeTrigger[lm]=!(o._isShown()&&o._activeTrigger[lm]),o.toggle()});else if(a!==NO){const r=a===yc?this.constructor.eventName(LO):this.constructor.eventName(DO),o=a===yc?this.constructor.eventName(MO):this.constructor.eventName(RO);ae.on(this._element,r,this._config.selector,h=>{const m=this._initializeOnDelegatedTarget(h);m._activeTrigger[h.type==="focusin"?sm:yc]=!0,m._enter()}),ae.on(this._element,o,this._config.selector,h=>{const m=this._initializeOnDelegatedTarget(h);m._activeTrigger[h.type==="focusout"?sm:yc]=m._element.contains(h.relatedTarget),m._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ae.on(this._element.closest(Bb),Vb,this._hideModalHandler)}_fixTitle(){const n=this._element.getAttribute("title");n&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",n),this._element.setAttribute("data-bs-original-title",n),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(n,a){clearTimeout(this._timeout),this._timeout=setTimeout(n,a)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(n){const a=La.getDataAttributes(this._element);for(const r of Object.keys(a))xO.has(r)&&delete a[r];return n={...a,...typeof n=="object"&&n?n:{}},n=this._mergeConfigObj(n),n=this._configAfterMerge(n),this._typeCheckConfig(n),n}_configAfterMerge(n){return n.container=n.container===!1?document.body:Us(n.container),typeof n.delay=="number"&&(n.delay={show:n.delay,hide:n.delay}),typeof n.title=="number"&&(n.title=n.title.toString()),typeof n.content=="number"&&(n.content=n.content.toString()),n}_getDelegateConfig(){const n={};for(const[a,r]of Object.entries(this._config))this.constructor.Default[a]!==r&&(n[a]=r);return n.selector=!1,n.trigger="manual",n}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(n){return this.each(function(){const a=Wr.getOrCreateInstance(this,n);if(typeof n=="string"){if(typeof a[n]>"u")throw new TypeError(`No method named "${n}"`);a[n]()}})}}oi(Wr);const HO="popover",$O=".popover-header",BO=".popover-body",VO={...Wr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},qO={...Wr.DefaultType,content:"(null|string|element|function)"};class ip extends Wr{static get Default(){return VO}static get DefaultType(){return qO}static get NAME(){return HO}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[$O]:this._getTitle(),[BO]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(n){return this.each(function(){const a=ip.getOrCreateInstance(this,n);if(typeof n=="string"){if(typeof a[n]>"u")throw new TypeError(`No method named "${n}"`);a[n]()}})}}oi(ip);const PO="scrollspy",YO="bs.scrollspy",ap=`.${YO}`,KO=".data-api",IO=`activate${ap}`,qb=`click${ap}`,GO=`load${ap}${KO}`,FO="dropdown-item",Rr="active",XO='[data-bs-spy="scroll"]',rm="[href]",QO=".nav, .list-group",Pb=".nav-link",ZO=".nav-item",WO=".list-group-item",JO=`${Pb}, ${ZO} > ${Pb}, ${WO}`,ej=".dropdown",tj=".dropdown-toggle",nj={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ij={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class fd extends Ni{constructor(n,a){super(n,a),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return nj}static get DefaultType(){return ij}static get NAME(){return PO}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const n of this._observableSections.values())this._observer.observe(n)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(n){return n.target=Us(n.target)||document.body,n.rootMargin=n.offset?`${n.offset}px 0px -30%`:n.rootMargin,typeof n.threshold=="string"&&(n.threshold=n.threshold.split(",").map(a=>Number.parseFloat(a))),n}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ae.off(this._config.target,qb),ae.on(this._config.target,qb,rm,n=>{const a=this._observableSections.get(n.target.hash);if(a){n.preventDefault();const r=this._rootElement||window,o=a.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){const n={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(a=>this._observerCallback(a),n)}_observerCallback(n){const a=m=>this._targetLinks.get(`#${m.target.id}`),r=m=>{this._previousScrollData.visibleEntryTop=m.target.offsetTop,this._process(a(m))},o=(this._rootElement||document.documentElement).scrollTop,h=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const m of n){if(!m.isIntersecting){this._activeTarget=null,this._clearActiveClass(a(m));continue}const p=m.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(h&&p){if(r(m),!o)return;continue}!h&&!p&&r(m)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const n=Ce.find(rm,this._config.target);for(const a of n){if(!a.hash||Hs(a))continue;const r=Ce.findOne(decodeURI(a.hash),this._element);Qr(r)&&(this._targetLinks.set(decodeURI(a.hash),a),this._observableSections.set(a.hash,r))}}_process(n){this._activeTarget!==n&&(this._clearActiveClass(this._config.target),this._activeTarget=n,n.classList.add(Rr),this._activateParents(n),ae.trigger(this._element,IO,{relatedTarget:n}))}_activateParents(n){if(n.classList.contains(FO)){Ce.findOne(tj,n.closest(ej)).classList.add(Rr);return}for(const a of Ce.parents(n,QO))for(const r of Ce.prev(a,JO))r.classList.add(Rr)}_clearActiveClass(n){n.classList.remove(Rr);const a=Ce.find(`${rm}.${Rr}`,n);for(const r of a)r.classList.remove(Rr)}static jQueryInterface(n){return this.each(function(){const a=fd.getOrCreateInstance(this,n);if(typeof n=="string"){if(a[n]===void 0||n.startsWith("_")||n==="constructor")throw new TypeError(`No method named "${n}"`);a[n]()}})}}ae.on(window,GO,()=>{for(const s of Ce.find(XO))fd.getOrCreateInstance(s)});oi(fd);const aj="tab",sj="bs.tab",Cl=`.${sj}`,lj=`hide${Cl}`,rj=`hidden${Cl}`,oj=`show${Cl}`,cj=`shown${Cl}`,uj=`click${Cl}`,fj=`keydown${Cl}`,dj=`load${Cl}`,hj="ArrowLeft",Yb="ArrowRight",mj="ArrowUp",Kb="ArrowDown",om="Home",Ib="End",El="active",Gb="fade",cm="show",pj="dropdown",Yy=".dropdown-toggle",gj=".dropdown-menu",um=`:not(${Yy})`,vj='.list-group, .nav, [role="tablist"]',bj=".nav-item, .list-group-item",_j=`.nav-link${um}, .list-group-item${um}, [role="tab"]${um}`,Ky='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',fm=`${_j}, ${Ky}`,yj=`.${El}[data-bs-toggle="tab"], .${El}[data-bs-toggle="pill"], .${El}[data-bs-toggle="list"]`;class Yr extends Ni{constructor(n){super(n),this._parent=this._element.closest(vj),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ae.on(this._element,fj,a=>this._keydown(a)))}static get NAME(){return aj}show(){const n=this._element;if(this._elemIsActive(n))return;const a=this._getActiveElem(),r=a?ae.trigger(a,lj,{relatedTarget:n}):null;ae.trigger(n,oj,{relatedTarget:a}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(a,n),this._activate(n,a))}_activate(n,a){if(!n)return;n.classList.add(El),this._activate(Ce.getElementFromSelector(n));const r=()=>{if(n.getAttribute("role")!=="tab"){n.classList.add(cm);return}n.removeAttribute("tabindex"),n.setAttribute("aria-selected",!0),this._toggleDropDown(n,!0),ae.trigger(n,cj,{relatedTarget:a})};this._queueCallback(r,n,n.classList.contains(Gb))}_deactivate(n,a){if(!n)return;n.classList.remove(El),n.blur(),this._deactivate(Ce.getElementFromSelector(n));const r=()=>{if(n.getAttribute("role")!=="tab"){n.classList.remove(cm);return}n.setAttribute("aria-selected",!1),n.setAttribute("tabindex","-1"),this._toggleDropDown(n,!1),ae.trigger(n,rj,{relatedTarget:a})};this._queueCallback(r,n,n.classList.contains(Gb))}_keydown(n){if(![hj,Yb,mj,Kb,om,Ib].includes(n.key))return;n.stopPropagation(),n.preventDefault();const a=this._getChildren().filter(o=>!Hs(o));let r;if([om,Ib].includes(n.key))r=a[n.key===om?0:a.length-1];else{const o=[Yb,Kb].includes(n.key);r=ep(a,n.target,o,!0)}r&&(r.focus({preventScroll:!0}),Yr.getOrCreateInstance(r).show())}_getChildren(){return Ce.find(fm,this._parent)}_getActiveElem(){return this._getChildren().find(n=>this._elemIsActive(n))||null}_setInitialAttributes(n,a){this._setAttributeIfNotExists(n,"role","tablist");for(const r of a)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(n){n=this._getInnerElement(n);const a=this._elemIsActive(n),r=this._getOuterElement(n);n.setAttribute("aria-selected",a),r!==n&&this._setAttributeIfNotExists(r,"role","presentation"),a||n.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(n,"role","tab"),this._setInitialAttributesOnTargetPanel(n)}_setInitialAttributesOnTargetPanel(n){const a=Ce.getElementFromSelector(n);a&&(this._setAttributeIfNotExists(a,"role","tabpanel"),n.id&&this._setAttributeIfNotExists(a,"aria-labelledby",`${n.id}`))}_toggleDropDown(n,a){const r=this._getOuterElement(n);if(!r.classList.contains(pj))return;const o=(h,m)=>{const p=Ce.findOne(h,r);p&&p.classList.toggle(m,a)};o(Yy,El),o(gj,cm),r.setAttribute("aria-expanded",a)}_setAttributeIfNotExists(n,a,r){n.hasAttribute(a)||n.setAttribute(a,r)}_elemIsActive(n){return n.classList.contains(El)}_getInnerElement(n){return n.matches(fm)?n:Ce.findOne(fm,n)}_getOuterElement(n){return n.closest(bj)||n}static jQueryInterface(n){return this.each(function(){const a=Yr.getOrCreateInstance(this);if(typeof n=="string"){if(a[n]===void 0||n.startsWith("_")||n==="constructor")throw new TypeError(`No method named "${n}"`);a[n]()}})}}ae.on(document,uj,Ky,function(s){["A","AREA"].includes(this.tagName)&&s.preventDefault(),!Hs(this)&&Yr.getOrCreateInstance(this).show()});ae.on(window,dj,()=>{for(const s of Ce.find(yj))Yr.getOrCreateInstance(s)});oi(Yr);const xj="toast",Ej="bs.toast",Ps=`.${Ej}`,Sj=`mouseover${Ps}`,Nj=`mouseout${Ps}`,Aj=`focusin${Ps}`,wj=`focusout${Ps}`,Tj=`hide${Ps}`,Oj=`hidden${Ps}`,jj=`show${Ps}`,Cj=`shown${Ps}`,Dj="fade",Fb="hide",Df="show",Rf="showing",Rj={animation:"boolean",autohide:"boolean",delay:"number"},Lj={animation:!0,autohide:!0,delay:5e3};class dd extends Ni{constructor(n,a){super(n,a),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Lj}static get DefaultType(){return Rj}static get NAME(){return xj}show(){if(ae.trigger(this._element,jj).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Dj);const a=()=>{this._element.classList.remove(Rf),ae.trigger(this._element,Cj),this._maybeScheduleHide()};this._element.classList.remove(Fb),kc(this._element),this._element.classList.add(Df,Rf),this._queueCallback(a,this._element,this._config.animation)}hide(){if(!this.isShown()||ae.trigger(this._element,Tj).defaultPrevented)return;const a=()=>{this._element.classList.add(Fb),this._element.classList.remove(Rf,Df),ae.trigger(this._element,Oj)};this._element.classList.add(Rf),this._queueCallback(a,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Df),super.dispose()}isShown(){return this._element.classList.contains(Df)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(n,a){switch(n.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=a;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=a;break}}if(a){this._clearTimeout();return}const r=n.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ae.on(this._element,Sj,n=>this._onInteraction(n,!0)),ae.on(this._element,Nj,n=>this._onInteraction(n,!1)),ae.on(this._element,Aj,n=>this._onInteraction(n,!0)),ae.on(this._element,wj,n=>this._onInteraction(n,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(n){return this.each(function(){const a=dd.getOrCreateInstance(this,n);if(typeof n=="string"){if(typeof a[n]>"u")throw new TypeError(`No method named "${n}"`);a[n](this)}})}}od(dd);oi(dd);function Mj(){const{user:s}=Ua(),n=s?.role==="RH"||s?.role==="ADMIN",[a,r]=j.useState([]),[o,h]=j.useState(!0),[m,p]=j.useState(""),[b,v]=j.useState(1),[_,N]=j.useState(10),[C,D]=j.useState(0),[A,M]=j.useState(null),[R,I]=j.useState(null),[H,G]=j.useState(!0),[F,Q]=j.useState(null),[Z,ie]=j.useState(""),[ne,re]=j.useState(""),[ge,Se]=j.useState(!1),[Ae,Te]=j.useState(""),[se,Ne]=j.useState(1),[B,te]=j.useState(10),he=j.useRef(null),ke=ce=>Array.isArray(ce)?ce:ce&&Array.isArray(ce.results)?ce.results:[],w=async()=>{he.current?.abort?.();const ce=new AbortController;he.current=ce,h(!0),p("");try{const tt=new URLSearchParams;tt.set("page",b),tt.set("page_size",_),tt.set("ordering","matricule");const{data:At}=await et.get(`/employees/?${tt.toString()}`,{signal:ce.signal});r(ke(At)),D(At?.count??(Array.isArray(At)?At.length:0)),M(At?.next||null),I(At?.previous||null)}catch(tt){tt.name!=="CanceledError"&&tt.name!=="AbortError"&&(p("Impossible de charger les employés."),r([]),D(0),M(null),I(null))}finally{h(!1)}};j.useEffect(()=>{if(n)return w(),()=>he.current?.abort?.()},[b,_,n]);const T=j.useMemo(()=>(a||[]).filter(ce=>!ce.has_user),[a]),le=j.useMemo(()=>(a||[]).filter(ce=>ce.has_user),[a]),oe=le.length,pe=Math.max(1,Math.ceil(oe/B)),Oe=(se-1)*B,Ee=le.slice(Oe,Oe+B),fe=j.useMemo(()=>H?T:a,[a,H,T]),Re=ce=>{Q(ce),ie(ce?.email||""),re(""),Te(""),setTimeout(()=>{const tt=document.getElementById("offcanvasCreate");tt&&Zi.getOrCreateInstance(tt).show()},0)},ve=()=>{const ce=document.getElementById("offcanvasCreate");ce&&Zi.getOrCreateInstance(ce).hide()},Gn=async ce=>{if(ce.preventDefault(),!(!F||!Z)){Se(!0),Te("");try{const{data:tt}=await et.post("/employees/create-account/",{employee_id:F.id,email:Z,password:ne||void 0});Te(`Compte créé pour ${Z}. Mot de passe: ${tt.temp_password}`),await w(),ve()}catch{Te("Création impossible. Vérifiez l'email (unique) et vos droits.")}finally{Se(!1)}}},yn=(ce,tt)=>{r(At=>(At||[]).map(Kt=>Kt.id===ce?{...Kt,user_is_active:tt,has_user:!0}:Kt))},Ji=ce=>{r(tt=>(tt||[]).map(At=>At.id===ce?{...At,user_is_active:null,user_email:null,user_created_at:null,has_user:!1}:At))},Ai=async ce=>{if(window.confirm("Désactiver ce compte utilisateur ?"))try{yn(ce,!1),await et.post(`/employees/${ce}/deactivate-account/`),await w()}catch{alert("Impossible de désactiver le compte."),await w()}},Ln=async ce=>{if(window.confirm("Réactiver ce compte utilisateur ?"))try{yn(ce,!0),await et.post(`/employees/${ce}/activate-account/`),await w()}catch{alert("Impossible de réactiver le compte."),await w()}},$a=async ce=>{if(window.confirm("Supprimer définitivement ce compte ?"))try{Ji(ce),await et.delete(`/employees/${ce}/delete-account/`),await w()}catch{alert("Suppression impossible."),await w()}},Fn=async()=>{try{const ce=await et.get("/employees/accounts-export/",{responseType:"blob"}),tt=new Blob([ce.data],{type:"text/csv;charset=utf-8"}),At=window.URL.createObjectURL(tt),Kt=document.createElement("a");Kt.href=At,Kt.download="comptes_employes.csv",document.body.appendChild(Kt),Kt.click(),Kt.remove(),window.URL.revokeObjectURL(At)}catch{alert("Export CSV impossible.")}},Nt=async(ce,tt)=>{try{await et.post(`/employees/${ce}/invite/`,{login_url:window.location.origin+"/login",email:tt}),alert("Invitation envoyée.")}catch{alert("Envoi d’invitation impossible.")}},Ys=async ce=>{try{await et.post(`/employees/${ce}/send-reset/`,{reset_base_url:window.location.origin+"/reset"}),alert("Lien de réinitialisation envoyé.")}catch{alert("Impossible d’envoyer le lien de réinitialisation.")}};if(!n)return f.jsx("div",{className:"alert alert-warning",children:"Accès RH/Admin uniquement."});const ea=Math.max(1,Math.ceil(C/_));return f.jsxs("div",{className:"row g-4",children:[f.jsxs("div",{className:"col-12",children:[f.jsx("h3",{children:"Comptes utilisateurs — Employés"}),f.jsx("p",{className:"text-muted",children:"Les RH créent les accès pour les salariés (email + mot de passe), et peuvent désactiver, réactiver, supprimer, inviter par email ou envoyer un lien de réinitialisation."})]}),f.jsx("div",{className:"col-12",children:f.jsxs("div",{className:"d-flex align-items-center gap-3",children:[f.jsxs("div",{className:"form-check form-switch",children:[f.jsx("input",{className:"form-check-input",type:"checkbox",id:"switchOnly",checked:H,onChange:ce=>G(ce.target.checked)}),f.jsx("label",{className:"form-check-label",htmlFor:"switchOnly",children:"Afficher uniquement sans compte"})]}),f.jsxs("div",{className:"ms-auto d-flex align-items-center gap-2",children:[f.jsx("span",{className:"text-muted small",children:"Taille"}),f.jsxs("select",{className:"form-select form-select-sm",style:{width:90},value:_,onChange:ce=>{N(Number(ce.target.value)),v(1)},children:[f.jsx("option",{children:"10"}),f.jsx("option",{children:"20"}),f.jsx("option",{children:"50"})]})]})]})}),f.jsx("div",{className:"col-12",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsx("div",{className:"card-body",children:o?f.jsx("div",{className:"text-muted",children:"Chargement…"}):f.jsxs(f.Fragment,{children:[m&&f.jsx("div",{className:"alert alert-danger",children:m}),f.jsx("div",{className:"table-responsive",children:f.jsxs("table",{className:"table align-middle",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"Matricule"}),f.jsx("th",{children:"Nom"}),f.jsx("th",{children:"Plan"}),f.jsx("th",{children:"Accès"}),f.jsx("th",{className:"text-end",children:"Actions"})]})}),f.jsx("tbody",{children:!fe||fe.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:"5",className:"text-muted",children:"Aucun employé à afficher."})}):fe.map(ce=>f.jsxs("tr",{children:[f.jsx("td",{children:ce.matricule}),f.jsxs("td",{children:[ce.prenom," ",ce.nom]}),f.jsx("td",{children:ce.plan?ce.plan.type:"—"}),f.jsx("td",{children:ce.has_user?"Oui":"Non"}),f.jsx("td",{className:"text-end",children:ce.has_user?f.jsx("button",{className:"btn btn-sm btn-outline-secondary",type:"button",disabled:!0,children:"Déjà créé"}):f.jsx("button",{type:"button",className:"btn btn-sm btn-primary",onClick:()=>Re(ce),"data-bs-toggle":"offcanvas","data-bs-target":"#offcanvasCreate",children:"Créer accès"})})]},ce.id))})]})}),f.jsxs("div",{className:"d-flex justify-content-between align-items-center mt-3",children:[f.jsx("button",{className:"btn btn-outline-secondary",onClick:()=>v(ce=>Math.max(1,ce-1)),disabled:!R||b<=1,type:"button",children:"← Précédent"}),f.jsxs("div",{className:"small text-muted",children:["Page ",f.jsx("strong",{children:b})," / ",ea]}),f.jsx("button",{className:"btn btn-outline-secondary",onClick:()=>v(ce=>ce+1),disabled:!A||b>=ea,type:"button",children:"Suivant →"})]})]})})})}),f.jsx("div",{className:"col-12",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsxs("div",{className:"d-flex justify-content-between align-items-center mb-2",children:[f.jsx("h5",{className:"card-title mb-0",children:"Comptes créés"}),f.jsxs("div",{className:"d-flex align-items-center gap-2",children:[f.jsx("button",{className:"btn btn-sm btn-outline-primary",type:"button",onClick:Fn,children:"Exporter CSV"}),f.jsx("span",{className:"text-muted small",children:"Taille"}),f.jsxs("select",{className:"form-select form-select-sm",style:{width:90},value:B,onChange:ce=>{te(Number(ce.target.value)),Ne(1)},children:[f.jsx("option",{children:"10"}),f.jsx("option",{children:"20"}),f.jsx("option",{children:"50"})]})]})]}),f.jsx("div",{className:"table-responsive",children:f.jsxs("table",{className:"table align-middle",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"Date de création"}),f.jsx("th",{children:"Email"}),f.jsx("th",{children:"Nom utilisateur"}),f.jsx("th",{children:"Statut"}),f.jsx("th",{className:"text-end",children:"Actions"})]})}),f.jsx("tbody",{children:Ee.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:"5",className:"text-muted",children:"Aucun compte créé."})}):Ee.map(ce=>f.jsxs("tr",{children:[f.jsx("td",{children:ce.user_created_at?new Date(ce.user_created_at).toLocaleString():"—"}),f.jsx("td",{children:ce.user_email||"—"}),f.jsxs("td",{children:[ce.prenom," ",ce.nom]}),f.jsx("td",{children:ce.user_is_active?f.jsx("span",{className:"badge bg-success",children:"Actif"}):f.jsx("span",{className:"badge bg-secondary",children:"Désactivé"})}),f.jsx("td",{className:"text-end",children:f.jsxs("div",{className:"btn-group",children:[ce.user_is_active?f.jsx("button",{type:"button",className:"btn btn-sm btn-outline-warning",onClick:()=>Ai(ce.id),title:"Désactiver le compte",children:"Désactiver"}):f.jsx("button",{type:"button",className:"btn btn-sm btn-outline-success",onClick:()=>Ln(ce.id),title:"Réactiver le compte",children:"Réactiver"}),f.jsx("button",{type:"button",className:"btn btn-sm btn-outline-primary",onClick:()=>Nt(ce.id),title:"Envoyer une invitation",children:"Inviter"}),f.jsx("button",{type:"button",className:"btn btn-sm btn-outline-info",onClick:()=>Ys(ce.id),title:"Envoyer un lien de réinitialisation",children:"Reset"}),f.jsx("button",{type:"button",className:"btn btn-sm btn-outline-danger",onClick:()=>$a(ce.id),title:"Supprimer le compte",children:"Supprimer"})]})})]},ce.id))})]})}),f.jsxs("div",{className:"d-flex justify-content-between align-items-center mt-3",children:[f.jsx("button",{className:"btn btn-outline-secondary",onClick:()=>Ne(ce=>Math.max(1,ce-1)),disabled:se<=1,type:"button",children:"← Précédent"}),f.jsxs("div",{className:"small text-muted",children:["Page ",f.jsx("strong",{children:se})," / ",pe]}),f.jsx("button",{className:"btn btn-outline-secondary",onClick:()=>Ne(ce=>Math.min(pe,ce+1)),disabled:se>=pe,type:"button",children:"Suivant →"})]})]})})}),f.jsxs("div",{className:"offcanvas offcanvas-end",tabIndex:"-1",id:"offcanvasCreate","aria-labelledby":"offcanvasCreateLabel",children:[f.jsxs("div",{className:"offcanvas-header",children:[f.jsx("h5",{id:"offcanvasCreateLabel",className:"offcanvas-title",children:"Créer un accès employé"}),f.jsx("button",{type:"button",className:"btn-close","data-bs-dismiss":"offcanvas","aria-label":"Fermer"})]}),f.jsx("div",{className:"offcanvas-body",children:F?f.jsxs("form",{className:"row g-3",onSubmit:Gn,children:[f.jsx("div",{className:"col-12",children:f.jsxs("div",{className:"small text-muted mb-2",children:["Employé : ",f.jsxs("strong",{children:[F.matricule," — ",F.prenom," ",F.nom]})]})}),f.jsxs("div",{className:"col-12",children:[f.jsx("label",{className:"form-label",children:"Email"}),f.jsx("input",{type:"email",className:"form-control",value:Z,onChange:ce=>ie(ce.target.value),required:!0})]}),f.jsxs("div",{className:"col-12",children:[f.jsx("label",{className:"form-label",children:"Mot de passe (optionnel)"}),f.jsx("input",{type:"text",className:"form-control",placeholder:"Laisser vide pour générer",value:ne,onChange:ce=>re(ce.target.value)})]}),Ae&&f.jsx("div",{className:"alert alert-info",children:Ae}),f.jsx("div",{className:"col-12 d-grid",children:f.jsx("button",{className:"btn btn-primary",disabled:ge,children:ge?"Création…":"Créer le compte"})})]}):f.jsx("div",{className:"text-muted",children:"Sélectionnez un employé depuis la liste."})})]})]})}function zj(){const[s,n]=j.useState(null),[a,r]=j.useState([]),[o,h]=j.useState(null),[m,p]=j.useState(67),[b,v]=j.useState(""),[_,N]=j.useState(!0),[C,D]=j.useState(""),[A,M]=j.useState(""),R=j.useMemo(()=>a.find(ne=>String(ne.id)===String(o))||null,[a,o]),I=async(ne=67)=>{N(!0),D(""),M("");try{const{data:re}=await et.get(`/employees/me/bav/?age=${ne}`);n(re),p(ne),await H(re)}catch{D("Impossible de charger vos informations bAV.")}finally{N(!1)}},H=async ne=>{try{const{data:re}=await et.get("/plans/?page_size=1000"),Se=(Array.isArray(re?.results)?re.results:Array.isArray(re)?re:[]).map(se=>({id:se.id,type:se.type}));r(Se);const Ae=ne?.employee?.plan?.type||ne?.employee?.plan||null,Te=Se.find(se=>se.type===Ae)||Se[0]||null;h(Te?.id??null)}catch{const re=ne?.employee?.plan?.type||ne?.employee?.plan||null,ge=re?[{id:"current",type:re}]:[];r(ge),h(ge[0]?.id??null),M("Liste complète des plans indisponible — affichage du plan actuel uniquement.")}};j.useEffect(()=>{I(67)},[]);const G=()=>`Projection de pension (Plan ${R?.type||s?.employee?.plan?.type||s?.employee?.plan||"Standard"})`,F=ne=>(typeof ne=="number"?ne:Number(ne||0)).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2}),Q=async ne=>{ne?.preventDefault?.(),M(""),D("");try{N(!0);const re={target_age:Number(m)};o&&o!=="current"&&(re.plan_id=Number(o)),String(b).trim()!==""&&(re.last_salary=Number(b));const{data:ge}=await et.post("/employees/me/simulate/",re),Se=String(b).trim()!==""?Number(b):Number(s?.employee?.salaire||0);n(Ae=>Ae&&{...Ae,projection:{target_age:m,target_date:ge.inputs?.target_date,years_of_service:ge.inputs?.years_of_service,pension_annual:ge.result?.pension_annual,pension_monthly:ge.result?.pension_monthly,last_salary:Se}})}catch{D("Simulation impossible. Vérifiez vos paramètres.")}finally{N(!1)}},Z=async()=>{if(s?.employee?.id)try{const ne=new URLSearchParams;o&&o!=="current"&&ne.set("plan_id",o),String(b||"").trim()!==""&&ne.set("last_salary",b),m&&ne.set("target_age",m);const re=`/employees/${s.employee.id}/report.pdf?`+ne.toString(),ge=await et.get(re,{responseType:"blob"}),Se=new Blob([ge.data],{type:"application/pdf"}),Ae=document.createElement("a");Ae.href=window.URL.createObjectURL(Se),Ae.download=`rapport_bav_${s.employee.matricule||"me"}.pdf`,document.body.appendChild(Ae),Ae.click(),Ae.remove()}catch{alert("Téléchargement du PDF impossible.")}},ie=async()=>{if(!s?.employee?.id)return;const ne=`/employees/${s.employee.id}/contract.pdf`,re=await et.get(ne,{responseType:"blob"}),ge=new Blob([re.data],{type:"application/pdf"}),Se=document.createElement("a");Se.href=window.URL.createObjectURL(ge),Se.download=`contrat_bav_${s.employee.matricule||"me"}.pdf`,document.body.appendChild(Se),Se.click(),Se.remove()};return f.jsxs("div",{className:"container py-3",children:[f.jsx("h3",{children:"Mon bAV"}),_?f.jsx("div",{className:"text-muted",children:"Chargement…"}):C?f.jsx("div",{className:"alert alert-danger",children:C}):s?f.jsxs("div",{className:"row g-4",children:[f.jsx("div",{className:"col-12 col-lg-7",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsxs("div",{className:"row g-3 align-items-end",children:[f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:"Plan de retraite"}),f.jsx("select",{className:"form-select",value:o??"",onChange:ne=>h(ne.target.value),disabled:_,children:a.length===0?f.jsx("option",{value:"",children:"Aucun plan disponible"}):a.map(ne=>f.jsx("option",{value:ne.id,children:ne.type},`${ne.id}`))}),f.jsx("div",{className:"form-text",children:"Choisissez un plan proposé par votre entreprise."})]}),f.jsxs("div",{className:"col-12 col-md-3",children:[f.jsx("label",{className:"form-label",children:"Salaire (optionnel)"}),f.jsx("input",{type:"number",min:"0",step:"0.01",className:"form-control",placeholder:typeof s.employee.salaire=="number"?`${s.employee.salaire}`:"ex: 42000",value:b,onChange:ne=>v(ne.target.value),disabled:_}),f.jsx("div",{className:"form-text",children:"Laisse vide pour utiliser ton salaire enregistré."})]}),f.jsxs("div",{className:"col-12 col-md-3",children:[f.jsx("label",{className:"form-label",children:"Âge de départ"}),f.jsxs("div",{className:"input-group",children:[f.jsx("input",{type:"number",min:"55",max:"75",className:"form-control",value:m,onChange:ne=>p(ne.target.value),disabled:_}),f.jsx("button",{className:"btn btn-primary",onClick:Q,disabled:_,children:_?"…":"Simuler"})]}),f.jsx("div",{className:"form-text",children:"Par défaut : 67 ans"})]})]}),f.jsx("h5",{className:"card-title mt-3",children:G()}),!!A&&f.jsx("div",{className:"alert alert-warning py-2",children:A}),f.jsxs("div",{className:"row text-center mt-3",children:[f.jsxs("div",{className:"col-6",children:[f.jsx("div",{className:"small text-muted",children:"Pension annuelle (€)"}),f.jsx("div",{className:"fs-4 fw-bold",children:F(s.projection?.pension_annual)})]}),f.jsxs("div",{className:"col-6",children:[f.jsx("div",{className:"small text-muted",children:"Pension mensuelle (€)"}),f.jsx("div",{className:"fs-4 fw-bold",children:F(s.projection?.pension_monthly)})]})]}),f.jsx("hr",{}),f.jsxs("div",{className:"small",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-muted",children:"Âge cible :"})," ",s.projection?.target_age]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-muted",children:"Date cible :"})," ",s.projection?.target_date]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-muted",children:"Ancienneté (années) :"})," ",s.projection?.years_of_service]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-muted",children:"Salaire pris en compte :"})," ",F(s.projection?.last_salary??s.employee.salaire??0)," ","€"]})]}),f.jsxs("div",{className:"d-grid d-md-flex gap-2 mt-2",children:[f.jsx("button",{className:"btn btn-outline-secondary",onClick:Z,children:"Télécharger mon PDF (projection)"}),f.jsx("button",{className:"btn btn-outline-primary",onClick:ie,children:"Télécharger mon contrat"})]})]})})}),f.jsx("div",{className:"col-12 col-lg-5",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h6",{className:"text-muted",children:"Mes informations"}),f.jsxs("div",{className:"small",children:[f.jsxs("div",{children:[f.jsx("span",{className:"text-muted",children:"Matricule :"})," ",s.employee.matricule]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-muted",children:"Nom :"})," ",s.employee.prenom," ",s.employee.nom]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-muted",children:"Date d’entrée :"})," ",s.employee.date_entree||"—"]}),f.jsxs("div",{children:[f.jsx("span",{className:"text-muted",children:"Plan actuel :"})," ",s.employee?.plan?.type||s.employee?.plan||"—"]})]})]})})})]}):f.jsx("div",{className:"text-muted",children:"Aucune donnée."})]})}function kj(){const[s,n]=j.useState(null),[a,r]=j.useState(!1),[o,h]=j.useState(""),[m,p]=j.useState(""),b=j.useMemo(()=>{if(!s?.logo_url&&!s?.logo)return"";try{const D=s.logo_url||s.logo;return new URL(D,window.location.origin).toString()}catch{return s.logo_url||s.logo}},[s]),v=()=>{h(""),p("")},_=async()=>{v();try{const{data:D}=await et.get("/accounts/company/me/");n(D)}catch{h("Impossible de charger les informations de l’entreprise.")}};j.useEffect(()=>{_()},[]);const N=async D=>{if(D.preventDefault(),!!s){v(),r(!0);try{await et.patch("/accounts/company/me/",{name:s.name,address:s.address,phone:s.phone,email:s.email}),await _(),p("Modifications enregistrées.")}catch{h("Sauvegarde impossible.")}finally{r(!1)}}},C=async D=>{const A=D.target.files?.[0];if(!A)return;v();const M=new FormData;M.append("logo",A);try{await et.post("/accounts/company/me/logo/",M,{headers:{"Content-Type":"multipart/form-data"}}),await _(),p("Logo mis à jour.")}catch{h("Upload du logo impossible.")}finally{D.target.value=""}};return s?f.jsxs("div",{className:"container py-3",children:[f.jsx("h3",{children:"Paramètres de l’entreprise"}),!!o&&f.jsx("div",{className:"alert alert-danger",children:o}),!!m&&f.jsx("div",{className:"alert alert-success",children:m}),f.jsxs("div",{className:"row g-4",children:[f.jsx("div",{className:"col-12 col-lg-8",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsx("div",{className:"card-body",children:f.jsxs("form",{onSubmit:N,className:"row g-3",children:[f.jsxs("div",{className:"col-12",children:[f.jsx("label",{className:"form-label",children:"Nom"}),f.jsx("input",{className:"form-control",value:s.name||"",onChange:D=>n({...s,name:D.target.value})})]}),f.jsxs("div",{className:"col-12",children:[f.jsx("label",{className:"form-label",children:"Adresse"}),f.jsx("textarea",{className:"form-control",rows:3,value:s.address||"",onChange:D=>n({...s,address:D.target.value})})]}),f.jsxs("div",{className:"col-md-6",children:[f.jsx("label",{className:"form-label",children:"Téléphone"}),f.jsx("input",{className:"form-control",value:s.phone||"",onChange:D=>n({...s,phone:D.target.value})})]}),f.jsxs("div",{className:"col-md-6",children:[f.jsx("label",{className:"form-label",children:"Email"}),f.jsx("input",{type:"email",className:"form-control",value:s.email||"",onChange:D=>n({...s,email:D.target.value})})]}),f.jsx("div",{className:"col-12 d-grid d-md-flex gap-2",children:f.jsx("button",{className:"btn btn-primary",disabled:a,children:a?"Enregistrement…":"Enregistrer"})})]})})})}),f.jsx("div",{className:"col-12 col-lg-4",children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h6",{className:"mb-2",children:"Logo"}),b?f.jsx("img",{src:b,alt:"Logo",className:"img-fluid mb-2 border rounded"}):f.jsx("div",{className:"text-muted mb-2",children:"Aucun logo"}),f.jsx("input",{type:"file",accept:"image/*",onChange:C}),f.jsx("div",{className:"form-text",children:"PNG/JPG, toute taille acceptée."})]})})})]})]}):f.jsx("div",{className:"container py-3",children:o?f.jsx("div",{className:"alert alert-danger",children:o}):"Chargement…"})}function Uj(){const[s,n]=j.useState({id:null,name:"Ihr Unternehmen"}),{t:a}=Bs();return j.useEffect(()=>{let r=!0;return et.get("/accounts/company/name/").then(({data:o})=>{r&&o?.name&&n(o)}).catch(()=>{}),()=>{r=!1}},[]),f.jsxs("main",{className:"container py-4",role:"main","aria-labelledby":"about-title",children:[f.jsxs("section",{className:"text-center mb-4",children:[f.jsx("h1",{id:"about-title",className:"display-6 fw-semibold",children:a("about.title")}),f.jsx("p",{className:"lead text-muted mx-auto",style:{maxWidth:820},children:a("about.subtitle")}),f.jsxs("div",{className:"d-flex gap-2 justify-content-center mt-2 flex-wrap",children:[f.jsx(ft,{to:"/register",className:"btn btn-primary rounded-pill px-4",children:a("about.create_employer_account")}),f.jsx(ft,{to:"/actualites",className:"btn btn-outline-secondary rounded-pill px-4",children:a("about.read_news")})]})]}),f.jsxs("section",{className:"row g-4 mb-4","aria-label":a("about.mission_aria"),children:[f.jsx("div",{className:"col-12 col-lg-7",children:f.jsx("div",{className:"card border-0 shadow-sm h-100",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:a("about.mission_title")}),f.jsx("p",{className:"mb-2",children:a("about.mission_description")}),f.jsxs("ul",{className:"mb-0",children:[f.jsx("li",{children:a("about.mission_item1")}),f.jsx("li",{children:a("about.mission_item2")}),f.jsx("li",{children:a("about.mission_item3")})]})]})})}),f.jsx("div",{className:"col-12 col-lg-5",children:f.jsx("div",{className:"card border-0 shadow-sm h-100",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:a("about.simplification_title")}),f.jsx("p",{className:"mb-2",children:a("about.simplification_description")}),f.jsx("div",{className:"small text-muted",children:a("about.simplification_details")})]})})})]}),f.jsx("section",{className:"mb-4","aria-label":a("about.advantages_aria"),children:f.jsxs("div",{className:"row g-4",children:[f.jsx("div",{className:"col-md-4",children:f.jsxs("div",{className:"card border-0 shadow-sm h-100 p-4",children:[f.jsx("h3",{className:"h6 fw-bold text-primary mb-2",children:a("about.advantage1_title")}),f.jsx("p",{className:"mb-0 text-muted",children:a("about.advantage1_description")})]})}),f.jsx("div",{className:"col-md-4",children:f.jsxs("div",{className:"card border-0 shadow-sm h-100 p-4",children:[f.jsx("h3",{className:"h6 fw-bold text-primary mb-2",children:a("about.advantage2_title")}),f.jsx("p",{className:"mb-0 text-muted",children:a("about.advantage2_description")})]})}),f.jsx("div",{className:"col-md-4",children:f.jsxs("div",{className:"card border-0 shadow-sm h-100 p-4",children:[f.jsx("h3",{className:"h6 fw-bold text-primary mb-2",children:a("about.advantage3_title")}),f.jsx("p",{className:"mb-0 text-muted",children:a("about.advantage3_description")})]})})]})}),f.jsx("section",{className:"mb-4","aria-label":a("about.commitments_aria"),children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:a("about.commitments_title")}),f.jsxs("div",{className:"row g-4",children:[f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("h3",{className:"h6 mb-1",children:a("about.commitment1_title")}),f.jsx("p",{className:"mb-0",children:a("about.commitment1_description")})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("h3",{className:"h6 mb-1",children:a("about.commitment2_title")}),f.jsx("p",{className:"mb-0",children:a("about.commitment2_description")})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("h3",{className:"h6 mb-1",children:a("about.commitment3_title")}),f.jsx("p",{className:"mb-0",children:a("about.commitment3_description")})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("h3",{className:"h6 mb-1",children:a("about.commitment4_title")}),f.jsx("p",{className:"mb-0",children:a("about.commitment4_description")})]})]})]})})}),f.jsx("section",{className:"mb-4","aria-label":a("about.how_it_works_aria"),children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:a("about.how_it_works_title")}),f.jsxs("ol",{className:"mb-0",children:[f.jsxs("li",{children:[f.jsx("strong",{children:a("roles.rh")})," ",a("about.how_it_works_rh")]}),f.jsxs("li",{children:[f.jsx("strong",{children:a("roles.employee")})," ",a("about.how_it_works_employee")]})]})]})})}),f.jsx("section",{className:"mb-4","aria-label":a("about.trust_aria"),children:f.jsxs("div",{className:"row g-4",children:[f.jsx("div",{className:"col-12 col-lg-6",children:f.jsx("div",{className:"card border-0 shadow-sm h-100",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:a("about.compliance_title")}),f.jsxs("p",{className:"mb-0",children:[a("about.compliance_description"),s?.name?` ${a("about.of_company")} ${s.name}`:"",a("about.compliance_description_continued")]})]})})}),f.jsx("div",{className:"col-12 col-lg-6",children:f.jsx("div",{className:"card border-0 shadow-sm h-100",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:a("about.support_title")}),f.jsx("p",{className:"mb-0",children:a("about.support_description")})]})})})]})}),f.jsx("section",{className:"text-center",children:f.jsxs("div",{className:"d-inline-flex align-items-center gap-2 p-3 rounded border bg-light",children:[f.jsx("span",{className:"fw-semibold",children:a("about.ready_to_start")}),f.jsx(ft,{className:"btn btn-primary btn-sm",to:"/register",children:a("about.create_employer_account_short")})]})})]})}function Hj(){const[s,n]=j.useState({id:null,name:"Ihr Unternehmen"}),{t:a}=Bs();return j.useEffect(()=>{let r=!0;return et.get("/accounts/company/name/").then(({data:o})=>{r&&o?.name&&n(o)}).catch(()=>{}),()=>{r=!1}},[]),f.jsxs("main",{className:"container py-4",role:"main","aria-labelledby":"competence-title",children:[f.jsxs("header",{className:"mb-4 text-center",children:[f.jsx("h1",{id:"competence-title",className:"display-6 fw-semibold",children:a("competence.title")}),f.jsx("p",{className:"text-muted mb-0",children:a("competence.subtitle")}),f.jsxs("div",{className:"d-flex gap-2 justify-content-center mt-3 flex-wrap",children:[f.jsx(ft,{to:"/register",className:"btn btn-primary rounded-pill px-4",children:a("competence.create_employer_account")}),f.jsx(ft,{to:"/login",className:"btn btn-outline-secondary rounded-pill px-4",children:a("competence.employee_portal")})]})]}),f.jsx("section",{className:"row g-4 mb-4","aria-label":a("competence.expertise_areas_aria"),children:[{title:a("competence.expertise1_title"),text:a("competence.expertise1_description"),link:{to:"/employees",label:a("competence.expertise1_link")}},{title:a("competence.expertise2_title"),text:a("competence.expertise2_description"),link:{to:"/admin",label:a("competence.expertise2_link")}},{title:a("competence.expertise3_title"),text:a("competence.expertise3_description"),link:{to:"/plans",label:a("competence.expertise3_link")}},{title:a("competence.expertise4_title"),text:a("competence.expertise4_description"),link:{to:"/me",label:a("competence.expertise4_link")}}].map((r,o)=>f.jsx("div",{className:"col-12 col-md-6",children:f.jsx("div",{className:"card border-0 shadow-sm h-100",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:r.title}),f.jsx("p",{className:"mb-2",children:r.text}),r.link&&f.jsx(ft,{to:r.link.to,className:"btn btn-sm btn-outline-primary",children:r.link.label})]})})},o))}),f.jsx("section",{className:"mb-4","aria-label":a("competence.methodology_aria"),children:f.jsx("div",{className:"card border-0 shadow-sm",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:a("competence.methodology_title")}),f.jsxs("ol",{className:"mb-0",children:[f.jsxs("li",{children:[f.jsx("strong",{children:a("competence.methodology_step1_title")})," ",a("competence.methodology_step1_description")]}),f.jsxs("li",{children:[f.jsx("strong",{children:a("competence.methodology_step2_title")})," ",a("competence.methodology_step2_description")]}),f.jsxs("li",{children:[f.jsx("strong",{children:a("competence.methodology_step3_title")})," ",a("competence.methodology_step3_description")]}),f.jsxs("li",{children:[f.jsx("strong",{children:a("competence.methodology_step4_title")})," ",a("competence.methodology_step4_description")]}),f.jsxs("li",{children:[f.jsx("strong",{children:a("competence.methodology_step5_title")})," ",a("competence.methodology_step5_description")]})]})]})})}),f.jsxs("section",{className:"row g-4 mb-4","aria-label":a("competence.quality_aria"),children:[f.jsx("div",{className:"col-12 col-lg-6",children:f.jsx("div",{className:"card border-0 shadow-sm h-100",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:a("competence.quality_docs_title")}),f.jsxs("p",{className:"mb-0",children:[a("competence.quality_docs_description"),s?.name?` ${a("competence.of_company")} ${s.name}`:"",a("competence.quality_docs_continued")]})]})})}),f.jsx("div",{className:"col-12 col-lg-6",children:f.jsx("div",{className:"card border-0 shadow-sm h-100",children:f.jsxs("div",{className:"card-body",children:[f.jsx("h2",{className:"h5",children:a("competence.security_title")}),f.jsx("p",{className:"mb-0",children:a("competence.security_description")})]})})})]}),f.jsx("section",{className:"text-center",children:f.jsxs("div",{className:"d-inline-flex align-items-center gap-2 p-3 rounded border bg-light",children:[f.jsx("span",{className:"fw-semibold",children:a("competence.need_assistance")}),f.jsx(ft,{className:"btn btn-primary btn-sm",to:"/register",children:a("competence.create_employer_account_short")})]})})]})}function $j(){const[s,n]=j.useState({name:"Ihr Unternehmen"}),[a,r]=j.useState("all"),[o,h]=j.useState(""),{t:m}=Bs();j.useEffect(()=>{let _=!0;return et.get("/accounts/company/name/").then(({data:N})=>{_&&N?.name&&n(N)}).catch(()=>{}),()=>{_=!1}},[]);const p=j.useMemo(()=>[{id:"f1",theme:"finance",title:m("news.articles.finance.title"),blurb:m("news.articles.finance.blurb"),badge:m("news.articles.finance.badge"),date:new Date().toISOString()},{id:"a1",theme:"actuariat",title:m("news.articles.actuarial.title"),blurb:m("news.articles.actuarial.blurb"),badge:m("news.articles.actuarial.badge"),date:new Date().toISOString()},{id:"s1",theme:"securite-sociale",title:m("news.articles.social_security.title"),blurb:m("news.articles.social_security.blurb"),badge:m("news.articles.social_security.badge"),date:new Date().toISOString()},{id:"i1",theme:"assurance",title:m("news.articles.insurance.title"),blurb:m("news.articles.insurance.blurb"),badge:m("news.articles.insurance.badge"),date:new Date().toISOString()},{id:"b1",theme:"bav",title:m("news.articles.bav.title"),blurb:m("news.articles.bav.blurb"),badge:m("news.articles.bav.badge"),date:new Date().toISOString()}],[m]),b=[{key:"all",label:m("news.themes.all")},{key:"finance",label:m("news.themes.finance")},{key:"actuariat",label:m("news.themes.actuarial")},{key:"securite-sociale",label:m("news.themes.social_security")},{key:"assurance",label:m("news.themes.insurance")},{key:"bav",label:m("news.themes.bav")}],v=j.useMemo(()=>p.filter(_=>{const N=a==="all"||_.theme===a,C=!o.trim()||_.title.toLowerCase().includes(o.toLowerCase())||_.blurb.toLowerCase().includes(o.toLowerCase());return N&&C}),[p,a,o]);return f.jsxs("main",{className:"container py-4",role:"main","aria-labelledby":"news-title",children:[f.jsxs("header",{className:"mb-4 text-center",children:[f.jsxs("h1",{id:"news-title",className:"display-6 fw-semibold",children:[m("news.title")," — ",s.name]}),f.jsx("p",{className:"text-muted mb-0",children:m("news.subtitle")})]}),f.jsx("section",{className:"mb-3","aria-label":m("news.filters_aria"),children:f.jsxs("div",{className:"row g-2 align-items-end",children:[f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:m("news.theme_label")}),f.jsx("select",{className:"form-select",value:a,onChange:_=>r(_.target.value),"aria-label":m("news.theme_aria"),children:b.map(_=>f.jsx("option",{value:_.key,children:_.label},_.key))})]}),f.jsxs("div",{className:"col-12 col-md-6",children:[f.jsx("label",{className:"form-label",children:m("news.search_label")}),f.jsx("input",{className:"form-control",placeholder:m("news.search_placeholder"),value:o,onChange:_=>h(_.target.value),"aria-label":m("news.search_aria")})]})]})}),f.jsxs("section",{className:"row g-3","aria-label":m("news.articles_list_aria"),children:[v.map(_=>f.jsx("article",{className:"col-12 col-md-6 col-lg-4",children:f.jsxs("div",{className:"card border-0 shadow-sm h-100",children:[f.jsx("div",{className:"ratio ratio-16x9 bg-light d-flex align-items-center justify-content-center",children:f.jsx("span",{className:"text-muted small","aria-hidden":"true",children:m("news.illustration")})}),f.jsxs("div",{className:"card-body d-flex flex-column",children:[f.jsxs("div",{className:"d-flex align-items-center justify-content-between mb-2",children:[f.jsx("span",{className:"badge text-bg-primary",children:_.badge}),f.jsx("time",{className:"small text-muted",dateTime:_.date,children:new Date(_.date).toLocaleDateString("de-DE")})]}),f.jsx("h2",{className:"h6",children:_.title}),f.jsx("p",{className:"text-muted mb-3",children:_.blurb}),f.jsx("div",{className:"mt-auto",children:f.jsx("button",{className:"btn btn-outline-primary btn-sm",type:"button",disabled:!0,children:m("news.read_analysis")})})]})]})},_.id)),v.length===0&&f.jsx("div",{className:"col-12",children:f.jsx("div",{className:"border rounded p-3 text-center text-muted",children:m("news.no_results")})})]}),f.jsx("section",{className:"mt-4","aria-label":m("news.technical_integration_aria"),children:f.jsx("div",{className:"card border-0 bg-light",children:f.jsxs("div",{className:"card-body",children:[f.jsxs("p",{className:"small mb-2",children:[f.jsx("strong",{children:m("news.integration_note_title")})," ",m("news.integration_note_description")]}),f.jsxs("ul",{className:"small mb-0",children:[f.jsx("li",{children:m("news.integration_item1")}),f.jsx("li",{children:m("news.integration_item2")}),f.jsx("li",{children:m("news.integration_item3")})]})]})})})]})}function Bj(){return f.jsxs(aN,{children:[f.jsx(OA,{}),f.jsx("div",{className:"container py-4",children:f.jsxs(JE,{children:[f.jsx(jn,{path:"/",element:f.jsx(xN,{})}),f.jsx(jn,{path:"/about",element:f.jsx(Uj,{})}),f.jsx(jn,{path:"/competence",element:f.jsx(Hj,{})}),f.jsx(jn,{path:"/actualites",element:f.jsx($j,{})}),f.jsx(jn,{path:"/login",element:f.jsx(EN,{})}),f.jsx(jn,{path:"/register",element:f.jsx(SN,{})}),f.jsx(jn,{path:"/rh/plans",element:f.jsx(DA,{})})," ",f.jsx(jn,{path:"/rh/employes-donnees",element:f.jsx(RA,{})}),f.jsx(jn,{path:"/rh/simulateur",element:f.jsx(LA,{})}),f.jsx(jn,{path:"/rh/dashboard",element:f.jsx(MA,{})}),f.jsx(jn,{path:"/rh/employes",element:f.jsx(Mj,{})}),f.jsx(jn,{path:"/rh/entreprise",element:f.jsx(kj,{})}),f.jsx(jn,{path:"/mon-bav",element:f.jsx(zj,{})})]})}),f.jsx(CA,{})]})}var Vf={exports:{}};/*!
* Bootstrap v5.3.8 (https://getbootstrap.com/)
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/var Vj=Vf.exports,Xb;function qj(){return Xb||(Xb=1,(function(s,n){(function(a,r){s.exports=r()})(Vj,function(){const a=new Map,r={set(x,u,g){a.has(x)||a.set(x,new Map);const S=a.get(x);S.has(u)||S.size===0?S.set(u,g):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(S.keys())[0]}.`)},get:(x,u)=>a.has(x)&&a.get(x).get(u)||null,remove(x,u){if(!a.has(x))return;const g=a.get(x);g.delete(u),g.size===0&&a.delete(x)}},o="transitionend",h=x=>(x&&window.CSS&&window.CSS.escape&&(x=x.replace(/#([^\s"#']+)/g,(u,g)=>`#${CSS.escape(g)}`)),x),m=x=>x==null?`${x}`:Object.prototype.toString.call(x).match(/\s([a-z]+)/i)[1].toLowerCase(),p=x=>{x.dispatchEvent(new Event(o))},b=x=>!(!x||typeof x!="object")&&(x.jquery!==void 0&&(x=x[0]),x.nodeType!==void 0),v=x=>b(x)?x.jquery?x[0]:x:typeof x=="string"&&x.length>0?document.querySelector(h(x)):null,_=x=>{if(!b(x)||x.getClientRects().length===0)return!1;const u=getComputedStyle(x).getPropertyValue("visibility")==="visible",g=x.closest("details:not([open])");if(!g)return u;if(g!==x){const S=x.closest("summary");if(S&&S.parentNode!==g||S===null)return!1}return u},N=x=>!x||x.nodeType!==Node.ELEMENT_NODE||!!x.classList.contains("disabled")||(x.disabled!==void 0?x.disabled:x.hasAttribute("disabled")&&x.getAttribute("disabled")!=="false"),C=x=>{if(!document.documentElement.attachShadow)return null;if(typeof x.getRootNode=="function"){const u=x.getRootNode();return u instanceof ShadowRoot?u:null}return x instanceof ShadowRoot?x:x.parentNode?C(x.parentNode):null},D=()=>{},A=x=>{x.offsetHeight},M=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,R=[],I=()=>document.documentElement.dir==="rtl",H=x=>{var u;u=()=>{const g=M();if(g){const S=x.NAME,z=g.fn[S];g.fn[S]=x.jQueryInterface,g.fn[S].Constructor=x,g.fn[S].noConflict=()=>(g.fn[S]=z,x.jQueryInterface)}},document.readyState==="loading"?(R.length||document.addEventListener("DOMContentLoaded",()=>{for(const g of R)g()}),R.push(u)):u()},G=(x,u=[],g=x)=>typeof x=="function"?x.call(...u):g,F=(x,u,g=!0)=>{if(!g)return void G(x);const S=(Y=>{if(!Y)return 0;let{transitionDuration:J,transitionDelay:ue}=window.getComputedStyle(Y);const be=Number.parseFloat(J),_e=Number.parseFloat(ue);return be||_e?(J=J.split(",")[0],ue=ue.split(",")[0],1e3*(Number.parseFloat(J)+Number.parseFloat(ue))):0})(u)+5;let z=!1;const k=({target:Y})=>{Y===u&&(z=!0,u.removeEventListener(o,k),G(x))};u.addEventListener(o,k),setTimeout(()=>{z||p(u)},S)},Q=(x,u,g,S)=>{const z=x.length;let k=x.indexOf(u);return k===-1?!g&&S?x[z-1]:x[0]:(k+=g?1:-1,S&&(k=(k+z)%z),x[Math.max(0,Math.min(k,z-1))])},Z=/[^.]*(?=\..*)\.|.*/,ie=/\..*/,ne=/::\d+$/,re={};let ge=1;const Se={mouseenter:"mouseover",mouseleave:"mouseout"},Ae=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Te(x,u){return u&&`${u}::${ge++}`||x.uidEvent||ge++}function se(x){const u=Te(x);return x.uidEvent=u,re[u]=re[u]||{},re[u]}function Ne(x,u,g=null){return Object.values(x).find(S=>S.callable===u&&S.delegationSelector===g)}function B(x,u,g){const S=typeof u=="string",z=S?g:u||g;let k=w(x);return Ae.has(k)||(k=x),[S,z,k]}function te(x,u,g,S,z){if(typeof u!="string"||!x)return;let[k,Y,J]=B(u,g,S);u in Se&&(Y=(Be=>function(je){if(!je.relatedTarget||je.relatedTarget!==je.delegateTarget&&!je.delegateTarget.contains(je.relatedTarget))return Be.call(this,je)})(Y));const ue=se(x),be=ue[J]||(ue[J]={}),_e=Ne(be,Y,k?g:null);if(_e)return void(_e.oneOff=_e.oneOff&&z);const me=Te(Y,u.replace(Z,"")),$e=k?(function(De,Be,je){return function Ue(it){const st=De.querySelectorAll(Be);for(let{target:qe}=it;qe&&qe!==this;qe=qe.parentNode)for(const Ke of st)if(Ke===qe)return le(it,{delegateTarget:qe}),Ue.oneOff&&T.off(De,it.type,Be,je),je.apply(qe,[it])}})(x,g,Y):(function(De,Be){return function je(Ue){return le(Ue,{delegateTarget:De}),je.oneOff&&T.off(De,Ue.type,Be),Be.apply(De,[Ue])}})(x,Y);$e.delegationSelector=k?g:null,$e.callable=Y,$e.oneOff=z,$e.uidEvent=me,be[me]=$e,x.addEventListener(J,$e,k)}function he(x,u,g,S,z){const k=Ne(u[g],S,z);k&&(x.removeEventListener(g,k,!!z),delete u[g][k.uidEvent])}function ke(x,u,g,S){const z=u[g]||{};for(const[k,Y]of Object.entries(z))k.includes(S)&&he(x,u,g,Y.callable,Y.delegationSelector)}function w(x){return x=x.replace(ie,""),Se[x]||x}const T={on(x,u,g,S){te(x,u,g,S,!1)},one(x,u,g,S){te(x,u,g,S,!0)},off(x,u,g,S){if(typeof u!="string"||!x)return;const[z,k,Y]=B(u,g,S),J=Y!==u,ue=se(x),be=ue[Y]||{},_e=u.startsWith(".");if(k===void 0){if(_e)for(const me of Object.keys(ue))ke(x,ue,me,u.slice(1));for(const[me,$e]of Object.entries(be)){const De=me.replace(ne,"");J&&!u.includes(De)||he(x,ue,Y,$e.callable,$e.delegationSelector)}}else{if(!Object.keys(be).length)return;he(x,ue,Y,k,z?g:null)}},trigger(x,u,g){if(typeof u!="string"||!x)return null;const S=M();let z=null,k=!0,Y=!0,J=!1;u!==w(u)&&S&&(z=S.Event(u,g),S(x).trigger(z),k=!z.isPropagationStopped(),Y=!z.isImmediatePropagationStopped(),J=z.isDefaultPrevented());const ue=le(new Event(u,{bubbles:k,cancelable:!0}),g);return J&&ue.preventDefault(),Y&&x.dispatchEvent(ue),ue.defaultPrevented&&z&&z.preventDefault(),ue}};function le(x,u={}){for(const[g,S]of Object.entries(u))try{x[g]=S}catch{Object.defineProperty(x,g,{configurable:!0,get:()=>S})}return x}function oe(x){if(x==="true")return!0;if(x==="false")return!1;if(x===Number(x).toString())return Number(x);if(x===""||x==="null")return null;if(typeof x!="string")return x;try{return JSON.parse(decodeURIComponent(x))}catch{return x}}function pe(x){return x.replace(/[A-Z]/g,u=>`-${u.toLowerCase()}`)}const Oe={setDataAttribute(x,u,g){x.setAttribute(`data-bs-${pe(u)}`,g)},removeDataAttribute(x,u){x.removeAttribute(`data-bs-${pe(u)}`)},getDataAttributes(x){if(!x)return{};const u={},g=Object.keys(x.dataset).filter(S=>S.startsWith("bs")&&!S.startsWith("bsConfig"));for(const S of g){let z=S.replace(/^bs/,"");z=z.charAt(0).toLowerCase()+z.slice(1),u[z]=oe(x.dataset[S])}return u},getDataAttribute:(x,u)=>oe(x.getAttribute(`data-bs-${pe(u)}`))};class Ee{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(u){return u=this._mergeConfigObj(u),u=this._configAfterMerge(u),this._typeCheckConfig(u),u}_configAfterMerge(u){return u}_mergeConfigObj(u,g){const S=b(g)?Oe.getDataAttribute(g,"config"):{};return{...this.constructor.Default,...typeof S=="object"?S:{},...b(g)?Oe.getDataAttributes(g):{},...typeof u=="object"?u:{}}}_typeCheckConfig(u,g=this.constructor.DefaultType){for(const[S,z]of Object.entries(g)){const k=u[S],Y=b(k)?"element":m(k);if(!new RegExp(z).test(Y))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${S}" provided type "${Y}" but expected type "${z}".`)}}}class fe extends Ee{constructor(u,g){super(),(u=v(u))&&(this._element=u,this._config=this._getConfig(g),r.set(this._element,this.constructor.DATA_KEY,this))}dispose(){r.remove(this._element,this.constructor.DATA_KEY),T.off(this._element,this.constructor.EVENT_KEY);for(const u of Object.getOwnPropertyNames(this))this[u]=null}_queueCallback(u,g,S=!0){F(u,g,S)}_getConfig(u){return u=this._mergeConfigObj(u,this._element),u=this._configAfterMerge(u),this._typeCheckConfig(u),u}static getInstance(u){return r.get(v(u),this.DATA_KEY)}static getOrCreateInstance(u,g={}){return this.getInstance(u)||new this(u,typeof g=="object"?g:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(u){return`${u}${this.EVENT_KEY}`}}const Re=x=>{let u=x.getAttribute("data-bs-target");if(!u||u==="#"){let g=x.getAttribute("href");if(!g||!g.includes("#")&&!g.startsWith("."))return null;g.includes("#")&&!g.startsWith("#")&&(g=`#${g.split("#")[1]}`),u=g&&g!=="#"?g.trim():null}return u?u.split(",").map(g=>h(g)).join(","):null},ve={find:(x,u=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(u,x)),findOne:(x,u=document.documentElement)=>Element.prototype.querySelector.call(u,x),children:(x,u)=>[].concat(...x.children).filter(g=>g.matches(u)),parents(x,u){const g=[];let S=x.parentNode.closest(u);for(;S;)g.push(S),S=S.parentNode.closest(u);return g},prev(x,u){let g=x.previousElementSibling;for(;g;){if(g.matches(u))return[g];g=g.previousElementSibling}return[]},next(x,u){let g=x.nextElementSibling;for(;g;){if(g.matches(u))return[g];g=g.nextElementSibling}return[]},focusableChildren(x){const u=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(g=>`${g}:not([tabindex^="-"])`).join(",");return this.find(u,x).filter(g=>!N(g)&&_(g))},getSelectorFromElement(x){const u=Re(x);return u&&ve.findOne(u)?u:null},getElementFromSelector(x){const u=Re(x);return u?ve.findOne(u):null},getMultipleElementsFromSelector(x){const u=Re(x);return u?ve.find(u):[]}},Gn=(x,u="hide")=>{const g=`click.dismiss${x.EVENT_KEY}`,S=x.NAME;T.on(document,g,`[data-bs-dismiss="${S}"]`,function(z){if(["A","AREA"].includes(this.tagName)&&z.preventDefault(),N(this))return;const k=ve.getElementFromSelector(this)||this.closest(`.${S}`);x.getOrCreateInstance(k)[u]()})},yn=".bs.alert",Ji=`close${yn}`,Ai=`closed${yn}`;class Ln extends fe{static get NAME(){return"alert"}close(){if(T.trigger(this._element,Ji).defaultPrevented)return;this._element.classList.remove("show");const u=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,u)}_destroyElement(){this._element.remove(),T.trigger(this._element,Ai),this.dispose()}static jQueryInterface(u){return this.each(function(){const g=Ln.getOrCreateInstance(this);if(typeof u=="string"){if(g[u]===void 0||u.startsWith("_")||u==="constructor")throw new TypeError(`No method named "${u}"`);g[u](this)}})}}Gn(Ln,"close"),H(Ln);const $a='[data-bs-toggle="button"]';class Fn extends fe{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(u){return this.each(function(){const g=Fn.getOrCreateInstance(this);u==="toggle"&&g[u]()})}}T.on(document,"click.bs.button.data-api",$a,x=>{x.preventDefault();const u=x.target.closest($a);Fn.getOrCreateInstance(u).toggle()}),H(Fn);const Nt=".bs.swipe",Ys=`touchstart${Nt}`,ea=`touchmove${Nt}`,ce=`touchend${Nt}`,tt=`pointerdown${Nt}`,At=`pointerup${Nt}`,Kt={endCallback:null,leftCallback:null,rightCallback:null},Ks={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ta extends Ee{constructor(u,g){super(),this._element=u,u&&ta.isSupported()&&(this._config=this._getConfig(g),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Kt}static get DefaultType(){return Ks}static get NAME(){return"swipe"}dispose(){T.off(this._element,Nt)}_start(u){this._supportPointerEvents?this._eventIsPointerPenTouch(u)&&(this._deltaX=u.clientX):this._deltaX=u.touches[0].clientX}_end(u){this._eventIsPointerPenTouch(u)&&(this._deltaX=u.clientX-this._deltaX),this._handleSwipe(),G(this._config.endCallback)}_move(u){this._deltaX=u.touches&&u.touches.length>1?0:u.touches[0].clientX-this._deltaX}_handleSwipe(){const u=Math.abs(this._deltaX);if(u<=40)return;const g=u/this._deltaX;this._deltaX=0,g&&G(g>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(T.on(this._element,tt,u=>this._start(u)),T.on(this._element,At,u=>this._end(u)),this._element.classList.add("pointer-event")):(T.on(this._element,Ys,u=>this._start(u)),T.on(this._element,ea,u=>this._move(u)),T.on(this._element,ce,u=>this._end(u)))}_eventIsPointerPenTouch(u){return this._supportPointerEvents&&(u.pointerType==="pen"||u.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const It=".bs.carousel",Mt=".data-api",Mn="ArrowLeft",cn="ArrowRight",Is="next",Ba="prev",Va="left",na="right",Dl=`slide${It}`,ci=`slid${It}`,Rl=`keydown${It}`,Gs=`mouseenter${It}`,hd=`mouseleave${It}`,Bc=`dragstart${It}`,Vc=`load${It}${Mt}`,Jr=`click${It}${Mt}`,qa="carousel",Ll="active",eo=".active",to=".carousel-item",no=eo+to,io={[Mn]:na,[cn]:Va},qc={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},md={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class un extends fe{constructor(u,g){super(u,g),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ve.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===qa&&this.cycle()}static get Default(){return qc}static get DefaultType(){return md}static get NAME(){return"carousel"}next(){this._slide(Is)}nextWhenVisible(){!document.hidden&&_(this._element)&&this.next()}prev(){this._slide(Ba)}pause(){this._isSliding&&p(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?T.one(this._element,ci,()=>this.cycle()):this.cycle())}to(u){const g=this._getItems();if(u>g.length-1||u<0)return;if(this._isSliding)return void T.one(this._element,ci,()=>this.to(u));const S=this._getItemIndex(this._getActive());if(S===u)return;const z=u>S?Is:Ba;this._slide(z,g[u])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(u){return u.defaultInterval=u.interval,u}_addEventListeners(){this._config.keyboard&&T.on(this._element,Rl,u=>this._keydown(u)),this._config.pause==="hover"&&(T.on(this._element,Gs,()=>this.pause()),T.on(this._element,hd,()=>this._maybeEnableCycle())),this._config.touch&&ta.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const g of ve.find(".carousel-item img",this._element))T.on(g,Bc,S=>S.preventDefault());const u={leftCallback:()=>this._slide(this._directionToOrder(Va)),rightCallback:()=>this._slide(this._directionToOrder(na)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ta(this._element,u)}_keydown(u){if(/input|textarea/i.test(u.target.tagName))return;const g=io[u.key];g&&(u.preventDefault(),this._slide(this._directionToOrder(g)))}_getItemIndex(u){return this._getItems().indexOf(u)}_setActiveIndicatorElement(u){if(!this._indicatorsElement)return;const g=ve.findOne(eo,this._indicatorsElement);g.classList.remove(Ll),g.removeAttribute("aria-current");const S=ve.findOne(`[data-bs-slide-to="${u}"]`,this._indicatorsElement);S&&(S.classList.add(Ll),S.setAttribute("aria-current","true"))}_updateInterval(){const u=this._activeElement||this._getActive();if(!u)return;const g=Number.parseInt(u.getAttribute("data-bs-interval"),10);this._config.interval=g||this._config.defaultInterval}_slide(u,g=null){if(this._isSliding)return;const S=this._getActive(),z=u===Is,k=g||Q(this._getItems(),S,z,this._config.wrap);if(k===S)return;const Y=this._getItemIndex(k),J=me=>T.trigger(this._element,me,{relatedTarget:k,direction:this._orderToDirection(u),from:this._getItemIndex(S),to:Y});if(J(Dl).defaultPrevented||!S||!k)return;const ue=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(Y),this._activeElement=k;const be=z?"carousel-item-start":"carousel-item-end",_e=z?"carousel-item-next":"carousel-item-prev";k.classList.add(_e),A(k),S.classList.add(be),k.classList.add(be),this._queueCallback(()=>{k.classList.remove(be,_e),k.classList.add(Ll),S.classList.remove(Ll,_e,be),this._isSliding=!1,J(ci)},S,this._isAnimated()),ue&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return ve.findOne(no,this._element)}_getItems(){return ve.find(to,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(u){return I()?u===Va?Ba:Is:u===Va?Is:Ba}_orderToDirection(u){return I()?u===Ba?Va:na:u===Ba?na:Va}static jQueryInterface(u){return this.each(function(){const g=un.getOrCreateInstance(this,u);if(typeof u!="number"){if(typeof u=="string"){if(g[u]===void 0||u.startsWith("_")||u==="constructor")throw new TypeError(`No method named "${u}"`);g[u]()}}else g.to(u)})}}T.on(document,Jr,"[data-bs-slide], [data-bs-slide-to]",function(x){const u=ve.getElementFromSelector(this);if(!u||!u.classList.contains(qa))return;x.preventDefault();const g=un.getOrCreateInstance(u),S=this.getAttribute("data-bs-slide-to");return S?(g.to(S),void g._maybeEnableCycle()):Oe.getDataAttribute(this,"slide")==="next"?(g.next(),void g._maybeEnableCycle()):(g.prev(),void g._maybeEnableCycle())}),T.on(window,Vc,()=>{const x=ve.find('[data-bs-ride="carousel"]');for(const u of x)un.getOrCreateInstance(u)}),H(un);const wt=".bs.collapse",Jt=`show${wt}`,Pa=`shown${wt}`,ao=`hide${wt}`,pd=`hidden${wt}`,gd=`click${wt}.data-api`,Ml="show",Xn="collapse",Ya="collapsing",Ka=`:scope .${Xn} .${Xn}`,wi='[data-bs-toggle="collapse"]',Fs={parent:null,toggle:!0},Ia={parent:"(null|element)",toggle:"boolean"};class vt extends fe{constructor(u,g){super(u,g),this._isTransitioning=!1,this._triggerArray=[];const S=ve.find(wi);for(const z of S){const k=ve.getSelectorFromElement(z),Y=ve.find(k).filter(J=>J===this._element);k!==null&&Y.length&&this._triggerArray.push(z)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Fs}static get DefaultType(){return Ia}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let u=[];if(this._config.parent&&(u=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(z=>z!==this._element).map(z=>vt.getOrCreateInstance(z,{toggle:!1}))),u.length&&u[0]._isTransitioning||T.trigger(this._element,Jt).defaultPrevented)return;for(const z of u)z.hide();const g=this._getDimension();this._element.classList.remove(Xn),this._element.classList.add(Ya),this._element.style[g]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const S=`scroll${g[0].toUpperCase()+g.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ya),this._element.classList.add(Xn,Ml),this._element.style[g]="",T.trigger(this._element,Pa)},this._element,!0),this._element.style[g]=`${this._element[S]}px`}hide(){if(this._isTransitioning||!this._isShown()||T.trigger(this._element,ao).defaultPrevented)return;const u=this._getDimension();this._element.style[u]=`${this._element.getBoundingClientRect()[u]}px`,A(this._element),this._element.classList.add(Ya),this._element.classList.remove(Xn,Ml);for(const g of this._triggerArray){const S=ve.getElementFromSelector(g);S&&!this._isShown(S)&&this._addAriaAndCollapsedClass([g],!1)}this._isTransitioning=!0,this._element.style[u]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Ya),this._element.classList.add(Xn),T.trigger(this._element,pd)},this._element,!0)}_isShown(u=this._element){return u.classList.contains(Ml)}_configAfterMerge(u){return u.toggle=!!u.toggle,u.parent=v(u.parent),u}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const u=this._getFirstLevelChildren(wi);for(const g of u){const S=ve.getElementFromSelector(g);S&&this._addAriaAndCollapsedClass([g],this._isShown(S))}}_getFirstLevelChildren(u){const g=ve.find(Ka,this._config.parent);return ve.find(u,this._config.parent).filter(S=>!g.includes(S))}_addAriaAndCollapsedClass(u,g){if(u.length)for(const S of u)S.classList.toggle("collapsed",!g),S.setAttribute("aria-expanded",g)}static jQueryInterface(u){const g={};return typeof u=="string"&&/show|hide/.test(u)&&(g.toggle=!1),this.each(function(){const S=vt.getOrCreateInstance(this,g);if(typeof u=="string"){if(S[u]===void 0)throw new TypeError(`No method named "${u}"`);S[u]()}})}}T.on(document,gd,wi,function(x){(x.target.tagName==="A"||x.delegateTarget&&x.delegateTarget.tagName==="A")&&x.preventDefault();for(const u of ve.getMultipleElementsFromSelector(this))vt.getOrCreateInstance(u,{toggle:!1}).toggle()}),H(vt);var Ht="top",en="bottom",Ct="right",Tt="left",zl="auto",ia=[Ht,en,Ct,Tt],Ti="start",Ga="end",Xs="clippingParents",Fa="viewport",tn="popper",kl="reference",Ul=ia.reduce(function(x,u){return x.concat([u+"-"+Ti,u+"-"+Ga])},[]),Oi=[].concat(ia,[zl]).reduce(function(x,u){return x.concat([u,u+"-"+Ti,u+"-"+Ga])},[]),Hl="beforeRead",$l="read",Pc="afterRead",so="beforeMain",fn="main",lo="afterMain",Yc="beforeWrite",Qs="write",ro="afterWrite",Zs=[Hl,$l,Pc,so,fn,lo,Yc,Qs,ro];function Qn(x){return x?(x.nodeName||"").toLowerCase():null}function mt(x){if(x==null)return window;if(x.toString()!=="[object Window]"){var u=x.ownerDocument;return u&&u.defaultView||window}return x}function ui(x){return x instanceof mt(x).Element||x instanceof Element}function dn(x){return x instanceof mt(x).HTMLElement||x instanceof HTMLElement}function Ws(x){return typeof ShadowRoot<"u"&&(x instanceof mt(x).ShadowRoot||x instanceof ShadowRoot)}const ji={name:"applyStyles",enabled:!0,phase:"write",fn:function(x){var u=x.state;Object.keys(u.elements).forEach(function(g){var S=u.styles[g]||{},z=u.attributes[g]||{},k=u.elements[g];dn(k)&&Qn(k)&&(Object.assign(k.style,S),Object.keys(z).forEach(function(Y){var J=z[Y];J===!1?k.removeAttribute(Y):k.setAttribute(Y,J===!0?"":J)}))})},effect:function(x){var u=x.state,g={popper:{position:u.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(u.elements.popper.style,g.popper),u.styles=g,u.elements.arrow&&Object.assign(u.elements.arrow.style,g.arrow),function(){Object.keys(u.elements).forEach(function(S){var z=u.elements[S],k=u.attributes[S]||{},Y=Object.keys(u.styles.hasOwnProperty(S)?u.styles[S]:g[S]).reduce(function(J,ue){return J[ue]="",J},{});dn(z)&&Qn(z)&&(Object.assign(z.style,Y),Object.keys(k).forEach(function(J){z.removeAttribute(J)}))})}},requires:["computeStyles"]};function zn(x){return x.split("-")[0]}var Ci=Math.max,fi=Math.min,Xa=Math.round;function Bl(){var x=navigator.userAgentData;return x!=null&&x.brands&&Array.isArray(x.brands)?x.brands.map(function(u){return u.brand+"/"+u.version}).join(" "):navigator.userAgent}function oo(){return!/^((?!chrome|android).)*safari/i.test(Bl())}function Di(x,u,g){u===void 0&&(u=!1),g===void 0&&(g=!1);var S=x.getBoundingClientRect(),z=1,k=1;u&&dn(x)&&(z=x.offsetWidth>0&&Xa(S.width)/x.offsetWidth||1,k=x.offsetHeight>0&&Xa(S.height)/x.offsetHeight||1);var Y=(ui(x)?mt(x):window).visualViewport,J=!oo()&&g,ue=(S.left+(J&&Y?Y.offsetLeft:0))/z,be=(S.top+(J&&Y?Y.offsetTop:0))/k,_e=S.width/z,me=S.height/k;return{width:_e,height:me,top:be,right:ue+_e,bottom:be+me,left:ue,x:ue,y:be}}function co(x){var u=Di(x),g=x.offsetWidth,S=x.offsetHeight;return Math.abs(u.width-g)<=1&&(g=u.width),Math.abs(u.height-S)<=1&&(S=u.height),{x:x.offsetLeft,y:x.offsetTop,width:g,height:S}}function Kc(x,u){var g=u.getRootNode&&u.getRootNode();if(x.contains(u))return!0;if(g&&Ws(g)){var S=u;do{if(S&&x.isSameNode(S))return!0;S=S.parentNode||S.host}while(S)}return!1}function xn(x){return mt(x).getComputedStyle(x)}function uo(x){return["table","td","th"].indexOf(Qn(x))>=0}function Zn(x){return((ui(x)?x.ownerDocument:x.document)||window.document).documentElement}function di(x){return Qn(x)==="html"?x:x.assignedSlot||x.parentNode||(Ws(x)?x.host:null)||Zn(x)}function aa(x){return dn(x)&&xn(x).position!=="fixed"?x.offsetParent:null}function Qa(x){for(var u=mt(x),g=aa(x);g&&uo(g)&&xn(g).position==="static";)g=aa(g);return g&&(Qn(g)==="html"||Qn(g)==="body"&&xn(g).position==="static")?u:g||(function(S){var z=/firefox/i.test(Bl());if(/Trident/i.test(Bl())&&dn(S)&&xn(S).position==="fixed")return null;var k=di(S);for(Ws(k)&&(k=k.host);dn(k)&&["html","body"].indexOf(Qn(k))<0;){var Y=xn(k);if(Y.transform!=="none"||Y.perspective!=="none"||Y.contain==="paint"||["transform","perspective"].indexOf(Y.willChange)!==-1||z&&Y.willChange==="filter"||z&&Y.filter&&Y.filter!=="none")return k;k=k.parentNode}return null})(x)||u}function Js(x){return["top","bottom"].indexOf(x)>=0?"x":"y"}function Za(x,u,g){return Ci(x,fi(u,g))}function Wa(x){return Object.assign({},{top:0,right:0,bottom:0,left:0},x)}function Wn(x,u){return u.reduce(function(g,S){return g[S]=x,g},{})}const Vl={name:"arrow",enabled:!0,phase:"main",fn:function(x){var u,g=x.state,S=x.name,z=x.options,k=g.elements.arrow,Y=g.modifiersData.popperOffsets,J=zn(g.placement),ue=Js(J),be=[Tt,Ct].indexOf(J)>=0?"height":"width";if(k&&Y){var _e=(function(Je,Xe){return Wa(typeof(Je=typeof Je=="function"?Je(Object.assign({},Xe.rects,{placement:Xe.placement})):Je)!="number"?Je:Wn(Je,ia))})(z.padding,g),me=co(k),$e=ue==="y"?Ht:Tt,De=ue==="y"?en:Ct,Be=g.rects.reference[be]+g.rects.reference[ue]-Y[ue]-g.rects.popper[be],je=Y[ue]-g.rects.reference[ue],Ue=Qa(k),it=Ue?ue==="y"?Ue.clientHeight||0:Ue.clientWidth||0:0,st=Be/2-je/2,qe=_e[$e],Ke=it-me[be]-_e[De],de=it/2-me[be]/2+st,ye=Za(qe,de,Ke),Me=ue;g.modifiersData[S]=((u={})[Me]=ye,u.centerOffset=ye-de,u)}},effect:function(x){var u=x.state,g=x.options.element,S=g===void 0?"[data-popper-arrow]":g;S!=null&&(typeof S!="string"||(S=u.elements.popper.querySelector(S)))&&Kc(u.elements.popper,S)&&(u.elements.arrow=S)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jn(x){return x.split("-")[1]}var Ri={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ql(x){var u,g=x.popper,S=x.popperRect,z=x.placement,k=x.variation,Y=x.offsets,J=x.position,ue=x.gpuAcceleration,be=x.adaptive,_e=x.roundOffsets,me=x.isFixed,$e=Y.x,De=$e===void 0?0:$e,Be=Y.y,je=Be===void 0?0:Be,Ue=typeof _e=="function"?_e({x:De,y:je}):{x:De,y:je};De=Ue.x,je=Ue.y;var it=Y.hasOwnProperty("x"),st=Y.hasOwnProperty("y"),qe=Tt,Ke=Ht,de=window;if(be){var ye=Qa(g),Me="clientHeight",Je="clientWidth";ye===mt(g)&&xn(ye=Zn(g)).position!=="static"&&J==="absolute"&&(Me="scrollHeight",Je="scrollWidth"),(z===Ht||(z===Tt||z===Ct)&&k===Ga)&&(Ke=en,je-=(me&&ye===de&&de.visualViewport?de.visualViewport.height:ye[Me])-S.height,je*=ue?1:-1),z!==Tt&&(z!==Ht&&z!==en||k!==Ga)||(qe=Ct,De-=(me&&ye===de&&de.visualViewport?de.visualViewport.width:ye[Je])-S.width,De*=ue?1:-1)}var Xe,lt=Object.assign({position:J},be&&Ri),Vt=_e===!0?(function(Xt,Ot){var An=Xt.x,Ze=Xt.y,pt=Ot.devicePixelRatio||1;return{x:Xa(An*pt)/pt||0,y:Xa(Ze*pt)/pt||0}})({x:De,y:je},mt(g)):{x:De,y:je};return De=Vt.x,je=Vt.y,ue?Object.assign({},lt,((Xe={})[Ke]=st?"0":"",Xe[qe]=it?"0":"",Xe.transform=(de.devicePixelRatio||1)<=1?"translate("+De+"px, "+je+"px)":"translate3d("+De+"px, "+je+"px, 0)",Xe)):Object.assign({},lt,((u={})[Ke]=st?je+"px":"",u[qe]=it?De+"px":"",u.transform="",u))}const Ja={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(x){var u=x.state,g=x.options,S=g.gpuAcceleration,z=S===void 0||S,k=g.adaptive,Y=k===void 0||k,J=g.roundOffsets,ue=J===void 0||J,be={placement:zn(u.placement),variation:Jn(u.placement),popper:u.elements.popper,popperRect:u.rects.popper,gpuAcceleration:z,isFixed:u.options.strategy==="fixed"};u.modifiersData.popperOffsets!=null&&(u.styles.popper=Object.assign({},u.styles.popper,ql(Object.assign({},be,{offsets:u.modifiersData.popperOffsets,position:u.options.strategy,adaptive:Y,roundOffsets:ue})))),u.modifiersData.arrow!=null&&(u.styles.arrow=Object.assign({},u.styles.arrow,ql(Object.assign({},be,{offsets:u.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:ue})))),u.attributes.popper=Object.assign({},u.attributes.popper,{"data-popper-placement":u.placement})},data:{}};var el={passive:!0};const es={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(x){var u=x.state,g=x.instance,S=x.options,z=S.scroll,k=z===void 0||z,Y=S.resize,J=Y===void 0||Y,ue=mt(u.elements.popper),be=[].concat(u.scrollParents.reference,u.scrollParents.popper);return k&&be.forEach(function(_e){_e.addEventListener("scroll",g.update,el)}),J&&ue.addEventListener("resize",g.update,el),function(){k&&be.forEach(function(_e){_e.removeEventListener("scroll",g.update,el)}),J&&ue.removeEventListener("resize",g.update,el)}},data:{}};var Pl={left:"right",right:"left",bottom:"top",top:"bottom"};function tl(x){return x.replace(/left|right|bottom|top/g,function(u){return Pl[u]})}var nn={start:"end",end:"start"};function Li(x){return x.replace(/start|end/g,function(u){return nn[u]})}function ts(x){var u=mt(x);return{scrollLeft:u.pageXOffset,scrollTop:u.pageYOffset}}function sa(x){return Di(Zn(x)).left+ts(x).scrollLeft}function fo(x){var u=xn(x),g=u.overflow,S=u.overflowX,z=u.overflowY;return/auto|scroll|overlay|hidden/.test(g+z+S)}function Yl(x){return["html","body","#document"].indexOf(Qn(x))>=0?x.ownerDocument.body:dn(x)&&fo(x)?x:Yl(di(x))}function la(x,u){var g;u===void 0&&(u=[]);var S=Yl(x),z=S===((g=x.ownerDocument)==null?void 0:g.body),k=mt(S),Y=z?[k].concat(k.visualViewport||[],fo(S)?S:[]):S,J=u.concat(Y);return z?J:J.concat(la(di(Y)))}function ra(x){return Object.assign({},x,{left:x.x,top:x.y,right:x.x+x.width,bottom:x.y+x.height})}function nl(x,u,g){return u===Fa?ra((function(S,z){var k=mt(S),Y=Zn(S),J=k.visualViewport,ue=Y.clientWidth,be=Y.clientHeight,_e=0,me=0;if(J){ue=J.width,be=J.height;var $e=oo();($e||!$e&&z==="fixed")&&(_e=J.offsetLeft,me=J.offsetTop)}return{width:ue,height:be,x:_e+sa(S),y:me}})(x,g)):ui(u)?(function(S,z){var k=Di(S,!1,z==="fixed");return k.top=k.top+S.clientTop,k.left=k.left+S.clientLeft,k.bottom=k.top+S.clientHeight,k.right=k.left+S.clientWidth,k.width=S.clientWidth,k.height=S.clientHeight,k.x=k.left,k.y=k.top,k})(u,g):ra((function(S){var z,k=Zn(S),Y=ts(S),J=(z=S.ownerDocument)==null?void 0:z.body,ue=Ci(k.scrollWidth,k.clientWidth,J?J.scrollWidth:0,J?J.clientWidth:0),be=Ci(k.scrollHeight,k.clientHeight,J?J.scrollHeight:0,J?J.clientHeight:0),_e=-Y.scrollLeft+sa(S),me=-Y.scrollTop;return xn(J||k).direction==="rtl"&&(_e+=Ci(k.clientWidth,J?J.clientWidth:0)-ue),{width:ue,height:be,x:_e,y:me}})(Zn(x)))}function ho(x){var u,g=x.reference,S=x.element,z=x.placement,k=z?zn(z):null,Y=z?Jn(z):null,J=g.x+g.width/2-S.width/2,ue=g.y+g.height/2-S.height/2;switch(k){case Ht:u={x:J,y:g.y-S.height};break;case en:u={x:J,y:g.y+g.height};break;case Ct:u={x:g.x+g.width,y:ue};break;case Tt:u={x:g.x-S.width,y:ue};break;default:u={x:g.x,y:g.y}}var be=k?Js(k):null;if(be!=null){var _e=be==="y"?"height":"width";switch(Y){case Ti:u[be]=u[be]-(g[_e]/2-S[_e]/2);break;case Ga:u[be]=u[be]+(g[_e]/2-S[_e]/2)}}return u}function ns(x,u){u===void 0&&(u={});var g=u,S=g.placement,z=S===void 0?x.placement:S,k=g.strategy,Y=k===void 0?x.strategy:k,J=g.boundary,ue=J===void 0?Xs:J,be=g.rootBoundary,_e=be===void 0?Fa:be,me=g.elementContext,$e=me===void 0?tn:me,De=g.altBoundary,Be=De!==void 0&&De,je=g.padding,Ue=je===void 0?0:je,it=Wa(typeof Ue!="number"?Ue:Wn(Ue,ia)),st=$e===tn?kl:tn,qe=x.rects.popper,Ke=x.elements[Be?st:$e],de=(function(Ot,An,Ze,pt){var wn=An==="clippingParents"?(function(at){var zt=la(di(at)),ln=["absolute","fixed"].indexOf(xn(at).position)>=0&&dn(at)?Qa(at):at;return ui(ln)?zt.filter(function(xt){return ui(xt)&&Kc(xt,ln)&&Qn(xt)!=="body"}):[]})(Ot):[].concat(An),Hn=[].concat(wn,[Ze]),Ea=Hn[0],Lt=Hn.reduce(function(at,zt){var ln=nl(Ot,zt,pt);return at.top=Ci(ln.top,at.top),at.right=fi(ln.right,at.right),at.bottom=fi(ln.bottom,at.bottom),at.left=Ci(ln.left,at.left),at},nl(Ot,Ea,pt));return Lt.width=Lt.right-Lt.left,Lt.height=Lt.bottom-Lt.top,Lt.x=Lt.left,Lt.y=Lt.top,Lt})(ui(Ke)?Ke:Ke.contextElement||Zn(x.elements.popper),ue,_e,Y),ye=Di(x.elements.reference),Me=ho({reference:ye,element:qe,placement:z}),Je=ra(Object.assign({},qe,Me)),Xe=$e===tn?Je:ye,lt={top:de.top-Xe.top+it.top,bottom:Xe.bottom-de.bottom+it.bottom,left:de.left-Xe.left+it.left,right:Xe.right-de.right+it.right},Vt=x.modifiersData.offset;if($e===tn&&Vt){var Xt=Vt[z];Object.keys(lt).forEach(function(Ot){var An=[Ct,en].indexOf(Ot)>=0?1:-1,Ze=[Ht,en].indexOf(Ot)>=0?"y":"x";lt[Ot]+=Xt[Ze]*An})}return lt}function vd(x,u){u===void 0&&(u={});var g=u,S=g.placement,z=g.boundary,k=g.rootBoundary,Y=g.padding,J=g.flipVariations,ue=g.allowedAutoPlacements,be=ue===void 0?Oi:ue,_e=Jn(S),me=_e?J?Ul:Ul.filter(function(Be){return Jn(Be)===_e}):ia,$e=me.filter(function(Be){return be.indexOf(Be)>=0});$e.length===0&&($e=me);var De=$e.reduce(function(Be,je){return Be[je]=ns(x,{placement:je,boundary:z,rootBoundary:k,padding:Y})[zn(je)],Be},{});return Object.keys(De).sort(function(Be,je){return De[Be]-De[je]})}const Ic={name:"flip",enabled:!0,phase:"main",fn:function(x){var u=x.state,g=x.options,S=x.name;if(!u.modifiersData[S]._skip){for(var z=g.mainAxis,k=z===void 0||z,Y=g.altAxis,J=Y===void 0||Y,ue=g.fallbackPlacements,be=g.padding,_e=g.boundary,me=g.rootBoundary,$e=g.altBoundary,De=g.flipVariations,Be=De===void 0||De,je=g.allowedAutoPlacements,Ue=u.options.placement,it=zn(Ue),st=ue||(it!==Ue&&Be?(function(at){if(zn(at)===zl)return[];var zt=tl(at);return[Li(at),zt,Li(zt)]})(Ue):[tl(Ue)]),qe=[Ue].concat(st).reduce(function(at,zt){return at.concat(zn(zt)===zl?vd(u,{placement:zt,boundary:_e,rootBoundary:me,padding:be,flipVariations:Be,allowedAutoPlacements:je}):zt)},[]),Ke=u.rects.reference,de=u.rects.popper,ye=new Map,Me=!0,Je=qe[0],Xe=0;Xe<qe.length;Xe++){var lt=qe[Xe],Vt=zn(lt),Xt=Jn(lt)===Ti,Ot=[Ht,en].indexOf(Vt)>=0,An=Ot?"width":"height",Ze=ns(u,{placement:lt,boundary:_e,rootBoundary:me,altBoundary:$e,padding:be}),pt=Ot?Xt?Ct:Tt:Xt?en:Ht;Ke[An]>de[An]&&(pt=tl(pt));var wn=tl(pt),Hn=[];if(k&&Hn.push(Ze[Vt]<=0),J&&Hn.push(Ze[pt]<=0,Ze[wn]<=0),Hn.every(function(at){return at})){Je=lt,Me=!1;break}ye.set(lt,Hn)}if(Me)for(var Ea=function(at){var zt=qe.find(function(ln){var xt=ye.get(ln);if(xt)return xt.slice(0,at).every(function(bt){return bt})});if(zt)return Je=zt,"break"},Lt=Be?3:1;Lt>0&&Ea(Lt)!=="break";Lt--);u.placement!==Je&&(u.modifiersData[S]._skip=!0,u.placement=Je,u.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Kl(x,u,g){return g===void 0&&(g={x:0,y:0}),{top:x.top-u.height-g.y,right:x.right-u.width+g.x,bottom:x.bottom-u.height+g.y,left:x.left-u.width-g.x}}function Gc(x){return[Ht,Ct,en,Tt].some(function(u){return x[u]>=0})}const Fc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(x){var u=x.state,g=x.name,S=u.rects.reference,z=u.rects.popper,k=u.modifiersData.preventOverflow,Y=ns(u,{elementContext:"reference"}),J=ns(u,{altBoundary:!0}),ue=Kl(Y,S),be=Kl(J,z,k),_e=Gc(ue),me=Gc(be);u.modifiersData[g]={referenceClippingOffsets:ue,popperEscapeOffsets:be,isReferenceHidden:_e,hasPopperEscaped:me},u.attributes.popper=Object.assign({},u.attributes.popper,{"data-popper-reference-hidden":_e,"data-popper-escaped":me})}},Xc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(x){var u=x.state,g=x.options,S=x.name,z=g.offset,k=z===void 0?[0,0]:z,Y=Oi.reduce(function(_e,me){return _e[me]=(function($e,De,Be){var je=zn($e),Ue=[Tt,Ht].indexOf(je)>=0?-1:1,it=typeof Be=="function"?Be(Object.assign({},De,{placement:$e})):Be,st=it[0],qe=it[1];return st=st||0,qe=(qe||0)*Ue,[Tt,Ct].indexOf(je)>=0?{x:qe,y:st}:{x:st,y:qe}})(me,u.rects,k),_e},{}),J=Y[u.placement],ue=J.x,be=J.y;u.modifiersData.popperOffsets!=null&&(u.modifiersData.popperOffsets.x+=ue,u.modifiersData.popperOffsets.y+=be),u.modifiersData[S]=Y}},mo={name:"popperOffsets",enabled:!0,phase:"read",fn:function(x){var u=x.state,g=x.name;u.modifiersData[g]=ho({reference:u.rects.reference,element:u.rects.popper,placement:u.placement})},data:{}},Qc={name:"preventOverflow",enabled:!0,phase:"main",fn:function(x){var u=x.state,g=x.options,S=x.name,z=g.mainAxis,k=z===void 0||z,Y=g.altAxis,J=Y!==void 0&&Y,ue=g.boundary,be=g.rootBoundary,_e=g.altBoundary,me=g.padding,$e=g.tether,De=$e===void 0||$e,Be=g.tetherOffset,je=Be===void 0?0:Be,Ue=ns(u,{boundary:ue,rootBoundary:be,padding:me,altBoundary:_e}),it=zn(u.placement),st=Jn(u.placement),qe=!st,Ke=Js(it),de=Ke==="x"?"y":"x",ye=u.modifiersData.popperOffsets,Me=u.rects.reference,Je=u.rects.popper,Xe=typeof je=="function"?je(Object.assign({},u.rects,{placement:u.placement})):je,lt=typeof Xe=="number"?{mainAxis:Xe,altAxis:Xe}:Object.assign({mainAxis:0,altAxis:0},Xe),Vt=u.modifiersData.offset?u.modifiersData.offset[u.placement]:null,Xt={x:0,y:0};if(ye){if(k){var Ot,An=Ke==="y"?Ht:Tt,Ze=Ke==="y"?en:Ct,pt=Ke==="y"?"height":"width",wn=ye[Ke],Hn=wn+Ue[An],Ea=wn-Ue[Ze],Lt=De?-Je[pt]/2:0,at=st===Ti?Me[pt]:Je[pt],zt=st===Ti?-Je[pt]:-Me[pt],ln=u.elements.arrow,xt=De&&ln?co(ln):{width:0,height:0},bt=u.modifiersData["arrow#persistent"]?u.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},cr=bt[An],vs=bt[Ze],Sa=Za(0,Me[pt],xt[pt]),zo=qe?Me[pt]/2-Lt-Sa-cr-lt.mainAxis:at-Sa-cr-lt.mainAxis,yi=qe?-Me[pt]/2+Lt+Sa+vs+lt.mainAxis:zt+Sa+vs+lt.mainAxis,bs=u.elements.arrow&&Qa(u.elements.arrow),ko=bs?Ke==="y"?bs.clientTop||0:bs.clientLeft||0:0,ur=(Ot=Vt?.[Ke])!=null?Ot:0,Lu=wn+yi-ur,Uo=Za(De?fi(Hn,wn+zo-ur-ko):Hn,wn,De?Ci(Ea,Lu):Ea);ye[Ke]=Uo,Xt[Ke]=Uo-wn}if(J){var Ho,Mu=Ke==="x"?Ht:Tt,zu=Ke==="x"?en:Ct,Bi=ye[de],_s=de==="y"?"height":"width",$o=Bi+Ue[Mu],ku=Bi-Ue[zu],fr=[Ht,Tt].indexOf(it)!==-1,Bo=(Ho=Vt?.[de])!=null?Ho:0,Vo=fr?$o:Bi-Me[_s]-Je[_s]-Bo+lt.altAxis,dr=fr?Bi+Me[_s]+Je[_s]-Bo-lt.altAxis:ku,qo=De&&fr?(function(Uu,Hu,hr){var Po=Za(Uu,Hu,hr);return Po>hr?hr:Po})(Vo,Bi,dr):Za(De?Vo:$o,Bi,De?dr:ku);ye[de]=qo,Xt[de]=qo-Bi}u.modifiersData[S]=Xt}},requiresIfExists:["offset"]};function Zc(x,u,g){g===void 0&&(g=!1);var S,z,k=dn(u),Y=dn(u)&&(function(me){var $e=me.getBoundingClientRect(),De=Xa($e.width)/me.offsetWidth||1,Be=Xa($e.height)/me.offsetHeight||1;return De!==1||Be!==1})(u),J=Zn(u),ue=Di(x,Y,g),be={scrollLeft:0,scrollTop:0},_e={x:0,y:0};return(k||!k&&!g)&&((Qn(u)!=="body"||fo(J))&&(be=(S=u)!==mt(S)&&dn(S)?{scrollLeft:(z=S).scrollLeft,scrollTop:z.scrollTop}:ts(S)),dn(u)?((_e=Di(u,!0)).x+=u.clientLeft,_e.y+=u.clientTop):J&&(_e.x=sa(J))),{x:ue.left+be.scrollLeft-_e.x,y:ue.top+be.scrollTop-_e.y,width:ue.width,height:ue.height}}function bd(x){var u=new Map,g=new Set,S=[];function z(k){g.add(k.name),[].concat(k.requires||[],k.requiresIfExists||[]).forEach(function(Y){if(!g.has(Y)){var J=u.get(Y);J&&z(J)}}),S.push(k)}return x.forEach(function(k){u.set(k.name,k)}),x.forEach(function(k){g.has(k.name)||z(k)}),S}var Wc={placement:"bottom",modifiers:[],strategy:"absolute"};function Jc(){for(var x=arguments.length,u=new Array(x),g=0;g<x;g++)u[g]=arguments[g];return!u.some(function(S){return!(S&&typeof S.getBoundingClientRect=="function")})}function Il(x){x===void 0&&(x={});var u=x,g=u.defaultModifiers,S=g===void 0?[]:g,z=u.defaultOptions,k=z===void 0?Wc:z;return function(Y,J,ue){ue===void 0&&(ue=k);var be,_e,me={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wc,k),modifiersData:{},elements:{reference:Y,popper:J},attributes:{},styles:{}},$e=[],De=!1,Be={state:me,setOptions:function(Ue){var it=typeof Ue=="function"?Ue(me.options):Ue;je(),me.options=Object.assign({},k,me.options,it),me.scrollParents={reference:ui(Y)?la(Y):Y.contextElement?la(Y.contextElement):[],popper:la(J)};var st,qe,Ke=(function(de){var ye=bd(de);return Zs.reduce(function(Me,Je){return Me.concat(ye.filter(function(Xe){return Xe.phase===Je}))},[])})((st=[].concat(S,me.options.modifiers),qe=st.reduce(function(de,ye){var Me=de[ye.name];return de[ye.name]=Me?Object.assign({},Me,ye,{options:Object.assign({},Me.options,ye.options),data:Object.assign({},Me.data,ye.data)}):ye,de},{}),Object.keys(qe).map(function(de){return qe[de]})));return me.orderedModifiers=Ke.filter(function(de){return de.enabled}),me.orderedModifiers.forEach(function(de){var ye=de.name,Me=de.options,Je=Me===void 0?{}:Me,Xe=de.effect;if(typeof Xe=="function"){var lt=Xe({state:me,name:ye,instance:Be,options:Je});$e.push(lt||function(){})}}),Be.update()},forceUpdate:function(){if(!De){var Ue=me.elements,it=Ue.reference,st=Ue.popper;if(Jc(it,st)){me.rects={reference:Zc(it,Qa(st),me.options.strategy==="fixed"),popper:co(st)},me.reset=!1,me.placement=me.options.placement,me.orderedModifiers.forEach(function(Xe){return me.modifiersData[Xe.name]=Object.assign({},Xe.data)});for(var qe=0;qe<me.orderedModifiers.length;qe++)if(me.reset!==!0){var Ke=me.orderedModifiers[qe],de=Ke.fn,ye=Ke.options,Me=ye===void 0?{}:ye,Je=Ke.name;typeof de=="function"&&(me=de({state:me,options:Me,name:Je,instance:Be})||me)}else me.reset=!1,qe=-1}}},update:(be=function(){return new Promise(function(Ue){Be.forceUpdate(),Ue(me)})},function(){return _e||(_e=new Promise(function(Ue){Promise.resolve().then(function(){_e=void 0,Ue(be())})})),_e}),destroy:function(){je(),De=!0}};if(!Jc(Y,J))return Be;function je(){$e.forEach(function(Ue){return Ue()}),$e=[]}return Be.setOptions(ue).then(function(Ue){!De&&ue.onFirstUpdate&&ue.onFirstUpdate(Ue)}),Be}}var po=Il(),_d=Il({defaultModifiers:[es,mo,Ja,ji]}),go=Il({defaultModifiers:[es,mo,Ja,ji,Xc,Ic,Qc,Vl,Fc]});const eu=Object.freeze(Object.defineProperty({__proto__:null,afterMain:lo,afterRead:Pc,afterWrite:ro,applyStyles:ji,arrow:Vl,auto:zl,basePlacements:ia,beforeMain:so,beforeRead:Hl,beforeWrite:Yc,bottom:en,clippingParents:Xs,computeStyles:Ja,createPopper:go,createPopperBase:po,createPopperLite:_d,detectOverflow:ns,end:Ga,eventListeners:es,flip:Ic,hide:Fc,left:Tt,main:fn,modifierPhases:Zs,offset:Xc,placements:Oi,popper:tn,popperGenerator:Il,popperOffsets:mo,preventOverflow:Qc,read:$l,reference:kl,right:Ct,start:Ti,top:Ht,variationPlacements:Ul,viewport:Fa,write:Qs},Symbol.toStringTag,{value:"Module"})),vo="dropdown",oa=".bs.dropdown",bo=".data-api",yd="ArrowUp",tu="ArrowDown",xd=`hide${oa}`,Ed=`hidden${oa}`,Sd=`show${oa}`,Nd=`shown${oa}`,nu=`click${oa}${bo}`,Gl=`keydown${oa}${bo}`,il=`keyup${oa}${bo}`,is="show",Mi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',iu=`${Mi}.${is}`,al=".dropdown-menu",au=I()?"top-end":"top-start",su=I()?"top-start":"top-end",as=I()?"bottom-end":"bottom-start",Ad=I()?"bottom-start":"bottom-end",wd=I()?"left-start":"right-start",Td=I()?"right-start":"left-start",lu={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ru={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Gt extends fe{constructor(u,g){super(u,g),this._popper=null,this._parent=this._element.parentNode,this._menu=ve.next(this._element,al)[0]||ve.prev(this._element,al)[0]||ve.findOne(al,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return lu}static get DefaultType(){return ru}static get NAME(){return vo}toggle(){return this._isShown()?this.hide():this.show()}show(){if(N(this._element)||this._isShown())return;const u={relatedTarget:this._element};if(!T.trigger(this._element,Sd,u).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const g of[].concat(...document.body.children))T.on(g,"mouseover",D);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(is),this._element.classList.add(is),T.trigger(this._element,Nd,u)}}hide(){if(N(this._element)||!this._isShown())return;const u={relatedTarget:this._element};this._completeHide(u)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(u){if(!T.trigger(this._element,xd,u).defaultPrevented){if("ontouchstart"in document.documentElement)for(const g of[].concat(...document.body.children))T.off(g,"mouseover",D);this._popper&&this._popper.destroy(),this._menu.classList.remove(is),this._element.classList.remove(is),this._element.setAttribute("aria-expanded","false"),Oe.removeDataAttribute(this._menu,"popper"),T.trigger(this._element,Ed,u)}}_getConfig(u){if(typeof(u=super._getConfig(u)).reference=="object"&&!b(u.reference)&&typeof u.reference.getBoundingClientRect!="function")throw new TypeError(`${vo.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return u}_createPopper(){if(eu===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let u=this._element;this._config.reference==="parent"?u=this._parent:b(this._config.reference)?u=v(this._config.reference):typeof this._config.reference=="object"&&(u=this._config.reference);const g=this._getPopperConfig();this._popper=go(u,this._menu,g)}_isShown(){return this._menu.classList.contains(is)}_getPlacement(){const u=this._parent;if(u.classList.contains("dropend"))return wd;if(u.classList.contains("dropstart"))return Td;if(u.classList.contains("dropup-center"))return"top";if(u.classList.contains("dropdown-center"))return"bottom";const g=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return u.classList.contains("dropup")?g?su:au:g?Ad:as}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:u}=this._config;return typeof u=="string"?u.split(",").map(g=>Number.parseInt(g,10)):typeof u=="function"?g=>u(g,this._element):u}_getPopperConfig(){const u={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Oe.setDataAttribute(this._menu,"popper","static"),u.modifiers=[{name:"applyStyles",enabled:!1}]),{...u,...G(this._config.popperConfig,[void 0,u])}}_selectMenuItem({key:u,target:g}){const S=ve.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(z=>_(z));S.length&&Q(S,g,u===tu,!S.includes(g)).focus()}static jQueryInterface(u){return this.each(function(){const g=Gt.getOrCreateInstance(this,u);if(typeof u=="string"){if(g[u]===void 0)throw new TypeError(`No method named "${u}"`);g[u]()}})}static clearMenus(u){if(u.button===2||u.type==="keyup"&&u.key!=="Tab")return;const g=ve.find(iu);for(const S of g){const z=Gt.getInstance(S);if(!z||z._config.autoClose===!1)continue;const k=u.composedPath(),Y=k.includes(z._menu);if(k.includes(z._element)||z._config.autoClose==="inside"&&!Y||z._config.autoClose==="outside"&&Y||z._menu.contains(u.target)&&(u.type==="keyup"&&u.key==="Tab"||/input|select|option|textarea|form/i.test(u.target.tagName)))continue;const J={relatedTarget:z._element};u.type==="click"&&(J.clickEvent=u),z._completeHide(J)}}static dataApiKeydownHandler(u){const g=/input|textarea/i.test(u.target.tagName),S=u.key==="Escape",z=[yd,tu].includes(u.key);if(!z&&!S||g&&!S)return;u.preventDefault();const k=this.matches(Mi)?this:ve.prev(this,Mi)[0]||ve.next(this,Mi)[0]||ve.findOne(Mi,u.delegateTarget.parentNode),Y=Gt.getOrCreateInstance(k);if(z)return u.stopPropagation(),Y.show(),void Y._selectMenuItem(u);Y._isShown()&&(u.stopPropagation(),Y.hide(),k.focus())}}T.on(document,Gl,Mi,Gt.dataApiKeydownHandler),T.on(document,Gl,al,Gt.dataApiKeydownHandler),T.on(document,nu,Gt.clearMenus),T.on(document,il,Gt.clearMenus),T.on(document,nu,Mi,function(x){x.preventDefault(),Gt.getOrCreateInstance(this).toggle()}),H(Gt);const ss="backdrop",ou="show",sl=`mousedown.bs.${ss}`,cu={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},uu={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Fl extends Ee{constructor(u){super(),this._config=this._getConfig(u),this._isAppended=!1,this._element=null}static get Default(){return cu}static get DefaultType(){return uu}static get NAME(){return ss}show(u){if(!this._config.isVisible)return void G(u);this._append();const g=this._getElement();this._config.isAnimated&&A(g),g.classList.add(ou),this._emulateAnimation(()=>{G(u)})}hide(u){this._config.isVisible?(this._getElement().classList.remove(ou),this._emulateAnimation(()=>{this.dispose(),G(u)})):G(u)}dispose(){this._isAppended&&(T.off(this._element,sl),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const u=document.createElement("div");u.className=this._config.className,this._config.isAnimated&&u.classList.add("fade"),this._element=u}return this._element}_configAfterMerge(u){return u.rootElement=v(u.rootElement),u}_append(){if(this._isAppended)return;const u=this._getElement();this._config.rootElement.append(u),T.on(u,sl,()=>{G(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(u){F(u,this._getElement(),this._config.isAnimated)}}const ls=".bs.focustrap",fu=`focusin${ls}`,du=`keydown.tab${ls}`,_o="backward",Od={autofocus:!0,trapElement:null},jd={autofocus:"boolean",trapElement:"element"};class hu extends Ee{constructor(u){super(),this._config=this._getConfig(u),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Od}static get DefaultType(){return jd}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),T.off(document,ls),T.on(document,fu,u=>this._handleFocusin(u)),T.on(document,du,u=>this._handleKeydown(u)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,T.off(document,ls))}_handleFocusin(u){const{trapElement:g}=this._config;if(u.target===document||u.target===g||g.contains(u.target))return;const S=ve.focusableChildren(g);S.length===0?g.focus():this._lastTabNavDirection===_o?S[S.length-1].focus():S[0].focus()}_handleKeydown(u){u.key==="Tab"&&(this._lastTabNavDirection=u.shiftKey?_o:"forward")}}const mu=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",pu=".sticky-top",$t="padding-right",rs="margin-right";class Xl{constructor(){this._element=document.body}getWidth(){const u=document.documentElement.clientWidth;return Math.abs(window.innerWidth-u)}hide(){const u=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,$t,g=>g+u),this._setElementAttributes(mu,$t,g=>g+u),this._setElementAttributes(pu,rs,g=>g-u)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,$t),this._resetElementAttributes(mu,$t),this._resetElementAttributes(pu,rs)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(u,g,S){const z=this.getWidth();this._applyManipulationCallback(u,k=>{if(k!==this._element&&window.innerWidth>k.clientWidth+z)return;this._saveInitialAttribute(k,g);const Y=window.getComputedStyle(k).getPropertyValue(g);k.style.setProperty(g,`${S(Number.parseFloat(Y))}px`)})}_saveInitialAttribute(u,g){const S=u.style.getPropertyValue(g);S&&Oe.setDataAttribute(u,g,S)}_resetElementAttributes(u,g){this._applyManipulationCallback(u,S=>{const z=Oe.getDataAttribute(S,g);z!==null?(Oe.removeDataAttribute(S,g),S.style.setProperty(g,z)):S.style.removeProperty(g)})}_applyManipulationCallback(u,g){if(b(u))g(u);else for(const S of ve.find(u,this._element))g(S)}}const hn=".bs.modal",gu=`hide${hn}`,vu=`hidePrevented${hn}`,Ql=`hidden${hn}`,bu=`show${hn}`,os=`shown${hn}`,yo=`resize${hn}`,ll=`click.dismiss${hn}`,xo=`mousedown.dismiss${hn}`,_u=`keydown.dismiss${hn}`,ca=`click${hn}.data-api`,ua="modal-open",Zl="show",Wl="modal-static",fa={backdrop:!0,focus:!0,keyboard:!0},yu={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class zi extends fe{constructor(u,g){super(u,g),this._dialog=ve.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Xl,this._addEventListeners()}static get Default(){return fa}static get DefaultType(){return yu}static get NAME(){return"modal"}toggle(u){return this._isShown?this.hide():this.show(u)}show(u){this._isShown||this._isTransitioning||T.trigger(this._element,bu,{relatedTarget:u}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ua),this._adjustDialog(),this._backdrop.show(()=>this._showElement(u)))}hide(){this._isShown&&!this._isTransitioning&&(T.trigger(this._element,gu).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Zl),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){T.off(window,hn),T.off(this._dialog,hn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Fl({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new hu({trapElement:this._element})}_showElement(u){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const g=ve.findOne(".modal-body",this._dialog);g&&(g.scrollTop=0),A(this._element),this._element.classList.add(Zl),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,T.trigger(this._element,os,{relatedTarget:u})},this._dialog,this._isAnimated())}_addEventListeners(){T.on(this._element,_u,u=>{u.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),T.on(window,yo,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),T.on(this._element,xo,u=>{T.one(this._element,ll,g=>{this._element===u.target&&this._element===g.target&&(this._config.backdrop!=="static"?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ua),this._resetAdjustments(),this._scrollBar.reset(),T.trigger(this._element,Ql)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(T.trigger(this._element,vu).defaultPrevented)return;const u=this._element.scrollHeight>document.documentElement.clientHeight,g=this._element.style.overflowY;g==="hidden"||this._element.classList.contains(Wl)||(u||(this._element.style.overflowY="hidden"),this._element.classList.add(Wl),this._queueCallback(()=>{this._element.classList.remove(Wl),this._queueCallback(()=>{this._element.style.overflowY=g},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const u=this._element.scrollHeight>document.documentElement.clientHeight,g=this._scrollBar.getWidth(),S=g>0;if(S&&!u){const z=I()?"paddingLeft":"paddingRight";this._element.style[z]=`${g}px`}if(!S&&u){const z=I()?"paddingRight":"paddingLeft";this._element.style[z]=`${g}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(u,g){return this.each(function(){const S=zi.getOrCreateInstance(this,u);if(typeof u=="string"){if(S[u]===void 0)throw new TypeError(`No method named "${u}"`);S[u](g)}})}}T.on(document,ca,'[data-bs-toggle="modal"]',function(x){const u=ve.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&x.preventDefault(),T.one(u,bu,S=>{S.defaultPrevented||T.one(u,Ql,()=>{_(this)&&this.focus()})});const g=ve.findOne(".modal.show");g&&zi.getInstance(g).hide(),zi.getOrCreateInstance(u).toggle(this)}),Gn(zi),H(zi);const ei=".bs.offcanvas",xu=".data-api",Cd=`load${ei}${xu}`,Eu="show",Eo="showing",So="hiding",Jl=".offcanvas.show",kn=`show${ei}`,Su=`shown${ei}`,En=`hide${ei}`,mn=`hidePrevented${ei}`,da=`hidden${ei}`,No=`resize${ei}`,er=`click${ei}${xu}`,tr=`keydown.dismiss${ei}`,Ao={backdrop:!0,keyboard:!0,scroll:!1},cs={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ti extends fe{constructor(u,g){super(u,g),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Ao}static get DefaultType(){return cs}static get NAME(){return"offcanvas"}toggle(u){return this._isShown?this.hide():this.show(u)}show(u){this._isShown||T.trigger(this._element,kn,{relatedTarget:u}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new Xl().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Eo),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Eu),this._element.classList.remove(Eo),T.trigger(this._element,Su,{relatedTarget:u})},this._element,!0))}hide(){this._isShown&&(T.trigger(this._element,En).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(So),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Eu,So),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Xl().reset(),T.trigger(this._element,da)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const u=!!this._config.backdrop;return new Fl({className:"offcanvas-backdrop",isVisible:u,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:u?()=>{this._config.backdrop!=="static"?this.hide():T.trigger(this._element,mn)}:null})}_initializeFocusTrap(){return new hu({trapElement:this._element})}_addEventListeners(){T.on(this._element,tr,u=>{u.key==="Escape"&&(this._config.keyboard?this.hide():T.trigger(this._element,mn))})}static jQueryInterface(u){return this.each(function(){const g=ti.getOrCreateInstance(this,u);if(typeof u=="string"){if(g[u]===void 0||u.startsWith("_")||u==="constructor")throw new TypeError(`No method named "${u}"`);g[u](this)}})}}T.on(document,er,'[data-bs-toggle="offcanvas"]',function(x){const u=ve.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&x.preventDefault(),N(this))return;T.one(u,da,()=>{_(this)&&this.focus()});const g=ve.findOne(Jl);g&&g!==u&&ti.getInstance(g).hide(),ti.getOrCreateInstance(u).toggle(this)}),T.on(window,Cd,()=>{for(const x of ve.find(Jl))ti.getOrCreateInstance(x).show()}),T.on(window,No,()=>{for(const x of ve.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(x).position!=="fixed"&&ti.getOrCreateInstance(x).hide()}),Gn(ti),H(ti);const rl={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},us=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Dd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,pn=(x,u)=>{const g=x.nodeName.toLowerCase();return u.includes(g)?!us.has(g)||!!Dd.test(x.nodeValue):u.filter(S=>S instanceof RegExp).some(S=>S.test(g))},wo={allowList:rl,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},hi={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Nu={entry:"(string|element|function|null)",selector:"(string|element)"};class nr extends Ee{constructor(u){super(),this._config=this._getConfig(u)}static get Default(){return wo}static get DefaultType(){return hi}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(u=>this._resolvePossibleFunction(u)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(u){return this._checkContent(u),this._config.content={...this._config.content,...u},this}toHtml(){const u=document.createElement("div");u.innerHTML=this._maybeSanitize(this._config.template);for(const[z,k]of Object.entries(this._config.content))this._setContent(u,k,z);const g=u.children[0],S=this._resolvePossibleFunction(this._config.extraClass);return S&&g.classList.add(...S.split(" ")),g}_typeCheckConfig(u){super._typeCheckConfig(u),this._checkContent(u.content)}_checkContent(u){for(const[g,S]of Object.entries(u))super._typeCheckConfig({selector:g,entry:S},Nu)}_setContent(u,g,S){const z=ve.findOne(S,u);z&&((g=this._resolvePossibleFunction(g))?b(g)?this._putElementInTemplate(v(g),z):this._config.html?z.innerHTML=this._maybeSanitize(g):z.textContent=g:z.remove())}_maybeSanitize(u){return this._config.sanitize?(function(g,S,z){if(!g.length)return g;if(z&&typeof z=="function")return z(g);const k=new window.DOMParser().parseFromString(g,"text/html"),Y=[].concat(...k.body.querySelectorAll("*"));for(const J of Y){const ue=J.nodeName.toLowerCase();if(!Object.keys(S).includes(ue)){J.remove();continue}const be=[].concat(...J.attributes),_e=[].concat(S["*"]||[],S[ue]||[]);for(const me of be)pn(me,_e)||J.removeAttribute(me.nodeName)}return k.body.innerHTML})(u,this._config.allowList,this._config.sanitizeFn):u}_resolvePossibleFunction(u){return G(u,[void 0,this])}_putElementInTemplate(u,g){if(this._config.html)return g.innerHTML="",void g.append(u);g.textContent=u.textContent}}const ha=new Set(["sanitize","allowList","sanitizeFn"]),ol="fade",fs="show",ds=".tooltip-inner",ma=".modal",cl="hide.bs.modal",ki="hover",an="focus",sn="click",pa={AUTO:"auto",TOP:"top",RIGHT:I()?"left":"right",BOTTOM:"bottom",LEFT:I()?"right":"left"},mi={allowList:rl,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},pi={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class gn extends fe{constructor(u,g){if(eu===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(u,g),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return mi}static get DefaultType(){return pi}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),T.off(this._element.closest(ma),cl,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const u=T.trigger(this._element,this.constructor.eventName("show")),g=(C(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(u.defaultPrevented||!g)return;this._disposePopper();const S=this._getTipElement();this._element.setAttribute("aria-describedby",S.getAttribute("id"));const{container:z}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(z.append(S),T.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(S),S.classList.add(fs),"ontouchstart"in document.documentElement)for(const k of[].concat(...document.body.children))T.on(k,"mouseover",D);this._queueCallback(()=>{T.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!T.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(fs),"ontouchstart"in document.documentElement)for(const u of[].concat(...document.body.children))T.off(u,"mouseover",D);this._activeTrigger[sn]=!1,this._activeTrigger[an]=!1,this._activeTrigger[ki]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),T.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(u){const g=this._getTemplateFactory(u).toHtml();if(!g)return null;g.classList.remove(ol,fs),g.classList.add(`bs-${this.constructor.NAME}-auto`);const S=(z=>{do z+=Math.floor(1e6*Math.random());while(document.getElementById(z));return z})(this.constructor.NAME).toString();return g.setAttribute("id",S),this._isAnimated()&&g.classList.add(ol),g}setContent(u){this._newContent=u,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(u){return this._templateFactory?this._templateFactory.changeContent(u):this._templateFactory=new nr({...this._config,content:u,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[ds]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(u){return this.constructor.getOrCreateInstance(u.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ol)}_isShown(){return this.tip&&this.tip.classList.contains(fs)}_createPopper(u){const g=G(this._config.placement,[this,u,this._element]),S=pa[g.toUpperCase()];return go(this._element,u,this._getPopperConfig(S))}_getOffset(){const{offset:u}=this._config;return typeof u=="string"?u.split(",").map(g=>Number.parseInt(g,10)):typeof u=="function"?g=>u(g,this._element):u}_resolvePossibleFunction(u){return G(u,[this._element,this._element])}_getPopperConfig(u){const g={placement:u,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:S=>{this._getTipElement().setAttribute("data-popper-placement",S.state.placement)}}]};return{...g,...G(this._config.popperConfig,[void 0,g])}}_setListeners(){const u=this._config.trigger.split(" ");for(const g of u)if(g==="click")T.on(this._element,this.constructor.eventName("click"),this._config.selector,S=>{const z=this._initializeOnDelegatedTarget(S);z._activeTrigger[sn]=!(z._isShown()&&z._activeTrigger[sn]),z.toggle()});else if(g!=="manual"){const S=g===ki?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),z=g===ki?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");T.on(this._element,S,this._config.selector,k=>{const Y=this._initializeOnDelegatedTarget(k);Y._activeTrigger[k.type==="focusin"?an:ki]=!0,Y._enter()}),T.on(this._element,z,this._config.selector,k=>{const Y=this._initializeOnDelegatedTarget(k);Y._activeTrigger[k.type==="focusout"?an:ki]=Y._element.contains(k.relatedTarget),Y._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},T.on(this._element.closest(ma),cl,this._hideModalHandler)}_fixTitle(){const u=this._element.getAttribute("title");u&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",u),this._element.setAttribute("data-bs-original-title",u),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(u,g){clearTimeout(this._timeout),this._timeout=setTimeout(u,g)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(u){const g=Oe.getDataAttributes(this._element);for(const S of Object.keys(g))ha.has(S)&&delete g[S];return u={...g,...typeof u=="object"&&u?u:{}},u=this._mergeConfigObj(u),u=this._configAfterMerge(u),this._typeCheckConfig(u),u}_configAfterMerge(u){return u.container=u.container===!1?document.body:v(u.container),typeof u.delay=="number"&&(u.delay={show:u.delay,hide:u.delay}),typeof u.title=="number"&&(u.title=u.title.toString()),typeof u.content=="number"&&(u.content=u.content.toString()),u}_getDelegateConfig(){const u={};for(const[g,S]of Object.entries(this._config))this.constructor.Default[g]!==S&&(u[g]=S);return u.selector=!1,u.trigger="manual",u}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(u){return this.each(function(){const g=gn.getOrCreateInstance(this,u);if(typeof u=="string"){if(g[u]===void 0)throw new TypeError(`No method named "${u}"`);g[u]()}})}}H(gn);const Au=".popover-header",To=".popover-body",Oo={...gn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Ft={...gn.DefaultType,content:"(null|string|element|function)"};class dt extends gn{static get Default(){return Oo}static get DefaultType(){return Ft}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Au]:this._getTitle(),[To]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(u){return this.each(function(){const g=dt.getOrCreateInstance(this,u);if(typeof u=="string"){if(g[u]===void 0)throw new TypeError(`No method named "${u}"`);g[u]()}})}}H(dt);const Qe=".bs.scrollspy",ga=`activate${Qe}`,Un=`click${Qe}`,jo=`load${Qe}.data-api`,Sn="active",ir="[href]",Co=".nav-link",ul=`${Co}, .nav-item > ${Co}, .list-group-item`,fl={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},wu={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class gi extends fe{constructor(u,g){super(u,g),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return fl}static get DefaultType(){return wu}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const u of this._observableSections.values())this._observer.observe(u)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(u){return u.target=v(u.target)||document.body,u.rootMargin=u.offset?`${u.offset}px 0px -30%`:u.rootMargin,typeof u.threshold=="string"&&(u.threshold=u.threshold.split(",").map(g=>Number.parseFloat(g))),u}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(T.off(this._config.target,Un),T.on(this._config.target,Un,ir,u=>{const g=this._observableSections.get(u.target.hash);if(g){u.preventDefault();const S=this._rootElement||window,z=g.offsetTop-this._element.offsetTop;if(S.scrollTo)return void S.scrollTo({top:z,behavior:"smooth"});S.scrollTop=z}}))}_getNewObserver(){const u={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(g=>this._observerCallback(g),u)}_observerCallback(u){const g=Y=>this._targetLinks.get(`#${Y.target.id}`),S=Y=>{this._previousScrollData.visibleEntryTop=Y.target.offsetTop,this._process(g(Y))},z=(this._rootElement||document.documentElement).scrollTop,k=z>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=z;for(const Y of u){if(!Y.isIntersecting){this._activeTarget=null,this._clearActiveClass(g(Y));continue}const J=Y.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(k&&J){if(S(Y),!z)return}else k||J||S(Y)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const u=ve.find(ir,this._config.target);for(const g of u){if(!g.hash||N(g))continue;const S=ve.findOne(decodeURI(g.hash),this._element);_(S)&&(this._targetLinks.set(decodeURI(g.hash),g),this._observableSections.set(g.hash,S))}}_process(u){this._activeTarget!==u&&(this._clearActiveClass(this._config.target),this._activeTarget=u,u.classList.add(Sn),this._activateParents(u),T.trigger(this._element,ga,{relatedTarget:u}))}_activateParents(u){if(u.classList.contains("dropdown-item"))ve.findOne(".dropdown-toggle",u.closest(".dropdown")).classList.add(Sn);else for(const g of ve.parents(u,".nav, .list-group"))for(const S of ve.prev(g,ul))S.classList.add(Sn)}_clearActiveClass(u){u.classList.remove(Sn);const g=ve.find(`${ir}.${Sn}`,u);for(const S of g)S.classList.remove(Sn)}static jQueryInterface(u){return this.each(function(){const g=gi.getOrCreateInstance(this,u);if(typeof u=="string"){if(g[u]===void 0||u.startsWith("_")||u==="constructor")throw new TypeError(`No method named "${u}"`);g[u]()}})}}T.on(window,jo,()=>{for(const x of ve.find('[data-bs-spy="scroll"]'))gi.getOrCreateInstance(x)}),H(gi);const vi=".bs.tab",va=`hide${vi}`,bi=`hidden${vi}`,Ui=`show${vi}`,_i=`shown${vi}`,Do=`click${vi}`,Ro=`keydown${vi}`,dl=`load${vi}`,ar="ArrowLeft",Hi="ArrowRight",Bt="ArrowUp",hl="ArrowDown",sr="Home",Tu="End",ba="active",Ou="fade",yt="show",lr=".dropdown-toggle",_a=`:not(${lr})`,hs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',ml=`.nav-link${_a}, .list-group-item${_a}, [role="tab"]${_a}, ${hs}`,ms=`.${ba}[data-bs-toggle="tab"], .${ba}[data-bs-toggle="pill"], .${ba}[data-bs-toggle="list"]`;class Nn extends fe{constructor(u){super(u),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),T.on(this._element,Ro,g=>this._keydown(g)))}static get NAME(){return"tab"}show(){const u=this._element;if(this._elemIsActive(u))return;const g=this._getActiveElem(),S=g?T.trigger(g,va,{relatedTarget:u}):null;T.trigger(u,Ui,{relatedTarget:g}).defaultPrevented||S&&S.defaultPrevented||(this._deactivate(g,u),this._activate(u,g))}_activate(u,g){u&&(u.classList.add(ba),this._activate(ve.getElementFromSelector(u)),this._queueCallback(()=>{u.getAttribute("role")==="tab"?(u.removeAttribute("tabindex"),u.setAttribute("aria-selected",!0),this._toggleDropDown(u,!0),T.trigger(u,_i,{relatedTarget:g})):u.classList.add(yt)},u,u.classList.contains(Ou)))}_deactivate(u,g){u&&(u.classList.remove(ba),u.blur(),this._deactivate(ve.getElementFromSelector(u)),this._queueCallback(()=>{u.getAttribute("role")==="tab"?(u.setAttribute("aria-selected",!1),u.setAttribute("tabindex","-1"),this._toggleDropDown(u,!1),T.trigger(u,bi,{relatedTarget:g})):u.classList.remove(yt)},u,u.classList.contains(Ou)))}_keydown(u){if(![ar,Hi,Bt,hl,sr,Tu].includes(u.key))return;u.stopPropagation(),u.preventDefault();const g=this._getChildren().filter(z=>!N(z));let S;if([sr,Tu].includes(u.key))S=g[u.key===sr?0:g.length-1];else{const z=[Hi,hl].includes(u.key);S=Q(g,u.target,z,!0)}S&&(S.focus({preventScroll:!0}),Nn.getOrCreateInstance(S).show())}_getChildren(){return ve.find(ml,this._parent)}_getActiveElem(){return this._getChildren().find(u=>this._elemIsActive(u))||null}_setInitialAttributes(u,g){this._setAttributeIfNotExists(u,"role","tablist");for(const S of g)this._setInitialAttributesOnChild(S)}_setInitialAttributesOnChild(u){u=this._getInnerElement(u);const g=this._elemIsActive(u),S=this._getOuterElement(u);u.setAttribute("aria-selected",g),S!==u&&this._setAttributeIfNotExists(S,"role","presentation"),g||u.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(u,"role","tab"),this._setInitialAttributesOnTargetPanel(u)}_setInitialAttributesOnTargetPanel(u){const g=ve.getElementFromSelector(u);g&&(this._setAttributeIfNotExists(g,"role","tabpanel"),u.id&&this._setAttributeIfNotExists(g,"aria-labelledby",`${u.id}`))}_toggleDropDown(u,g){const S=this._getOuterElement(u);if(!S.classList.contains("dropdown"))return;const z=(k,Y)=>{const J=ve.findOne(k,S);J&&J.classList.toggle(Y,g)};z(lr,ba),z(".dropdown-menu",yt),S.setAttribute("aria-expanded",g)}_setAttributeIfNotExists(u,g,S){u.hasAttribute(g)||u.setAttribute(g,S)}_elemIsActive(u){return u.classList.contains(ba)}_getInnerElement(u){return u.matches(ml)?u:ve.findOne(ml,u)}_getOuterElement(u){return u.closest(".nav-item, .list-group-item")||u}static jQueryInterface(u){return this.each(function(){const g=Nn.getOrCreateInstance(this);if(typeof u=="string"){if(g[u]===void 0||u.startsWith("_")||u==="constructor")throw new TypeError(`No method named "${u}"`);g[u]()}})}}T.on(document,Do,hs,function(x){["A","AREA"].includes(this.tagName)&&x.preventDefault(),N(this)||Nn.getOrCreateInstance(this).show()}),T.on(window,dl,()=>{for(const x of ve.find(ms))Nn.getOrCreateInstance(x)}),H(Nn);const $i=".bs.toast",ju=`mouseover${$i}`,Rd=`mouseout${$i}`,Cu=`focusin${$i}`,ya=`focusout${$i}`,Lo=`hide${$i}`,rr=`hidden${$i}`,Du=`show${$i}`,pl=`shown${$i}`,Mo="hide",xa="show",ps="showing",Ru={animation:"boolean",autohide:"boolean",delay:"number"},or={animation:!0,autohide:!0,delay:5e3};class gs extends fe{constructor(u,g){super(u,g),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return or}static get DefaultType(){return Ru}static get NAME(){return"toast"}show(){T.trigger(this._element,Du).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Mo),A(this._element),this._element.classList.add(xa,ps),this._queueCallback(()=>{this._element.classList.remove(ps),T.trigger(this._element,pl),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(T.trigger(this._element,Lo).defaultPrevented||(this._element.classList.add(ps),this._queueCallback(()=>{this._element.classList.add(Mo),this._element.classList.remove(ps,xa),T.trigger(this._element,rr)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(xa),super.dispose()}isShown(){return this._element.classList.contains(xa)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(u,g){switch(u.type){case"mouseover":case"mouseout":this._hasMouseInteraction=g;break;case"focusin":case"focusout":this._hasKeyboardInteraction=g}if(g)return void this._clearTimeout();const S=u.relatedTarget;this._element===S||this._element.contains(S)||this._maybeScheduleHide()}_setListeners(){T.on(this._element,ju,u=>this._onInteraction(u,!0)),T.on(this._element,Rd,u=>this._onInteraction(u,!1)),T.on(this._element,Cu,u=>this._onInteraction(u,!0)),T.on(this._element,ya,u=>this._onInteraction(u,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(u){return this.each(function(){const g=gs.getOrCreateInstance(this,u);if(typeof u=="string"){if(g[u]===void 0)throw new TypeError(`No method named "${u}"`);g[u](this)}})}}return Gn(gs),H(gs),{Alert:Ln,Button:Fn,Carousel:un,Collapse:vt,Dropdown:Gt,Modal:zi,Offcanvas:ti,Popover:dt,ScrollSpy:gi,Tab:Nn,Toast:gs,Tooltip:gn}})})(Vf)),Vf.exports}qj();cE.createRoot(document.getElementById("root")).render(f.jsx(E0,{children:f.jsx(Bj,{})}));