ode-explorer 1.0.2-dev.202309271636 → 1.0.2-dev.202309281031

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fr=(e,t,n)=>(zy(e,typeof t!="symbol"?t+"":t,n),n);import{odeServices as G,APP as Eo,FOLDER as et,ACTION as $e}from"/assets/js/edifice-ts-client/index.js";function By(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Uy="modulepreload",Vy=function(e){return"/"+e},Af={},we=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Vy(s),s in Af)return;Af[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===s&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Uy,o||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ps(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cm={exports:{}},Aa={},km={exports:{}},Q={};/**
1
+ var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var hr=(e,t,n)=>(zy(e,typeof t!="symbol"?t+"":t,n),n);import{odeServices as G,APP as Eo,FOLDER as et,ACTION as $e}from"/assets/js/edifice-ts-client/index.js";function By(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Uy="modulepreload",Vy=function(e){return"/"+e},Af={},we=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Vy(s),s in Af)return;Af[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===s&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Uy,o||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),o)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function js(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cm={exports:{}},Aa={},km={exports:{}},Q={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@ var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,config
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var js=Symbol.for("react.element"),Hy=Symbol.for("react.portal"),qy=Symbol.for("react.fragment"),Qy=Symbol.for("react.strict_mode"),Wy=Symbol.for("react.profiler"),Ky=Symbol.for("react.provider"),Zy=Symbol.for("react.context"),Xy=Symbol.for("react.forward_ref"),Gy=Symbol.for("react.suspense"),Yy=Symbol.for("react.memo"),Jy=Symbol.for("react.lazy"),Lf=Symbol.iterator;function e2(e){return e===null||typeof e!="object"?null:(e=Lf&&e[Lf]||e["@@iterator"],typeof e=="function"?e:null)}var Om={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rm=Object.assign,Pm={};function Yr(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||Om}Yr.prototype.isReactComponent={};Yr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Yr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jm(){}jm.prototype=Yr.prototype;function $c(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||Om}var zc=$c.prototype=new jm;zc.constructor=$c;Rm(zc,Yr.prototype);zc.isPureReactComponent=!0;var Mf=Array.isArray,Nm=Object.prototype.hasOwnProperty,Bc={current:null},Tm={key:!0,ref:!0,__self:!0,__source:!0};function _m(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Nm.call(t,r)&&!Tm.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:js,type:e,key:s,ref:o,props:i,_owner:Bc.current}}function t2(e,t){return{$$typeof:js,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Uc(e){return typeof e=="object"&&e!==null&&e.$$typeof===js}function n2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Df=/\/+/g;function Cl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?n2(""+e.key):t.toString(36)}function Co(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case js:case Hy:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Cl(o,0):r,Mf(i)?(n="",e!=null&&(n=e.replace(Df,"$&/")+"/"),Co(i,t,n,"",function(u){return u})):i!=null&&(Uc(i)&&(i=t2(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Df,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Mf(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Cl(s,a);o+=Co(s,t,n,l,i)}else if(l=e2(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Cl(s,a++),o+=Co(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Ks(e,t,n){if(e==null)return e;var r=[],i=0;return Co(e,r,"","",function(s){return t.call(n,s,i++)}),r}function r2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ae={current:null},ko={transition:null},i2={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:ko,ReactCurrentOwner:Bc};Q.Children={map:Ks,forEach:function(e,t,n){Ks(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ks(e,function(){t++}),t},toArray:function(e){return Ks(e,function(t){return t})||[]},only:function(e){if(!Uc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=Yr;Q.Fragment=qy;Q.Profiler=Wy;Q.PureComponent=$c;Q.StrictMode=Qy;Q.Suspense=Gy;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i2;Q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Rm({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Bc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Nm.call(t,l)&&!Tm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:js,type:e.type,key:i,ref:s,props:r,_owner:o}};Q.createContext=function(e){return e={$$typeof:Zy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ky,_context:e},e.Consumer=e};Q.createElement=_m;Q.createFactory=function(e){var t=_m.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Xy,render:e}};Q.isValidElement=Uc;Q.lazy=function(e){return{$$typeof:Jy,_payload:{_status:-1,_result:e},_init:r2}};Q.memo=function(e,t){return{$$typeof:Yy,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=ko.transition;ko.transition={};try{e()}finally{ko.transition=t}};Q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Q.useCallback=function(e,t){return Ae.current.useCallback(e,t)};Q.useContext=function(e){return Ae.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)};Q.useEffect=function(e,t){return Ae.current.useEffect(e,t)};Q.useId=function(){return Ae.current.useId()};Q.useImperativeHandle=function(e,t,n){return Ae.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return Ae.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return Ae.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return Ae.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return Ae.current.useReducer(e,t,n)};Q.useRef=function(e){return Ae.current.useRef(e)};Q.useState=function(e){return Ae.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return Ae.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return Ae.current.useTransition()};Q.version="18.2.0";km.exports=Q;var b=km.exports;const Im=Ps(b);/**
9
+ */var Ns=Symbol.for("react.element"),Hy=Symbol.for("react.portal"),qy=Symbol.for("react.fragment"),Qy=Symbol.for("react.strict_mode"),Wy=Symbol.for("react.profiler"),Ky=Symbol.for("react.provider"),Zy=Symbol.for("react.context"),Xy=Symbol.for("react.forward_ref"),Gy=Symbol.for("react.suspense"),Yy=Symbol.for("react.memo"),Jy=Symbol.for("react.lazy"),Lf=Symbol.iterator;function e2(e){return e===null||typeof e!="object"?null:(e=Lf&&e[Lf]||e["@@iterator"],typeof e=="function"?e:null)}var Om={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Rm=Object.assign,Pm={};function Jr(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||Om}Jr.prototype.isReactComponent={};Jr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Jr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jm(){}jm.prototype=Jr.prototype;function $c(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||Om}var zc=$c.prototype=new jm;zc.constructor=$c;Rm(zc,Jr.prototype);zc.isPureReactComponent=!0;var Mf=Array.isArray,Nm=Object.prototype.hasOwnProperty,Bc={current:null},Tm={key:!0,ref:!0,__self:!0,__source:!0};function _m(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Nm.call(t,r)&&!Tm.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ns,type:e,key:s,ref:o,props:i,_owner:Bc.current}}function t2(e,t){return{$$typeof:Ns,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Uc(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ns}function n2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Df=/\/+/g;function Cl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?n2(""+e.key):t.toString(36)}function Co(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Ns:case Hy:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Cl(o,0):r,Mf(i)?(n="",e!=null&&(n=e.replace(Df,"$&/")+"/"),Co(i,t,n,"",function(u){return u})):i!=null&&(Uc(i)&&(i=t2(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Df,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Mf(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+Cl(s,a);o+=Co(s,t,n,l,i)}else if(l=e2(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+Cl(s,a++),o+=Co(s,t,n,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Zs(e,t,n){if(e==null)return e;var r=[],i=0;return Co(e,r,"","",function(s){return t.call(n,s,i++)}),r}function r2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ae={current:null},ko={transition:null},i2={ReactCurrentDispatcher:Ae,ReactCurrentBatchConfig:ko,ReactCurrentOwner:Bc};Q.Children={map:Zs,forEach:function(e,t,n){Zs(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Zs(e,function(){t++}),t},toArray:function(e){return Zs(e,function(t){return t})||[]},only:function(e){if(!Uc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Q.Component=Jr;Q.Fragment=qy;Q.Profiler=Wy;Q.PureComponent=$c;Q.StrictMode=Qy;Q.Suspense=Gy;Q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i2;Q.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Rm({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Bc.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Nm.call(t,l)&&!Tm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:Ns,type:e.type,key:i,ref:s,props:r,_owner:o}};Q.createContext=function(e){return e={$$typeof:Zy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Ky,_context:e},e.Consumer=e};Q.createElement=_m;Q.createFactory=function(e){var t=_m.bind(null,e);return t.type=e,t};Q.createRef=function(){return{current:null}};Q.forwardRef=function(e){return{$$typeof:Xy,render:e}};Q.isValidElement=Uc;Q.lazy=function(e){return{$$typeof:Jy,_payload:{_status:-1,_result:e},_init:r2}};Q.memo=function(e,t){return{$$typeof:Yy,type:e,compare:t===void 0?null:t}};Q.startTransition=function(e){var t=ko.transition;ko.transition={};try{e()}finally{ko.transition=t}};Q.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Q.useCallback=function(e,t){return Ae.current.useCallback(e,t)};Q.useContext=function(e){return Ae.current.useContext(e)};Q.useDebugValue=function(){};Q.useDeferredValue=function(e){return Ae.current.useDeferredValue(e)};Q.useEffect=function(e,t){return Ae.current.useEffect(e,t)};Q.useId=function(){return Ae.current.useId()};Q.useImperativeHandle=function(e,t,n){return Ae.current.useImperativeHandle(e,t,n)};Q.useInsertionEffect=function(e,t){return Ae.current.useInsertionEffect(e,t)};Q.useLayoutEffect=function(e,t){return Ae.current.useLayoutEffect(e,t)};Q.useMemo=function(e,t){return Ae.current.useMemo(e,t)};Q.useReducer=function(e,t,n){return Ae.current.useReducer(e,t,n)};Q.useRef=function(e){return Ae.current.useRef(e)};Q.useState=function(e){return Ae.current.useState(e)};Q.useSyncExternalStore=function(e,t,n){return Ae.current.useSyncExternalStore(e,t,n)};Q.useTransition=function(){return Ae.current.useTransition()};Q.version="18.2.0";km.exports=Q;var b=km.exports;const Im=js(b);/**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
12
12
  *
@@ -14,7 +14,7 @@ var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,config
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var s2=b,o2=Symbol.for("react.element"),a2=Symbol.for("react.fragment"),l2=Object.prototype.hasOwnProperty,u2=s2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c2={key:!0,ref:!0,__self:!0,__source:!0};function Am(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)l2.call(t,r)&&!c2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:o2,type:e,key:s,ref:o,props:i,_owner:u2.current}}Aa.Fragment=a2;Aa.jsx=Am;Aa.jsxs=Am;Cm.exports=Aa;var f=Cm.exports;const d2={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]}};class Ho{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||d2,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ho(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ho(this.logger,t)}}var Bt=new Ho;class La{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function ai(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Ff(e){return e==null?"":""+e}function f2(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Vc(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function i(){return!e||typeof e=="string"}const s=typeof t!="string"?[].concat(t):t.split(".");for(;s.length>1;){if(i())return{};const o=r(s.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(s.shift())}}function $f(e,t,n){const{obj:r,k:i}=Vc(e,t,Object);r[i]=n}function h2(e,t,n,r){const{obj:i,k:s}=Vc(e,t,Object);i[s]=i[s]||[],r&&(i[s]=i[s].concat(n)),r||i[s].push(n)}function qo(e,t){const{obj:n,k:r}=Vc(e,t);if(n)return n[r]}function p2(e,t,n){const r=qo(e,n);return r!==void 0?r:qo(t,n)}function Lm(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Lm(e[r],t[r],n):e[r]=t[r]);return e}function hr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var m2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function g2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>m2[t]):e}const v2=[" ",",","?","!",";"];function y2(e,t,n){t=t||"",n=n||"";const r=v2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s}function Qo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let s=0;s<r.length;++s){if(!i||typeof i[r[s]]=="string"&&s+1<r.length)return;if(i[r[s]]===void 0){let o=2,a=r.slice(s,s+o).join(n),l=i[a];for(;l===void 0&&r.length>s+o;)o++,a=r.slice(s,s+o).join(n),l=i[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const u=r.slice(s+o).join(n);return u?Qo(l,u,n):void 0}i=i[r[s]]}return i}function Wo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class zf extends La{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=qo(this.data,a);return l||!o||typeof r!="string"?l:Qo(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),$f(this.data,a,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Object.prototype.toString.apply(r[s])==="[object Array]")&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let l=qo(this.data,a)||{};i?Lm(l,r,s):l={...l,...r},$f(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Mm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,i))}),t}};const Bf={};class Ko extends La{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),f2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Bt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!y2(t,r,i);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:s};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(i)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const S=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${S}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l}:`${l}${S}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l}:o}const d=this.resolve(t,n);let h=d&&d.res;const g=d&&d.usedKey||o,p=d&&d.exactUsedKey||o,y=Object.prototype.toString.apply(h),x=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&x.indexOf(y)<0&&!(typeof m=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=S,d):S}if(s){const S=y==="[object Array]",C=S?[]:{},k=S?p:g;for(const O in h)if(Object.prototype.hasOwnProperty.call(h,O)){const R=`${k}${s}${O}`;C[O]=this.translate(R,{...n,joinArrays:!1,ns:a}),C[O]===R&&(C[O]=h[O])}h=C}}else if(v&&typeof m=="string"&&y==="[object Array]")h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let S=!1,C=!1;const k=n.count!==void 0&&typeof n.count!="string",O=Ko.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(u,n.count,n):"",I=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",A=n[`defaultValue${R}`]||n[`defaultValue${I}`]||n.defaultValue;!this.isValidLookup(h)&&O&&(S=!0,h=A),this.isValidLookup(h)||(C=!0,h=o);const z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,B=O&&A!==h&&this.options.updateMissing;if(C||S||B){if(this.logger.log(B?"updateKey":"missingKey",u,l,o,B?A:h),s){const F=this.resolve(o,{...n,keySeparator:!1});F&&F.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 E=[];const P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(let F=0;F<P.length;F++)E.push(P[F]);else this.options.saveMissingTo==="all"?E=this.languageUtils.toResolveHierarchy(n.lng||this.language):E.push(n.lng||this.language);const L=(F,j,N)=>{const $=O&&N!==h?N:z;this.options.missingKeyHandler?this.options.missingKeyHandler(F,l,j,$,B,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,l,j,$,B,n),this.emit("missingKey",F,l,j,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?E.forEach(F=>{this.pluralResolver.getSuffixes(F,n).forEach(j=>{L([F],o+j,n[`defaultValue${j}`]||A)})}):L(E,o,A))}h=this.extendTranslation(h,t,n,d,r),C&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(C||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,S?h:void 0):h=this.options.parseMissingKeyHandler(h))}return i?(d.res=h,d):h}extendTranslation(t,n,r,i,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const h=t.match(this.interpolator.nestingRegexp),g=h&&h.length;c<g&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,g=new Array(h),p=0;p<h;p++)g[p]=arguments[p];return s&&s[0]===g[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):o.translate(...g,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=Mm.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,o,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;i=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",g=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(x=>{this.isValidLookup(r)||(a=x,!Bf[`${y[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Bf[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(m=>{if(this.isValidLookup(r))return;o=m;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,m,x,n);else{let S;h&&(S=this.pluralResolver.getSuffix(m,n.count,n));const C=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+S),n.ordinal&&S.indexOf(k)===0&&v.push(c+S.replace(k,this.options.pluralSeparator)),g&&v.push(c+C)),p){const O=`${c}${this.options.contextSeparator}${n.context}`;v.push(O),h&&(v.push(O+S),n.ordinal&&S.indexOf(k)===0&&v.push(O+S.replace(k,this.options.pluralSeparator)),g&&v.push(O+C))}}let w;for(;w=v.pop();)this.isValidLookup(r)||(s=w,r=this.getResource(m,x,w,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function kl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Uf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Bt.create("languageUtils")}getScriptPartFromCode(t){if(t=Wo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Wo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=kl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=kl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=kl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&s.indexOf(i)===0)return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}let w2=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],x2={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const S2=["v1","v2","v3"],b2=["v4"],Vf={zero:0,one:1,two:2,few:3,many:4,other:5};function E2(){const e={};return w2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x2[t.fc]}})}),e}class C2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Bt.create("pluralResolver"),(!this.options.compatibilityJSON||b2.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=E2()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Wo(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,s)=>Vf[i]-Vf[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!S2.includes(this.options.compatibilityJSON)}}function Hf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=p2(e,t,n);return!s&&i&&typeof n=="string"&&(s=Qo(e,n,r),s===void 0&&(s=Qo(t,n,r))),s}class k2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:g2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?hr(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?hr(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?hr(n.nestingPrefix):n.nestingPrefixEscaped||hr("$t("),this.nestingSuffix=n.nestingSuffix?hr(n.nestingSuffix):n.nestingSuffixEscaped||hr(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,i){let s,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const v=Hf(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...i,...n,interpolationkey:p}):v}const y=p.split(this.formatSeparator),x=y.shift().trim(),m=y.join(this.formatSeparator).trim();return this.format(Hf(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),m,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;s=p.regex.exec(t);){const y=s[1].trim();if(o=c(y),o===void 0)if(typeof d=="function"){const m=d(t,s,i);o=typeof m=="string"?m:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))o="";else if(h){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Ff(o));const x=p.safeValue(o);if(t=t.replace(s[0],x),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,o;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const g=h.match(/'/g),p=h.match(/"/g);(g&&g.length%2===0&&!p||p.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${h}`}return delete o.defaultValue,l}for(;i=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=c.shift(),l=c,u=!0}if(s=n(a.call(this,i[1].trim(),o),o),s&&i[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=Ff(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),u&&(s=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}function O2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function pr(e){const t={};return function(r,i,s){const o=i+JSON.stringify(s);let a=t[o];return a||(a=e(Wo(i),s),t[o]=a),a(r)}}class R2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bt.create("formatter"),this.options=t,this.formats={number:pr((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:pr((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:pr((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:pr((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:pr((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=pr(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=O2(l);if(this.formats[u]){let d=a;try{const h=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},g=h.locale||h.lng||i.locale||i.lng||r;d=this.formats[u](a,g,{...c,...i,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function P2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class j2 extends La{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Bt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,c=!1,o[h]===void 0&&(o[h]=!0),s[h]===void 0&&(s[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),r&&this.store.addResourceBundle(s,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{h2(l.loaded,[s],o),P2(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:s},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,l):c=u(t,n,r,i),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,i,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function qf(){return{debug:!1,initImmediate:!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:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Qf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Zs(){}function N2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Ki extends La{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Qf(t),this.services={},this.logger=Bt,this.modules={external:[]},N2(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=qf();this.options={...i,...this.options,...Qf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Bt.init(s(this.modules.logger),this.options):Bt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=R2);const d=new Uf(this.options);this.store=new zf(this.options.resources,this.options);const h=this.services;h.logger=Bt,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new C2(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(h.formatter=s(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new k2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new j2(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(g){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x<p;x++)y[x-1]=arguments[x];t.emit(g,...y)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Ko(this.services,this.options),this.translator.on("*",function(g){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x<p;x++)y[x-1]=arguments[x];t.emit(g,...y)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Zs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=ai(),u=()=>{const c=(d,h)=>{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),l.resolve(h),r(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zs;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return r();const s=[],o=a=>{if(!a)return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{s.indexOf(u)<0&&s.push(u)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(s,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=ai();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Zs),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Mm.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=ai();this.emit("languageChanging",t);const s=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||s(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{o(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),i}getFixedT(t,n,r){var i=this;const s=function(o,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=i.options.overloadTranslationOptionHandler([o,a].concat(c))}else l={...a};l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix=l.keyPrefix||r||s.keyPrefix;const h=i.options.keySeparator||".";let g;return l.keyPrefix&&Array.isArray(o)?g=o.map(p=>`${l.keyPrefix}${h}${p}`):g=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,i.t(g,l)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=ai();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ai();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0);return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Uf(qf());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ki(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zs;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new Ki(i);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new zf(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Ko(s.services,i),s.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];s.emit(a,...u)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const je=Ki.createInstance();je.createInstance=Ki.createInstance;je.createInstance;je.dir;je.init;je.loadResources;je.reloadResources;je.use;je.changeLanguage;je.getFixedT;const Kt=je.t;je.exists;je.setDefaultNamespace;je.hasLoadedNamespace;je.loadNamespaces;je.loadLanguages;function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}var Dm=[],T2=Dm.forEach,_2=Dm.slice;function hu(e){return T2.call(_2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Fm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":fu(XMLHttpRequest))==="object"}function I2(e){return!!e&&typeof e.then=="function"}function A2(e){return I2(e)?e:Promise.resolve(e)}function L2(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pu={exports:{}},Xs={exports:{}},Wf;function M2(){return Wf||(Wf=1,function(e,t){var n=typeof self<"u"?self:He,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(o){var a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(E){return E&&DataView.prototype.isPrototypeOf(E)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(E){return E&&u.indexOf(Object.prototype.toString.call(E))>-1};function d(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(E))throw new TypeError("Invalid character in header field name");return E.toLowerCase()}function h(E){return typeof E!="string"&&(E=String(E)),E}function g(E){var P={next:function(){var L=E.shift();return{done:L===void 0,value:L}}};return a.iterable&&(P[Symbol.iterator]=function(){return P}),P}function p(E){this.map={},E instanceof p?E.forEach(function(P,L){this.append(L,P)},this):Array.isArray(E)?E.forEach(function(P){this.append(P[0],P[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(P){this.append(P,E[P])},this)}p.prototype.append=function(E,P){E=d(E),P=h(P);var L=this.map[E];this.map[E]=L?L+", "+P:P},p.prototype.delete=function(E){delete this.map[d(E)]},p.prototype.get=function(E){return E=d(E),this.has(E)?this.map[E]:null},p.prototype.has=function(E){return this.map.hasOwnProperty(d(E))},p.prototype.set=function(E,P){this.map[d(E)]=h(P)},p.prototype.forEach=function(E,P){for(var L in this.map)this.map.hasOwnProperty(L)&&E.call(P,this.map[L],L,this)},p.prototype.keys=function(){var E=[];return this.forEach(function(P,L){E.push(L)}),g(E)},p.prototype.values=function(){var E=[];return this.forEach(function(P){E.push(P)}),g(E)},p.prototype.entries=function(){var E=[];return this.forEach(function(P,L){E.push([L,P])}),g(E)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function x(E){return new Promise(function(P,L){E.onload=function(){P(E.result)},E.onerror=function(){L(E.error)}})}function m(E){var P=new FileReader,L=x(P);return P.readAsArrayBuffer(E),L}function v(E){var P=new FileReader,L=x(P);return P.readAsText(E),L}function w(E){for(var P=new Uint8Array(E),L=new Array(P.length),F=0;F<P.length;F++)L[F]=String.fromCharCode(P[F]);return L.join("")}function S(E){if(E.slice)return E.slice(0);var P=new Uint8Array(E.byteLength);return P.set(new Uint8Array(E)),P.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(E){this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:a.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:a.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():a.arrayBuffer&&a.blob&&l(E)?(this._bodyArrayBuffer=S(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||c(E))?this._bodyArrayBuffer=S(E):this._bodyText=E=Object.prototype.toString.call(E):this._bodyText="",this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(E){var P=E.toUpperCase();return k.indexOf(P)>-1?P:E}function R(E,P){P=P||{};var L=P.body;if(E instanceof R){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,P.headers||(this.headers=new p(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!L&&E._bodyInit!=null&&(L=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new p(P.headers)),this.method=O(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function I(E){var P=new FormData;return E.trim().split("&").forEach(function(L){if(L){var F=L.split("="),j=F.shift().replace(/\+/g," "),N=F.join("=").replace(/\+/g," ");P.append(decodeURIComponent(j),decodeURIComponent(N))}}),P}function A(E){var P=new p,L=E.replace(/\r?\n[\t ]+/g," ");return L.split(/\r?\n/).forEach(function(F){var j=F.split(":"),N=j.shift().trim();if(N){var $=j.join(":").trim();P.append(N,$)}}),P}C.call(R.prototype);function M(E,P){P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in P?P.statusText:"OK",this.headers=new p(P.headers),this.url=P.url||"",this._initBody(E)}C.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},M.error=function(){var E=new M(null,{status:0,statusText:""});return E.type="error",E};var z=[301,302,303,307,308];M.redirect=function(E,P){if(z.indexOf(P)===-1)throw new RangeError("Invalid status code");return new M(null,{status:P,headers:{location:E}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(P,L){this.message=P,this.name=L;var F=Error(P);this.stack=F.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function B(E,P){return new Promise(function(L,F){var j=new R(E,P);if(j.signal&&j.signal.aborted)return F(new o.DOMException("Aborted","AbortError"));var N=new XMLHttpRequest;function $(){N.abort()}N.onload=function(){var W={status:N.status,statusText:N.statusText,headers:A(N.getAllResponseHeaders()||"")};W.url="responseURL"in N?N.responseURL:W.headers.get("X-Request-URL");var H="response"in N?N.response:N.responseText;L(new M(H,W))},N.onerror=function(){F(new TypeError("Network request failed"))},N.ontimeout=function(){F(new TypeError("Network request failed"))},N.onabort=function(){F(new o.DOMException("Aborted","AbortError"))},N.open(j.method,j.url,!0),j.credentials==="include"?N.withCredentials=!0:j.credentials==="omit"&&(N.withCredentials=!1),"responseType"in N&&a.blob&&(N.responseType="blob"),j.headers.forEach(function(W,H){N.setRequestHeader(H,W)}),j.signal&&(j.signal.addEventListener("abort",$),N.onreadystatechange=function(){N.readyState===4&&j.signal.removeEventListener("abort",$)}),N.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}return B.polyfill=!0,s.fetch||(s.fetch=B,s.Headers=p,s.Request=R,s.Response=M),o.Headers=p,o.Request=R,o.Response=M,o.fetch=B,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Xs,Xs.exports)),Xs.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof He<"u"&&He.fetch?n=He.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof L2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||M2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(pu,pu.exports);var $m=pu.exports;const zm=Ps($m),Kf=By({__proto__:null,default:zm},[$m]);function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}var tn;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?tn=global.fetch:typeof window<"u"&&window.fetch?tn=window.fetch:tn=fetch);var Zi;Fm()&&(typeof global<"u"&&global.XMLHttpRequest?Zi=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Zi=window.XMLHttpRequest));var Xo;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Xo=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Xo=window.ActiveXObject));!tn&&Kf&&!Zi&&!Xo&&(tn=zm||Kf);typeof tn!="function"&&(tn=void 0);var mu=function(t,n){if(n&&Zo(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Zf=function(t,n,r){tn(t,n).then(function(i){if(!i.ok)return r(i.statusText||"Error",{status:i.status});i.text().then(function(s){r(null,{status:i.status,data:s})}).catch(r)}).catch(r)},Xf=!1,D2=function(t,n,r,i){t.queryStringParams&&(n=mu(n,t.queryStringParams));var s=hu({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(s["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=hu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:s},Xf?{}:o);try{Zf(n,a,i)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return i(l);try{Object.keys(o).forEach(function(u){delete a[u]}),Zf(n,a,i),Xf=!0}catch(u){i(u)}}},F2=function(t,n,r,i){r&&Zo(r)==="object"&&(r=mu("",r).slice(1)),t.queryStringParams&&(n=mu(n,t.queryStringParams));try{var s;Zi?s=new Zi:s=new Xo("MSXML2.XMLHTTP.3.0"),s.open(r?"POST":"GET",n,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)s.setRequestHeader(a,o[a]);s.onreadystatechange=function(){s.readyState>3&&i(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch{}},$2=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},tn&&n.indexOf("file:")!==0)return D2(t,n,r,i);if(Fm()||typeof ActiveXObject=="function")return F2(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Xi(e){"@babel/helpers - typeof";return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(e)}function z2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bm(r.key),r)}}function B2(e,t,n){return t&&Gf(e.prototype,t),n&&Gf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function U2(e,t,n){return t=Bm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bm(e){var t=V2(e,"string");return Xi(t)==="symbol"?t:String(t)}function V2(e,t){if(Xi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H2=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return U2({},r,i||"")},parseLoadPayload:function(n,r){},request:$2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Um=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};z2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return B2(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=hu(i,this.options||{},H2()),this.allOptions=s,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,s,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,i)),l=A2(l),l.then(function(u){if(!u)return o(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:i.join("+")});a.loadUrl(c,o,r,s)})}},{key:"loadUrl",value:function(n,r,i,s){var o=this,a=typeof i=="string"?[i]:i,l=typeof s=="string"?[s]:s,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(c,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+c.message,!0);if(c)return r(c,!1);var h,g;try{typeof d.data=="string"?h=o.options.parse(d.data,i,s):h=d.data}catch{g="failed parsing "+n+" to json"}if(g)return r(g,!1);r(null,h)})}},{key:"create",value:function(n,r,i,s,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,i,s),u=0,c=[],d=[];n.forEach(function(h){var g=a.options.addPath;typeof a.options.addPath=="function"&&(g=a.options.addPath(h,r));var p=a.services.interpolator.interpolate(g,{lng:h,ns:r});a.options.request(a.options,p,l,function(y,x){u+=1,c.push(y),d.push(x),u===n.length&&typeof o=="function"&&o(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,s=r.languageUtils,o=r.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var h=s.toResolveHierarchy(d);h.forEach(function(g){l.indexOf(g)<0&&l.push(g)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){i.read(c,d,"read",null,null,function(h,g){h&&o.warn("loading namespace ".concat(d," for language ").concat(c," failed"),h),!h&&g&&o.log("loaded namespace ".concat(d," for language ").concat(c),g),i.loaded("".concat(c,"|").concat(d),h,g)})})})}}}]),e}();Um.type="backend";function q2(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`)}}const Yf={};function gu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Yf[t[0]]||(typeof t[0]=="string"&&(Yf[t[0]]=new Date),q2(...t))}const Vm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Jf(e,t,n){e.loadNamespaces(t,Vm(e,n))}function eh(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Vm(e,r))}function Q2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=t.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(s,e)))}function W2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(gu("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):Q2(e,t,n)}const K2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Z2={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},X2=e=>Z2[e],G2=e=>e.replace(K2,X2);let vu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:G2};function Y2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vu={...vu,...e}}function J2(){return vu}let Hm;function ew(e){Hm=e}function tw(){return Hm}const nw={type:"3rdParty",init(e){Y2(e.options.react),ew(e)}},rw=b.createContext();class iw{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const sw=(e,t)=>{const n=b.useRef();return b.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function xe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=b.useContext(rw)||{},s=n||r||tw();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new iw),!s){gu("You will need to pass in an i18next instance by using initReactI18next");const w=(C,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(C)?C[C.length-1]:C,S=[w,{},!1];return S.t=w,S.i18n={},S.ready=!1,S}s.options.react&&s.options.react.wait!==void 0&&gu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...J2(),...s.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||i||s.options&&s.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(u);const c=(s.isInitialized||s.initializedStoreOnce)&&u.every(w=>W2(w,s,o));function d(){return s.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,g]=b.useState(d);let p=u.join();t.lng&&(p=`${t.lng}${p}`);const y=sw(p),x=b.useRef(!0);b.useEffect(()=>{const{bindI18n:w,bindI18nStore:S}=o;x.current=!0,!c&&!a&&(t.lng?eh(s,t.lng,u,()=>{x.current&&g(d)}):Jf(s,u,()=>{x.current&&g(d)})),c&&y&&y!==p&&x.current&&g(d);function C(){x.current&&g(d)}return w&&s&&s.on(w,C),S&&s&&s.store.on(S,C),()=>{x.current=!1,w&&s&&w.split(" ").forEach(k=>s.off(k,C)),S&&s&&S.split(" ").forEach(k=>s.store.off(k,C))}},[s,p]);const m=b.useRef(!0);b.useEffect(()=>{x.current&&!m.current&&g(d),m.current=!1},[s,l]);const v=[h,s,c];if(v.t=h,v.i18n=s,v.ready=c,c||!c&&!a)return v;throw new Promise(w=>{t.lng?eh(s,t.lng,u,()=>w()):Jf(s,u,()=>w())})}je.use(Um).use(nw).init({backend:{loadPath:(e,t)=>t.map(r=>r==="common"?"/i18n":`/${r}/i18n`),parse:e=>JSON.parse(e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});class Jr{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Gi=typeof window>"u"||"Deno"in window;function ut(){}function ow(e,t){return typeof e=="function"?e(t):e}function yu(e){return typeof e=="number"&&e>=0&&e!==1/0}function qm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vr(e,t,n){return Ns(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function aw(e,t,n){return Ns(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function pn(e,t,n){return Ns(e)?[{...t,queryKey:e},n]:[e||{},t]}function th(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(Ns(o)){if(r){if(t.queryHash!==Hc(o,t.options))return!1}else if(!Go(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||s&&!s(t))}function nh(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:s}=e;if(Ns(s)){if(!t.options.mutationKey)return!1;if(n){if(Kn(t.options.mutationKey)!==Kn(s))return!1}else if(!Go(t.options.mutationKey,s))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Hc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Kn)(e)}function Kn(e){return JSON.stringify(e,(t,n)=>wu(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Go(e,t){return Qm(e,t)}function Qm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qm(e[n],t[n])):!1}function Wm(e,t){if(e===t)return e;const n=rh(e)&&rh(t);if(n||wu(e)&&wu(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),s=i.length,o=n?[]:{};let a=0;for(let l=0;l<s;l++){const u=n?l:i[l];o[u]=Wm(e[u],t[u]),o[u]===e[u]&&a++}return r===s&&a===r?e:o}return t}function Yo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function rh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wu(e){if(!ih(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ih(n)||!n.hasOwnProperty("isPrototypeOf"))}function ih(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ns(e){return Array.isArray(e)}function Km(e){return new Promise(t=>{setTimeout(t,e)})}function sh(e){Km(0).then(e)}function lw(){if(typeof AbortController=="function")return new AbortController}function xu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Wm(e,t):t}class uw extends Jr{constructor(){super(),this.setup=t=>{if(!Gi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Jo=new uw,oh=["online","offline"];class cw extends Jr{constructor(){super(),this.setup=t=>{if(!Gi&&window.addEventListener){const n=()=>t();return oh.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{oh.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const ea=new cw;function dw(e){return Math.min(1e3*2**e,3e4)}function Ma(e){return(e??"online")==="online"?ea.isOnline():!0}class Zm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Oo(e){return e instanceof Zm}function Xm(e){let t=!1,n=0,r=!1,i,s,o;const a=new Promise((x,m)=>{s=x,o=m}),l=x=>{r||(g(new Zm(x)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Jo.isFocused()||e.networkMode!=="always"&&!ea.isOnline(),h=x=>{r||(r=!0,e.onSuccess==null||e.onSuccess(x),i==null||i(),s(x))},g=x=>{r||(r=!0,e.onError==null||e.onError(x),i==null||i(),o(x))},p=()=>new Promise(x=>{i=m=>{const v=r||!d();return v&&x(m),v},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let x;try{x=e.fn()}catch(m){x=Promise.reject(m)}Promise.resolve(x).then(h).catch(m=>{var v,w;if(r)return;const S=(v=e.retry)!=null?v:3,C=(w=e.retryDelay)!=null?w:dw,k=typeof C=="function"?C(n,m):C,O=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,m);if(t||!O){g(m);return}n++,e.onFail==null||e.onFail(n,m),Km(k).then(()=>{if(d())return p()}).then(()=>{t?g(m):y()})})};return Ma(e.networkMode)?y():p().then(y),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const qc=console;function fw(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const i=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},s=c=>{t?e.push(c):sh(()=>{n(c)})},o=c=>(...d)=>{s(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&sh(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:o,schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ue=fw();class Gm{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Gi?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class hw extends Gm{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||qc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||pw(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=xu(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(ut).catch(ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!qm(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(p=>p.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey);const o=lw(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(a);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=g=>{if(Oo(g)&&g.silent||this.dispatch({type:"error",error:g}),!Oo(g)){var p,y,x,m;(p=(y=this.cache.config).onError)==null||p.call(y,g,this),(x=(m=this.cache.config).onSettled)==null||x.call(m,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Xm({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:g=>{var p,y,x,m;if(typeof g>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(p=(y=this.cache.config).onSuccess)==null||p.call(y,g,this),(x=(m=this.cache.config).onSettled)==null||x.call(m,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(g,p)=>{this.dispatch({type:"failed",failureCount:g,error:p})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,s;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Ma(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=t.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Oo(o)&&o.revert&&this.revertState?{...this.revertState}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ue.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function pw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class Ym extends Jr{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const s=n.queryKey,o=(i=n.queryHash)!=null?i:Hc(s,n);let a=this.get(o);return a||(a=new hw({cache:this,logger:t.getLogger(),queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ue.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=pn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>th(r,i))}findAll(t,n){const[r]=pn(t,n);return Object.keys(r).length>0?this.queries.filter(i=>th(r,i)):this.queries}notify(t){ue.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ue.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ue.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class mw extends Gm{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||qc,this.observers=[],this.state=t.state||Jm(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var O;return this.retryer=Xm({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(R,I)=>{this.dispatch({type:"failed",failureCount:R,error:I})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(O=this.options.retry)!=null?O:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,s,o,a,l,u,c;if(!n){var d,h,g,p;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(h=this.mutationCache.config).onMutate)==null?void 0:d.call(h,this.state.variables,this));const R=await((g=(p=this.options).onMutate)==null?void 0:g.call(p,this.state.variables));R!==this.state.context&&this.dispatch({type:"loading",context:R,variables:this.state.variables})}const O=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,O,this.state.variables,this.state.context,this)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,O,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,O,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,O,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:O}),O}catch(O){try{var y,x,m,v,w,S,C,k;throw await((y=(x=this.mutationCache.config).onError)==null?void 0:y.call(x,O,this.state.variables,this.state.context,this)),await((m=(v=this.options).onError)==null?void 0:m.call(v,O,this.state.variables,this.state.context)),await((w=(S=this.mutationCache.config).onSettled)==null?void 0:w.call(S,void 0,O,this.state.variables,this.state.context,this)),await((C=(k=this.options).onSettled)==null?void 0:C.call(k,void 0,O,this.state.variables,this.state.context)),O}finally{this.dispatch({type:"error",error:O})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ma(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ue.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Jm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class gw extends Jr{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new mw({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ue.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>nh(t,n))}findAll(t){return this.mutations.filter(n=>nh(t,n))}notify(t){ue.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ue.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(ut)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Su(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,s,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((s=e.state.data)==null?void 0:s.pages)||[],g=((o=e.state.data)==null?void 0:o.pageParams)||[];let p=g,y=!1;const x=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var O;if((O=e.signal)!=null&&O.aborted)y=!0;else{var R;(R=e.signal)==null||R.addEventListener("abort",()=>{y=!0})}return e.signal}})},m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(k,O,R,I)=>(p=I?[O,...p]:[...p,O],I?[R,...k]:[...k,R]),w=(k,O,R,I)=>{if(y)return Promise.reject("Cancelled");if(typeof R>"u"&&!O&&k.length)return Promise.resolve(k);const A={queryKey:e.queryKey,pageParam:R,meta:e.options.meta};x(A);const M=m(A);return Promise.resolve(M).then(B=>v(k,R,B,I))};let S;if(!h.length)S=w([]);else if(c){const k=typeof u<"u",O=k?u:bu(e.options,h);S=w(h,k,O)}else if(d){const k=typeof u<"u",O=k?u:e1(e.options,h);S=w(h,k,O,!0)}else{p=[];const k=typeof e.options.getNextPageParam>"u";S=(a&&h[0]?a(h[0],0,h):!0)?w([],k,g[0]):Promise.resolve(v([],g[0],h[0]));for(let R=1;R<h.length;R++)S=S.then(I=>{if(a&&h[R]?a(h[R],R,h):!0){const M=k?g[R]:bu(e.options,I);return w(I,k,M)}return Promise.resolve(v(I,g[R],h[R]))})}return S.then(k=>({pages:k,pageParams:p}))}}}}function bu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function e1(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function vw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=bu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function yw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=e1(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class ww{constructor(t={}){this.queryCache=t.queryCache||new Ym,this.mutationCache=t.mutationCache||new gw,this.logger=t.logger||qc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Jo.subscribe(()=>{Jo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ea.subscribe(()=>{ea.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=pn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=vr(t,n,r),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),s=i==null?void 0:i.state.data,o=ow(n,s);if(typeof o>"u")return;const a=vr(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ue.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=pn(t,n),i=this.queryCache;ue.batch(()=>{i.findAll(r).forEach(s=>{i.remove(s)})})}resetQueries(t,n,r){const[i,s]=pn(t,n,r),o=this.queryCache,a={type:"active",...i};return ue.batch(()=>(o.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(a,s)))}cancelQueries(t,n,r){const[i,s={}]=pn(t,n,r);typeof s.revert>"u"&&(s.revert=!0);const o=ue.batch(()=>this.queryCache.findAll(i).map(a=>a.cancel(s)));return Promise.all(o).then(ut).catch(ut)}invalidateQueries(t,n,r){const[i,s]=pn(t,n,r);return ue.batch(()=>{var o,a;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(o=(a=i.refetchType)!=null?a:i.type)!=null?o:"active"};return this.refetchQueries(l,s)})}refetchQueries(t,n,r){const[i,s]=pn(t,n,r),o=ue.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...s,cancelRefetch:(u=s==null?void 0:s.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let a=Promise.all(o).then(ut);return s!=null&&s.throwOnError||(a=a.catch(ut)),a}fetchQuery(t,n,r){const i=vr(t,n,r),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);const o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(ut).catch(ut)}fetchInfiniteQuery(t,n,r){const i=vr(t,n,r);return i.behavior=Su(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ut).catch(ut)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>Kn(t)===Kn(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Go(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>Kn(t)===Kn(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Go(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Hc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class t1 extends Jr{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),ah(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Eu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Eu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Yo(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const s=this.hasListeners();s&&lh(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),s&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();s&&(this.currentQuery!==i||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return Sw(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ut)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Gi||this.currentResult.isStale||!yu(this.options.staleTime))return;const n=qm(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Gi||this.options.enabled===!1||!yu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Jo.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,s=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:h,error:g,errorUpdatedAt:p,fetchStatus:y,status:x}=d,m=!1,v=!1,w;if(n._optimisticResults){const R=this.hasListeners(),I=!R&&ah(t,n),A=R&&lh(t,r,n,i);(I||A)&&(y=Ma(t.options.networkMode)?"fetching":"paused",h||(x="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&x!=="error")w=c.data,h=c.dataUpdatedAt,x=c.status,m=!0;else if(n.select&&typeof d.data<"u")if(s&&d.data===(o==null?void 0:o.data)&&n.select===this.selectFn)w=this.selectResult;else try{this.selectFn=n.select,w=n.select(d.data),w=xu(s==null?void 0:s.data,w,n),this.selectResult=w,this.selectError=null}catch(R){this.selectError=R}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&x==="loading"){let R;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))R=s.data;else if(R=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof R<"u")try{R=n.select(R),this.selectError=null}catch(I){this.selectError=I}typeof R<"u"&&(x="success",w=xu(s==null?void 0:s.data,R,n),v=!0)}this.selectError&&(g=this.selectError,w=this.selectResult,p=Date.now(),x="error");const S=y==="fetching",C=x==="loading",k=x==="error";return{status:x,fetchStatus:y,isLoading:C,isSuccess:x==="success",isError:k,isInitialLoading:C&&S,data:w,dataUpdatedAt:h,error:g,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!C,isLoadingError:k&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:m,isRefetchError:k&&d.dataUpdatedAt!==0,isStale:Qc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Yo(r,n))return;this.currentResult=r;const i={cache:!0},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!Oo(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ue.batch(()=>{if(t.onSuccess){var n,r,i,s;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(s=this.options).onSettled)==null||i.call(s,this.currentResult.data,null)}else if(t.onError){var o,a,l,u;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function xw(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ah(e,t){return xw(e,t)||e.state.dataUpdatedAt>0&&Eu(e,t,t.refetchOnMount)}function Eu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qc(e,t)}return!1}function lh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Qc(e,n)}function Qc(e,t){return e.isStaleByTime(t.staleTime)}function Sw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Yo(e.getCurrentResult(),t)}class bw extends t1{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:Su()},n)}getOptimisticResult(t){return t.behavior=Su(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,i,s,o,a,l;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:h}=c,g=d&&((r=u.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",p=d&&((s=u.fetchMeta)==null||(o=s.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:vw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:yw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:g,isFetchingPreviousPage:p,isRefetching:h&&!g&&!p}}}let Ew=class extends Jr{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Yo(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Jm(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){ue.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,s;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(s=this.mutateOptions).onSettled)==null||i.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,a,l,u;(o=(a=this.mutateOptions).onError)==null||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var n1={exports:{}},ot={},r1={exports:{}},i1={};/**
17
+ */var s2=b,o2=Symbol.for("react.element"),a2=Symbol.for("react.fragment"),l2=Object.prototype.hasOwnProperty,u2=s2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c2={key:!0,ref:!0,__self:!0,__source:!0};function Am(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)l2.call(t,r)&&!c2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:o2,type:e,key:s,ref:o,props:i,_owner:u2.current}}Aa.Fragment=a2;Aa.jsx=Am;Aa.jsxs=Am;Cm.exports=Aa;var f=Cm.exports;const d2={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Ho{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||d2,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Ho(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ho(this.logger,t)}}var Ut=new Ho;class La{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function li(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Ff(e){return e==null?"":""+e}function f2(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function Vc(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function i(){return!e||typeof e=="string"}const s=typeof t!="string"?[].concat(t):t.split(".");for(;s.length>1;){if(i())return{};const o=r(s.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return i()?{}:{obj:e,k:r(s.shift())}}function $f(e,t,n){const{obj:r,k:i}=Vc(e,t,Object);r[i]=n}function h2(e,t,n,r){const{obj:i,k:s}=Vc(e,t,Object);i[s]=i[s]||[],r&&(i[s]=i[s].concat(n)),r||i[s].push(n)}function qo(e,t){const{obj:n,k:r}=Vc(e,t);if(n)return n[r]}function p2(e,t,n){const r=qo(e,n);return r!==void 0?r:qo(t,n)}function Lm(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):Lm(e[r],t[r],n):e[r]=t[r]);return e}function pr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var m2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function g2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>m2[t]):e}const v2=[" ",",","?","!",";"];function y2(e,t,n){t=t||"",n=n||"";const r=v2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s}function Qo(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let s=0;s<r.length;++s){if(!i||typeof i[r[s]]=="string"&&s+1<r.length)return;if(i[r[s]]===void 0){let o=2,a=r.slice(s,s+o).join(n),l=i[a];for(;l===void 0&&r.length>s+o;)o++,a=r.slice(s,s+o).join(n),l=i[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}const u=r.slice(s+o).join(n);return u?Qo(l,u,n):void 0}i=i[r[s]]}return i}function Wo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class zf extends La{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(s?r.split(s):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=qo(this.data,a);return l||!o||typeof r!="string"?l:Qo(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),i=n,n=a[1]),this.addNamespaces(n),$f(this.data,a,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Object.prototype.toString.apply(r[s])==="[object Array]")&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),i=r,r=n,n=a[1]),this.addNamespaces(n);let l=qo(this.data,a)||{};i?Lm(l,r,s):l={...l,...r},$f(this.data,a,l),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var Mm={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,i))}),t}};const Bf={};class Ko extends La{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),f2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ut.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!y2(t,r,i);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:s};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(i)}return typeof s=="string"&&(s=[s]),{key:t,namespaces:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(t[t.length-1],n),l=a[a.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const S=n.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${S}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l}:`${l}${S}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l}:o}const d=this.resolve(t,n);let h=d&&d.res;const g=d&&d.usedKey||o,p=d&&d.exactUsedKey||o,y=Object.prototype.toString.apply(h),x=["[object Number]","[object Function]","[object RegExp]"],m=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&h&&(typeof h!="string"&&typeof h!="boolean"&&typeof h!="number")&&x.indexOf(y)<0&&!(typeof m=="string"&&y==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=S,d):S}if(s){const S=y==="[object Array]",C=S?[]:{},k=S?p:g;for(const O in h)if(Object.prototype.hasOwnProperty.call(h,O)){const R=`${k}${s}${O}`;C[O]=this.translate(R,{...n,joinArrays:!1,ns:a}),C[O]===R&&(C[O]=h[O])}h=C}}else if(v&&typeof m=="string"&&y==="[object Array]")h=h.join(m),h&&(h=this.extendTranslation(h,t,n,r));else{let S=!1,C=!1;const k=n.count!==void 0&&typeof n.count!="string",O=Ko.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(u,n.count,n):"",I=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",A=n[`defaultValue${R}`]||n[`defaultValue${I}`]||n.defaultValue;!this.isValidLookup(h)&&O&&(S=!0,h=A),this.isValidLookup(h)||(C=!0,h=o);const z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:h,B=O&&A!==h&&this.options.updateMissing;if(C||S||B){if(this.logger.log(B?"updateKey":"missingKey",u,l,o,B?A:h),s){const F=this.resolve(o,{...n,keySeparator:!1});F&&F.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 E=[];const P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&P&&P[0])for(let F=0;F<P.length;F++)E.push(P[F]);else this.options.saveMissingTo==="all"?E=this.languageUtils.toResolveHierarchy(n.lng||this.language):E.push(n.lng||this.language);const L=(F,j,N)=>{const $=O&&N!==h?N:z;this.options.missingKeyHandler?this.options.missingKeyHandler(F,l,j,$,B,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(F,l,j,$,B,n),this.emit("missingKey",F,l,j,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?E.forEach(F=>{this.pluralResolver.getSuffixes(F,n).forEach(j=>{L([F],o+j,n[`defaultValue${j}`]||A)})}):L(E,o,A))}h=this.extendTranslation(h,t,n,d,r),C&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(C||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,S?h:void 0):h=this.options.parseMissingKeyHandler(h))}return i?(d.res=h,d):h}extendTranslation(t,n,r,i,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const h=t.match(this.interpolator.nestingRegexp);c=h&&h.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),u){const h=t.match(this.interpolator.nestingRegexp),g=h&&h.length;c<g&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,g=new Array(h),p=0;p<h;p++)g[p]=arguments[p];return s&&s[0]===g[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${g[0]} in key: ${n[0]}`),null):o.translate(...g,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,l=typeof a=="string"?[a]:a;return t!=null&&l&&l.length&&r.applyPostProcessor!==!1&&(t=Mm.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:i,...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,o,a;return typeof t=="string"&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(l,n),c=u.key;i=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",g=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(x=>{this.isValidLookup(r)||(a=x,!Bf[`${y[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Bf[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(m=>{if(this.isValidLookup(r))return;o=m;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,m,x,n);else{let S;h&&(S=this.pluralResolver.getSuffix(m,n.count,n));const C=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+S),n.ordinal&&S.indexOf(k)===0&&v.push(c+S.replace(k,this.options.pluralSeparator)),g&&v.push(c+C)),p){const O=`${c}${this.options.contextSeparator}${n.context}`;v.push(O),h&&(v.push(O+S),n.ordinal&&S.indexOf(k)===0&&v.push(O+S.replace(k,this.options.pluralSeparator)),g&&v.push(O+C))}}let w;for(;w=v.pop();)this.isValidLookup(r)||(s=w,r=this.getResource(m,x,w,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function kl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Uf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ut.create("languageUtils")}getScriptPartFromCode(t){if(t=Wo(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Wo(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=kl(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=kl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=kl(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&s.indexOf(i)===0)return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):typeof t=="string"&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}let w2=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],x2={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const S2=["v1","v2","v3"],b2=["v4"],Vf={zero:0,one:1,two:2,few:3,many:4,other:5};function E2(){const e={};return w2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x2[t.fc]}})}),e}class C2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ut.create("pluralResolver"),(!this.options.compatibilityJSON||b2.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=E2()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Wo(t),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,s)=>Vf[i]-Vf[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!S2.includes(this.options.compatibilityJSON)}}function Hf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=p2(e,t,n);return!s&&i&&typeof n=="string"&&(s=Qo(e,n,r),s===void 0&&(s=Qo(t,n,r))),s}class k2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ut.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:g2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?pr(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?pr(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?pr(n.nestingPrefix):n.nestingPrefixEscaped||pr("$t("),this.nestingSuffix=n.nestingSuffix?pr(n.nestingSuffix):n.nestingSuffixEscaped||pr(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,i){let s,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(p){return p.replace(/\$/g,"$$$$")}const c=p=>{if(p.indexOf(this.formatSeparator)<0){const v=Hf(n,l,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...i,...n,interpolationkey:p}):v}const y=p.split(this.formatSeparator),x=y.shift().trim(),m=y.join(this.formatSeparator).trim();return this.format(Hf(n,l,x,this.options.keySeparator,this.options.ignoreJSONStructure),m,r,{...i,...n,interpolationkey:x})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>u(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?u(this.escape(p)):u(p)}].forEach(p=>{for(a=0;s=p.regex.exec(t);){const y=s[1].trim();if(o=c(y),o===void 0)if(typeof d=="function"){const m=d(t,s,i);o=typeof m=="string"?m:""}else if(i&&Object.prototype.hasOwnProperty.call(i,y))o="";else if(h){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Ff(o));const x=p.safeValue(o);if(t=t.replace(s[0],x),h?(p.regex.lastIndex+=o.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,o;function a(l,u){const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const d=l.split(new RegExp(`${c}[ ]*{`));let h=`{${d[1]}`;l=d[0],h=this.interpolate(h,o);const g=h.match(/'/g),p=h.match(/"/g);(g&&g.length%2===0&&!p||p.length%2!==0)&&(h=h.replace(/'/g,'"'));try{o=JSON.parse(h),u&&(o={...u,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${h}`}return delete o.defaultValue,l}for(;i=this.nestingRegexp.exec(t);){let l=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const c=i[1].split(this.formatSeparator).map(d=>d.trim());i[1]=c.shift(),l=c,u=!0}if(s=n(a.call(this,i[1].trim(),o),o),s&&i[0]===t&&typeof s!="string")return s;typeof s!="string"&&(s=Ff(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),u&&(s=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}function O2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(!o)return;const[a,...l]=o.split(":"),u=l.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=u),u==="false"&&(n[a.trim()]=!1),u==="true"&&(n[a.trim()]=!0),isNaN(u)||(n[a.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function mr(e){const t={};return function(r,i,s){const o=i+JSON.stringify(s);let a=t[o];return a||(a=e(Wo(i),s),t[o]=a),a(r)}}class R2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ut.create("formatter"),this.options=t,this.formats={number:mr((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:mr((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:mr((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:mr((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:mr((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},this.init(t)}init(t){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=mr(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=O2(l);if(this.formats[u]){let d=a;try{const h=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},g=h.locale||h.lng||i.locale||i.lng||r;d=this.formats[u](a,g,{...c,...i,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function P2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class j2 extends La{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=Ut.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},a={},l={};return t.forEach(u=>{let c=!0;n.forEach(d=>{const h=`${u}|${d}`;!r.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?o[h]===void 0&&(o[h]=!0):(this.state[h]=1,c=!1,o[h]===void 0&&(o[h]=!0),s[h]===void 0&&(s[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),r&&this.store.addResourceBundle(s,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{h2(l.loaded,[s],o),P2(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const a=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&c&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(u,c)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const u=l(t,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}return}return l(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const l={...o,isUpdate:s},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,i,l):c=u(t,n,r,i),c&&typeof c.then=="function"?c.then(d=>a(null,d)).catch(a):a(null,c)}catch(c){a(c)}else u(t,n,r,i,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}function qf(){return{debug:!1,initImmediate:!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:function(t){let n={};if(typeof t[1]=="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const r=t[3]||t[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Qf(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Xs(){}function N2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Zi extends La{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Qf(t),this.services={},this.logger=Ut,this.modules={external:[]},N2(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=qf();this.options={...i,...this.options,...Qf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Ut.init(s(this.modules.logger),this.options):Ut.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=R2);const d=new Uf(this.options);this.store=new zf(this.options.resources,this.options);const h=this.services;h.logger=Ut,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new C2(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(h.formatter=s(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new k2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new j2(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(g){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x<p;x++)y[x-1]=arguments[x];t.emit(g,...y)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Ko(this.services,this.options),this.translator.on("*",function(g){for(var p=arguments.length,y=new Array(p>1?p-1:0),x=1;x<p;x++)y[x-1]=arguments[x];t.emit(g,...y)}),this.modules.external.forEach(g=>{g.init&&g.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Xs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const l=li(),u=()=>{const c=(d,h)=>{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),l.resolve(h),r(d,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xs;const i=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode")return r();const s=[],o=a=>{if(!a)return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{s.indexOf(u)<0&&s.push(u)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>o(l)),this.options.preload&&this.options.preload.forEach(a=>o(a)),this.services.backendConnector.load(s,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const i=li();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Xs),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Mm.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=li();this.emit("languageChanging",t);const s=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(l,function(){return r.t(...arguments)})},a=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||s(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{o(c,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),i}getFixedT(t,n,r){var i=this;const s=function(o,a){let l;if(typeof a!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),d=2;d<u;d++)c[d-2]=arguments[d];l=i.options.overloadTranslationOptionHandler([o,a].concat(c))}else l={...a};l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix=l.keyPrefix||r||s.keyPrefix;const h=i.options.keySeparator||".";let g;return l.keyPrefix&&Array.isArray(o)?g=o.map(p=>`${l.keyPrefix}${h}${p}`):g=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,i.t(g,l)};return typeof t=="string"?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};if(n.precheck){const a=n.precheck(this,o);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=li();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=li();typeof t=="string"&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0);return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Uf(qf());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Zi(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xs;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new Zi(i);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new zf(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Ko(s.services,i),s.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];s.emit(a,...u)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const je=Zi.createInstance();je.createInstance=Zi.createInstance;je.createInstance;je.dir;je.init;je.loadResources;je.reloadResources;je.use;je.changeLanguage;je.getFixedT;const Zt=je.t;je.exists;je.setDefaultNamespace;je.hasLoadedNamespace;je.loadNamespaces;je.loadLanguages;function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}var Dm=[],T2=Dm.forEach,_2=Dm.slice;function hu(e){return T2.call(_2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function Fm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":fu(XMLHttpRequest))==="object"}function I2(e){return!!e&&typeof e.then=="function"}function A2(e){return I2(e)?e:Promise.resolve(e)}function L2(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pu={exports:{}},Gs={exports:{}},Wf;function M2(){return Wf||(Wf=1,function(e,t){var n=typeof self<"u"?self:He,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(o){var a={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function l(E){return E&&DataView.prototype.isPrototypeOf(E)}if(a.arrayBuffer)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(E){return E&&u.indexOf(Object.prototype.toString.call(E))>-1};function d(E){if(typeof E!="string"&&(E=String(E)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(E))throw new TypeError("Invalid character in header field name");return E.toLowerCase()}function h(E){return typeof E!="string"&&(E=String(E)),E}function g(E){var P={next:function(){var L=E.shift();return{done:L===void 0,value:L}}};return a.iterable&&(P[Symbol.iterator]=function(){return P}),P}function p(E){this.map={},E instanceof p?E.forEach(function(P,L){this.append(L,P)},this):Array.isArray(E)?E.forEach(function(P){this.append(P[0],P[1])},this):E&&Object.getOwnPropertyNames(E).forEach(function(P){this.append(P,E[P])},this)}p.prototype.append=function(E,P){E=d(E),P=h(P);var L=this.map[E];this.map[E]=L?L+", "+P:P},p.prototype.delete=function(E){delete this.map[d(E)]},p.prototype.get=function(E){return E=d(E),this.has(E)?this.map[E]:null},p.prototype.has=function(E){return this.map.hasOwnProperty(d(E))},p.prototype.set=function(E,P){this.map[d(E)]=h(P)},p.prototype.forEach=function(E,P){for(var L in this.map)this.map.hasOwnProperty(L)&&E.call(P,this.map[L],L,this)},p.prototype.keys=function(){var E=[];return this.forEach(function(P,L){E.push(L)}),g(E)},p.prototype.values=function(){var E=[];return this.forEach(function(P){E.push(P)}),g(E)},p.prototype.entries=function(){var E=[];return this.forEach(function(P,L){E.push([L,P])}),g(E)},a.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function y(E){if(E.bodyUsed)return Promise.reject(new TypeError("Already read"));E.bodyUsed=!0}function x(E){return new Promise(function(P,L){E.onload=function(){P(E.result)},E.onerror=function(){L(E.error)}})}function m(E){var P=new FileReader,L=x(P);return P.readAsArrayBuffer(E),L}function v(E){var P=new FileReader,L=x(P);return P.readAsText(E),L}function w(E){for(var P=new Uint8Array(E),L=new Array(P.length),F=0;F<P.length;F++)L[F]=String.fromCharCode(P[F]);return L.join("")}function S(E){if(E.slice)return E.slice(0);var P=new Uint8Array(E.byteLength);return P.set(new Uint8Array(E)),P.buffer}function C(){return this.bodyUsed=!1,this._initBody=function(E){this._bodyInit=E,E?typeof E=="string"?this._bodyText=E:a.blob&&Blob.prototype.isPrototypeOf(E)?this._bodyBlob=E:a.formData&&FormData.prototype.isPrototypeOf(E)?this._bodyFormData=E:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)?this._bodyText=E.toString():a.arrayBuffer&&a.blob&&l(E)?(this._bodyArrayBuffer=S(E.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(E)||c(E))?this._bodyArrayBuffer=S(E):this._bodyText=E=Object.prototype.toString.call(E):this._bodyText="",this.headers.get("content-type")||(typeof E=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a.searchParams&&URLSearchParams.prototype.isPrototypeOf(E)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var E=y(this);if(E)return E;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a.formData&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(E){var P=E.toUpperCase();return k.indexOf(P)>-1?P:E}function R(E,P){P=P||{};var L=P.body;if(E instanceof R){if(E.bodyUsed)throw new TypeError("Already read");this.url=E.url,this.credentials=E.credentials,P.headers||(this.headers=new p(E.headers)),this.method=E.method,this.mode=E.mode,this.signal=E.signal,!L&&E._bodyInit!=null&&(L=E._bodyInit,E.bodyUsed=!0)}else this.url=String(E);if(this.credentials=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new p(P.headers)),this.method=O(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(L)}R.prototype.clone=function(){return new R(this,{body:this._bodyInit})};function I(E){var P=new FormData;return E.trim().split("&").forEach(function(L){if(L){var F=L.split("="),j=F.shift().replace(/\+/g," "),N=F.join("=").replace(/\+/g," ");P.append(decodeURIComponent(j),decodeURIComponent(N))}}),P}function A(E){var P=new p,L=E.replace(/\r?\n[\t ]+/g," ");return L.split(/\r?\n/).forEach(function(F){var j=F.split(":"),N=j.shift().trim();if(N){var $=j.join(":").trim();P.append(N,$)}}),P}C.call(R.prototype);function M(E,P){P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in P?P.statusText:"OK",this.headers=new p(P.headers),this.url=P.url||"",this._initBody(E)}C.call(M.prototype),M.prototype.clone=function(){return new M(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},M.error=function(){var E=new M(null,{status:0,statusText:""});return E.type="error",E};var z=[301,302,303,307,308];M.redirect=function(E,P){if(z.indexOf(P)===-1)throw new RangeError("Invalid status code");return new M(null,{status:P,headers:{location:E}})},o.DOMException=s.DOMException;try{new o.DOMException}catch{o.DOMException=function(P,L){this.message=P,this.name=L;var F=Error(P);this.stack=F.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function B(E,P){return new Promise(function(L,F){var j=new R(E,P);if(j.signal&&j.signal.aborted)return F(new o.DOMException("Aborted","AbortError"));var N=new XMLHttpRequest;function $(){N.abort()}N.onload=function(){var W={status:N.status,statusText:N.statusText,headers:A(N.getAllResponseHeaders()||"")};W.url="responseURL"in N?N.responseURL:W.headers.get("X-Request-URL");var H="response"in N?N.response:N.responseText;L(new M(H,W))},N.onerror=function(){F(new TypeError("Network request failed"))},N.ontimeout=function(){F(new TypeError("Network request failed"))},N.onabort=function(){F(new o.DOMException("Aborted","AbortError"))},N.open(j.method,j.url,!0),j.credentials==="include"?N.withCredentials=!0:j.credentials==="omit"&&(N.withCredentials=!1),"responseType"in N&&a.blob&&(N.responseType="blob"),j.headers.forEach(function(W,H){N.setRequestHeader(H,W)}),j.signal&&(j.signal.addEventListener("abort",$),N.onreadystatechange=function(){N.readyState===4&&j.signal.removeEventListener("abort",$)}),N.send(typeof j._bodyInit>"u"?null:j._bodyInit)})}return B.polyfill=!0,s.fetch||(s.fetch=B,s.Headers=p,s.Request=R,s.Response=M),o.Headers=p,o.Request=R,o.Response=M,o.fetch=B,Object.defineProperty(o,"__esModule",{value:!0}),o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;t=i.fetch,t.default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t}(Gs,Gs.exports)),Gs.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof He<"u"&&He.fetch?n=He.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof L2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||M2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(pu,pu.exports);var $m=pu.exports;const zm=js($m),Kf=By({__proto__:null,default:zm},[$m]);function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}var nn;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?nn=global.fetch:typeof window<"u"&&window.fetch?nn=window.fetch:nn=fetch);var Xi;Fm()&&(typeof global<"u"&&global.XMLHttpRequest?Xi=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Xi=window.XMLHttpRequest));var Xo;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Xo=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Xo=window.ActiveXObject));!nn&&Kf&&!Xi&&!Xo&&(nn=zm||Kf);typeof nn!="function"&&(nn=void 0);var mu=function(t,n){if(n&&Zo(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Zf=function(t,n,r){nn(t,n).then(function(i){if(!i.ok)return r(i.statusText||"Error",{status:i.status});i.text().then(function(s){r(null,{status:i.status,data:s})}).catch(r)}).catch(r)},Xf=!1,D2=function(t,n,r,i){t.queryStringParams&&(n=mu(n,t.queryStringParams));var s=hu({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);r&&(s["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=hu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:s},Xf?{}:o);try{Zf(n,a,i)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return i(l);try{Object.keys(o).forEach(function(u){delete a[u]}),Zf(n,a,i),Xf=!0}catch(u){i(u)}}},F2=function(t,n,r,i){r&&Zo(r)==="object"&&(r=mu("",r).slice(1)),t.queryStringParams&&(n=mu(n,t.queryStringParams));try{var s;Xi?s=new Xi:s=new Xo("MSXML2.XMLHTTP.3.0"),s.open(r?"POST":"GET",n,1),t.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!t.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)s.setRequestHeader(a,o[a]);s.onreadystatechange=function(){s.readyState>3&&i(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(l){console&&console.log(l)}},$2=function(t,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},nn&&n.indexOf("file:")!==0)return D2(t,n,r,i);if(Fm()||typeof ActiveXObject=="function")return F2(t,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(e)}function z2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bm(r.key),r)}}function B2(e,t,n){return t&&Gf(e.prototype,t),n&&Gf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function U2(e,t,n){return t=Bm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bm(e){var t=V2(e,"string");return Gi(t)==="symbol"?t:String(t)}function V2(e,t){if(Gi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Gi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H2=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return U2({},r,i||"")},parseLoadPayload:function(n,r){},request:$2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Um=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};z2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return B2(e,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=hu(i,this.options||{},H2()),this.allOptions=s,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,s,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,i)),l=A2(l),l.then(function(u){if(!u)return o(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:i.join("+")});a.loadUrl(c,o,r,s)})}},{key:"loadUrl",value:function(n,r,i,s){var o=this,a=typeof i=="string"?[i]:i,l=typeof s=="string"?[s]:s,u=this.options.parseLoadPayload(a,l);this.options.request(this.options,n,u,function(c,d){if(d&&(d.status>=500&&d.status<600||!d.status))return r("failed loading "+n+"; status code: "+d.status,!0);if(d&&d.status>=400&&d.status<500)return r("failed loading "+n+"; status code: "+d.status,!1);if(!d&&c&&c.message&&c.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+c.message,!0);if(c)return r(c,!1);var h,g;try{typeof d.data=="string"?h=o.options.parse(d.data,i,s):h=d.data}catch{g="failed parsing "+n+" to json"}if(g)return r(g,!1);r(null,h)})}},{key:"create",value:function(n,r,i,s,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,i,s),u=0,c=[],d=[];n.forEach(function(h){var g=a.options.addPath;typeof a.options.addPath=="function"&&(g=a.options.addPath(h,r));var p=a.services.interpolator.interpolate(g,{lng:h,ns:r});a.options.request(a.options,p,l,function(y,x){u+=1,c.push(y),d.push(x),u===n.length&&typeof o=="function"&&o(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,s=r.languageUtils,o=r.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var h=s.toResolveHierarchy(d);h.forEach(function(g){l.indexOf(g)<0&&l.push(g)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){i.read(c,d,"read",null,null,function(h,g){h&&o.warn("loading namespace ".concat(d," for language ").concat(c," failed"),h),!h&&g&&o.log("loaded namespace ".concat(d," for language ").concat(c),g),i.loaded("".concat(c,"|").concat(d),h,g)})})})}}}]),e}();Um.type="backend";function q2(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Yf={};function gu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Yf[t[0]]||(typeof t[0]=="string"&&(Yf[t[0]]=new Date),q2(...t))}const Vm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Jf(e,t,n){e.loadNamespaces(t,Vm(e,n))}function eh(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Vm(e,r))}function Q2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(a,l)=>{const u=t.services.backendConnector.state[`${a}|${l}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(s,e)))}function W2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(gu("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):Q2(e,t,n)}const K2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Z2={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},X2=e=>Z2[e],G2=e=>e.replace(K2,X2);let vu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:G2};function Y2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vu={...vu,...e}}function J2(){return vu}let Hm;function ew(e){Hm=e}function tw(){return Hm}const nw={type:"3rdParty",init(e){Y2(e.options.react),ew(e)}},rw=b.createContext();class iw{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const sw=(e,t)=>{const n=b.useRef();return b.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function xe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=b.useContext(rw)||{},s=n||r||tw();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new iw),!s){gu("You will need to pass in an i18next instance by using initReactI18next");const w=(C,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(C)?C[C.length-1]:C,S=[w,{},!1];return S.t=w,S.i18n={},S.ready=!1,S}s.options.react&&s.options.react.wait!==void 0&&gu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...J2(),...s.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||i||s.options&&s.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(u);const c=(s.isInitialized||s.initializedStoreOnce)&&u.every(w=>W2(w,s,o));function d(){return s.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,g]=b.useState(d);let p=u.join();t.lng&&(p=`${t.lng}${p}`);const y=sw(p),x=b.useRef(!0);b.useEffect(()=>{const{bindI18n:w,bindI18nStore:S}=o;x.current=!0,!c&&!a&&(t.lng?eh(s,t.lng,u,()=>{x.current&&g(d)}):Jf(s,u,()=>{x.current&&g(d)})),c&&y&&y!==p&&x.current&&g(d);function C(){x.current&&g(d)}return w&&s&&s.on(w,C),S&&s&&s.store.on(S,C),()=>{x.current=!1,w&&s&&w.split(" ").forEach(k=>s.off(k,C)),S&&s&&S.split(" ").forEach(k=>s.store.off(k,C))}},[s,p]);const m=b.useRef(!0);b.useEffect(()=>{x.current&&!m.current&&g(d),m.current=!1},[s,l]);const v=[h,s,c];if(v.t=h,v.i18n=s,v.ready=c,c||!c&&!a)return v;throw new Promise(w=>{t.lng?eh(s,t.lng,u,()=>w()):Jf(s,u,()=>w())})}je.use(Um).use(nw).init({backend:{loadPath:(e,t)=>t.map(r=>r==="common"?"/i18n":`/${r}/i18n`),parse:e=>JSON.parse(e)},defaultNS:"common",ns:["common"],fallbackLng:"fr",lng:"fr",interpolation:{escapeValue:!1,prefix:"[[",suffix:"]]"},debug:!1});class ei{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Yi=typeof window>"u"||"Deno"in window;function ct(){}function ow(e,t){return typeof e=="function"?e(t):e}function yu(e){return typeof e=="number"&&e>=0&&e!==1/0}function qm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function yr(e,t,n){return Ts(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function aw(e,t,n){return Ts(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function mn(e,t,n){return Ts(e)?[{...t,queryKey:e},n]:[e||{},t]}function th(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(Ts(o)){if(r){if(t.queryHash!==Hc(o,t.options))return!1}else if(!Go(t.queryKey,o))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||s&&!s(t))}function nh(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:s}=e;if(Ts(s)){if(!t.options.mutationKey)return!1;if(n){if(Zn(t.options.mutationKey)!==Zn(s))return!1}else if(!Go(t.options.mutationKey,s))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function Hc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Zn)(e)}function Zn(e){return JSON.stringify(e,(t,n)=>wu(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Go(e,t){return Qm(e,t)}function Qm(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qm(e[n],t[n])):!1}function Wm(e,t){if(e===t)return e;const n=rh(e)&&rh(t);if(n||wu(e)&&wu(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),s=i.length,o=n?[]:{};let a=0;for(let l=0;l<s;l++){const u=n?l:i[l];o[u]=Wm(e[u],t[u]),o[u]===e[u]&&a++}return r===s&&a===r?e:o}return t}function Yo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function rh(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function wu(e){if(!ih(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!ih(n)||!n.hasOwnProperty("isPrototypeOf"))}function ih(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ts(e){return Array.isArray(e)}function Km(e){return new Promise(t=>{setTimeout(t,e)})}function sh(e){Km(0).then(e)}function lw(){if(typeof AbortController=="function")return new AbortController}function xu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Wm(e,t):t}class uw extends ei{constructor(){super(),this.setup=t=>{if(!Yi&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const Jo=new uw,oh=["online","offline"];class cw extends ei{constructor(){super(),this.setup=t=>{if(!Yi&&window.addEventListener){const n=()=>t();return oh.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{oh.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const ea=new cw;function dw(e){return Math.min(1e3*2**e,3e4)}function Ma(e){return(e??"online")==="online"?ea.isOnline():!0}class Zm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Oo(e){return e instanceof Zm}function Xm(e){let t=!1,n=0,r=!1,i,s,o;const a=new Promise((x,m)=>{s=x,o=m}),l=x=>{r||(g(new Zm(x)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Jo.isFocused()||e.networkMode!=="always"&&!ea.isOnline(),h=x=>{r||(r=!0,e.onSuccess==null||e.onSuccess(x),i==null||i(),s(x))},g=x=>{r||(r=!0,e.onError==null||e.onError(x),i==null||i(),o(x))},p=()=>new Promise(x=>{i=m=>{const v=r||!d();return v&&x(m),v},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let x;try{x=e.fn()}catch(m){x=Promise.reject(m)}Promise.resolve(x).then(h).catch(m=>{var v,w;if(r)return;const S=(v=e.retry)!=null?v:3,C=(w=e.retryDelay)!=null?w:dw,k=typeof C=="function"?C(n,m):C,O=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,m);if(t||!O){g(m);return}n++,e.onFail==null||e.onFail(n,m),Km(k).then(()=>{if(d())return p()}).then(()=>{t?g(m):y()})})};return Ma(e.networkMode)?y():p().then(y),{promise:a,cancel:l,continue:()=>(i==null?void 0:i())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const qc=console;function fw(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const i=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},s=c=>{t?e.push(c):sh(()=>{n(c)})},o=c=>(...d)=>{s(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&sh(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:o,schedule:s,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ue=fw();class Gm{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Yi?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class hw extends Gm{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||qc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||pw(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=xu(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(ct).catch(ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!qm(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var s;return(s=this.retryer)==null||s.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(p=>p.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey);const o=lw(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(a);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=c.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=g=>{if(Oo(g)&&g.silent||this.dispatch({type:"error",error:g}),!Oo(g)){var p,y,x,m;(p=(y=this.cache.config).onError)==null||p.call(y,g,this),(x=(m=this.cache.config).onSettled)==null||x.call(m,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Xm({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:g=>{var p,y,x,m;if(typeof g>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(p=(y=this.cache.config).onSuccess)==null||p.call(y,g,this),(x=(m=this.cache.config).onSettled)==null||x.call(m,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(g,p)=>{this.dispatch({type:"failed",failureCount:g,error:p})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,s;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:Ma(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(s=t.dataUpdatedAt)!=null?s:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Oo(o)&&o.revert&&this.revertState?{...this.revertState}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ue.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function pw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class Ym extends ei{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const s=n.queryKey,o=(i=n.queryHash)!=null?i:Hc(s,n);let a=this.get(o);return a||(a=new hw({cache:this,logger:t.getLogger(),queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ue.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=mn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>th(r,i))}findAll(t,n){const[r]=mn(t,n);return Object.keys(r).length>0?this.queries.filter(i=>th(r,i)):this.queries}notify(t){ue.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ue.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ue.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class mw extends Gm{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||qc,this.observers=[],this.state=t.state||Jm(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var O;return this.retryer=Xm({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(R,I)=>{this.dispatch({type:"failed",failureCount:R,error:I})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(O=this.options.retry)!=null?O:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,s,o,a,l,u,c;if(!n){var d,h,g,p;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(h=this.mutationCache.config).onMutate)==null?void 0:d.call(h,this.state.variables,this));const R=await((g=(p=this.options).onMutate)==null?void 0:g.call(p,this.state.variables));R!==this.state.context&&this.dispatch({type:"loading",context:R,variables:this.state.variables})}const O=await t();return await((r=(i=this.mutationCache.config).onSuccess)==null?void 0:r.call(i,O,this.state.variables,this.state.context,this)),await((s=(o=this.options).onSuccess)==null?void 0:s.call(o,O,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,O,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,O,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:O}),O}catch(O){try{var y,x,m,v,w,S,C,k;throw await((y=(x=this.mutationCache.config).onError)==null?void 0:y.call(x,O,this.state.variables,this.state.context,this)),await((m=(v=this.options).onError)==null?void 0:m.call(v,O,this.state.variables,this.state.context)),await((w=(S=this.mutationCache.config).onSettled)==null?void 0:w.call(S,void 0,O,this.state.variables,this.state.context,this)),await((C=(k=this.options).onSettled)==null?void 0:C.call(k,void 0,O,this.state.variables,this.state.context)),O}finally{this.dispatch({type:"error",error:O})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Ma(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ue.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Jm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class gw extends ei{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new mw({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ue.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>nh(t,n))}findAll(t){return this.mutations.filter(n=>nh(t,n))}notify(t){ue.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ue.batch(()=>n.reduce((r,i)=>r.then(()=>i.continue().catch(ct)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Su(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,s,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((s=e.state.data)==null?void 0:s.pages)||[],g=((o=e.state.data)==null?void 0:o.pageParams)||[];let p=g,y=!1;const x=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>{var O;if((O=e.signal)!=null&&O.aborted)y=!0;else{var R;(R=e.signal)==null||R.addEventListener("abort",()=>{y=!0})}return e.signal}})},m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(k,O,R,I)=>(p=I?[O,...p]:[...p,O],I?[R,...k]:[...k,R]),w=(k,O,R,I)=>{if(y)return Promise.reject("Cancelled");if(typeof R>"u"&&!O&&k.length)return Promise.resolve(k);const A={queryKey:e.queryKey,pageParam:R,meta:e.options.meta};x(A);const M=m(A);return Promise.resolve(M).then(B=>v(k,R,B,I))};let S;if(!h.length)S=w([]);else if(c){const k=typeof u<"u",O=k?u:bu(e.options,h);S=w(h,k,O)}else if(d){const k=typeof u<"u",O=k?u:e1(e.options,h);S=w(h,k,O,!0)}else{p=[];const k=typeof e.options.getNextPageParam>"u";S=(a&&h[0]?a(h[0],0,h):!0)?w([],k,g[0]):Promise.resolve(v([],g[0],h[0]));for(let R=1;R<h.length;R++)S=S.then(I=>{if(a&&h[R]?a(h[R],R,h):!0){const M=k?g[R]:bu(e.options,I);return w(I,k,M)}return Promise.resolve(v(I,g[R],h[R]))})}return S.then(k=>({pages:k,pageParams:p}))}}}}function bu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function e1(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function vw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=bu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function yw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=e1(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class ww{constructor(t={}){this.queryCache=t.queryCache||new Ym,this.mutationCache=t.mutationCache||new gw,this.logger=t.logger||qc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Jo.subscribe(()=>{Jo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ea.subscribe(()=>{ea.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=mn(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const i=yr(t,n,r),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),s=i==null?void 0:i.state.data,o=ow(n,s);if(typeof o>"u")return;const a=yr(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ue.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=mn(t,n),i=this.queryCache;ue.batch(()=>{i.findAll(r).forEach(s=>{i.remove(s)})})}resetQueries(t,n,r){const[i,s]=mn(t,n,r),o=this.queryCache,a={type:"active",...i};return ue.batch(()=>(o.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(a,s)))}cancelQueries(t,n,r){const[i,s={}]=mn(t,n,r);typeof s.revert>"u"&&(s.revert=!0);const o=ue.batch(()=>this.queryCache.findAll(i).map(a=>a.cancel(s)));return Promise.all(o).then(ct).catch(ct)}invalidateQueries(t,n,r){const[i,s]=mn(t,n,r);return ue.batch(()=>{var o,a;if(this.queryCache.findAll(i).forEach(u=>{u.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(o=(a=i.refetchType)!=null?a:i.type)!=null?o:"active"};return this.refetchQueries(l,s)})}refetchQueries(t,n,r){const[i,s]=mn(t,n,r),o=ue.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...s,cancelRefetch:(u=s==null?void 0:s.cancelRefetch)!=null?u:!0,meta:{refetchPage:i.refetchPage}})}));let a=Promise.all(o).then(ct);return s!=null&&s.throwOnError||(a=a.catch(ct)),a}fetchQuery(t,n,r){const i=yr(t,n,r),s=this.defaultQueryOptions(i);typeof s.retry>"u"&&(s.retry=!1);const o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(ct).catch(ct)}fetchInfiniteQuery(t,n,r){const i=yr(t,n,r);return i.behavior=Su(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(ct).catch(ct)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>Zn(t)===Zn(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Go(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>Zn(t)===Zn(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Go(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Hc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class t1 extends ei{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),ah(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Eu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Eu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Yo(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const s=this.hasListeners();s&&lh(this.currentQuery,i,this.options,r)&&this.executeFetch(),this.updateResult(n),s&&(this.currentQuery!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();s&&(this.currentQuery!==i||this.options.enabled!==r.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return Sw(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ct)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Yi||this.currentResult.isStale||!yu(this.options.staleTime))return;const n=qm(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Yi||this.options.enabled===!1||!yu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Jo.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,i=this.options,s=this.currentResult,o=this.currentResultState,a=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:h,error:g,errorUpdatedAt:p,fetchStatus:y,status:x}=d,m=!1,v=!1,w;if(n._optimisticResults){const R=this.hasListeners(),I=!R&&ah(t,n),A=R&&lh(t,r,n,i);(I||A)&&(y=Ma(t.options.networkMode)?"fetching":"paused",h||(x="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&x!=="error")w=c.data,h=c.dataUpdatedAt,x=c.status,m=!0;else if(n.select&&typeof d.data<"u")if(s&&d.data===(o==null?void 0:o.data)&&n.select===this.selectFn)w=this.selectResult;else try{this.selectFn=n.select,w=n.select(d.data),w=xu(s==null?void 0:s.data,w,n),this.selectResult=w,this.selectError=null}catch(R){this.selectError=R}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&x==="loading"){let R;if(s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))R=s.data;else if(R=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof R<"u")try{R=n.select(R),this.selectError=null}catch(I){this.selectError=I}typeof R<"u"&&(x="success",w=xu(s==null?void 0:s.data,R,n),v=!0)}this.selectError&&(g=this.selectError,w=this.selectResult,p=Date.now(),x="error");const S=y==="fetching",C=x==="loading",k=x==="error";return{status:x,fetchStatus:y,isLoading:C,isSuccess:x==="success",isError:k,isInitialLoading:C&&S,data:w,dataUpdatedAt:h,error:g,errorUpdatedAt:p,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!C,isLoadingError:k&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:m,isRefetchError:k&&d.dataUpdatedAt!==0,isStale:Qc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Yo(r,n))return;this.currentResult=r;const i={cache:!0},s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!this.trackedProps.size)return!0;const l=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&s()&&(i.listeners=!0),this.notify({...i,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!Oo(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ue.batch(()=>{if(t.onSuccess){var n,r,i,s;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(i=(s=this.options).onSettled)==null||i.call(s,this.currentResult.data,null)}else if(t.onError){var o,a,l,u;(o=(a=this.options).onError)==null||o.call(a,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function xw(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function ah(e,t){return xw(e,t)||e.state.dataUpdatedAt>0&&Eu(e,t,t.refetchOnMount)}function Eu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Qc(e,t)}return!1}function lh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Qc(e,n)}function Qc(e,t){return e.isStaleByTime(t.staleTime)}function Sw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Yo(e.getCurrentResult(),t)}class bw extends t1{constructor(t,n){super(t,n)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t,n){super.setOptions({...t,behavior:Su()},n)}getOptimisticResult(t){return t.behavior=Su(),super.getOptimisticResult(t)}fetchNextPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"forward",pageParam:t}}})}fetchPreviousPage({pageParam:t,...n}={}){return this.fetch({...n,meta:{fetchMore:{direction:"backward",pageParam:t}}})}createResult(t,n){var r,i,s,o,a,l;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:h}=c,g=d&&((r=u.fetchMeta)==null||(i=r.fetchMore)==null?void 0:i.direction)==="forward",p=d&&((s=u.fetchMeta)==null||(o=s.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:vw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:yw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:g,isFetchingPreviousPage:p,isRefetching:h&&!g&&!p}}}let Ew=class extends ei{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),Yo(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:Jm(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){ue.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,i,s;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(i=(s=this.mutateOptions).onSettled)==null||i.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,a,l,u;(o=(a=this.mutateOptions).onError)==null||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var n1={exports:{}},ot={},r1={exports:{}},i1={};/**
18
18
  * @license React
19
19
  * scheduler.production.min.js
20
20
  *
@@ -22,7 +22,7 @@ var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,config
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */(function(e){function t(j,N){var $=j.length;j.push(N);e:for(;0<$;){var W=$-1>>>1,H=j[W];if(0<i(H,N))j[W]=N,j[$]=H,$=W;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var N=j[0],$=j.pop();if($!==N){j[0]=$;e:for(var W=0,H=j.length,Ye=H>>>1;W<Ye;){var he=2*(W+1)-1,J=j[he],Z=he+1,ie=j[Z];if(0>i(J,$))Z<H&&0>i(ie,J)?(j[W]=ie,j[Z]=$,W=Z):(j[W]=J,j[he]=$,W=he);else if(Z<H&&0>i(ie,$))j[W]=ie,j[Z]=$,W=Z;else break e}}return N}function i(j,N){var $=j.sortIndex-N.sortIndex;return $!==0?$:j.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,g=!1,p=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(j){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=j)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function S(j){if(y=!1,w(j),!p)if(n(l)!==null)p=!0,L(C);else{var N=n(u);N!==null&&F(S,N.startTime-j)}}function C(j,N){p=!1,y&&(y=!1,m(R),R=-1),g=!0;var $=h;try{for(w(N),d=n(l);d!==null&&(!(d.expirationTime>N)||j&&!M());){var W=d.callback;if(typeof W=="function"){d.callback=null,h=d.priorityLevel;var H=W(d.expirationTime<=N);N=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(l)&&r(l),w(N)}else r(l);d=n(l)}if(d!==null)var Ye=!0;else{var he=n(u);he!==null&&F(S,he.startTime-N),Ye=!1}return Ye}finally{d=null,h=$,g=!1}}var k=!1,O=null,R=-1,I=5,A=-1;function M(){return!(e.unstable_now()-A<I)}function z(){if(O!==null){var j=e.unstable_now();A=j;var N=!0;try{N=O(!0,j)}finally{N?B():(k=!1,O=null)}}else k=!1}var B;if(typeof v=="function")B=function(){v(z)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,P=E.port2;E.port1.onmessage=z,B=function(){P.postMessage(null)}}else B=function(){x(z,0)};function L(j){O=j,k||(k=!0,B())}function F(j,N){R=x(function(){j(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){p||g||(p=!0,L(C))},e.unstable_forceFrameRate=function(j){0>j||125<j||(I=0<j?Math.floor(1e3/j):5)},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(h){case 1:case 2:case 3:var N=3;break;default:N=h}var $=h;h=N;try{return j()}finally{h=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,N){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var $=h;h=j;try{return N()}finally{h=$}},e.unstable_scheduleCallback=function(j,N,$){var W=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?W+$:W):$=W,j){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=$+H,j={id:c++,callback:N,priorityLevel:j,startTime:$,expirationTime:H,sortIndex:-1},$>W?(j.sortIndex=$,t(u,j),n(l)===null&&j===n(u)&&(y?(m(R),R=-1):y=!0,F(S,$-W))):(j.sortIndex=H,t(l,j),p||g||(p=!0,L(C))),j},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(j){var N=h;return function(){var $=h;h=N;try{return j.apply(this,arguments)}finally{h=$}}}})(i1);r1.exports=i1;var Cw=r1.exports;/**
25
+ */(function(e){function t(j,N){var $=j.length;j.push(N);e:for(;0<$;){var W=$-1>>>1,H=j[W];if(0<i(H,N))j[W]=N,j[$]=H,$=W;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var N=j[0],$=j.pop();if($!==N){j[0]=$;e:for(var W=0,H=j.length,Ye=H>>>1;W<Ye;){var he=2*(W+1)-1,J=j[he],K=he+1,ie=j[K];if(0>i(J,$))K<H&&0>i(ie,J)?(j[W]=ie,j[K]=$,W=K):(j[W]=J,j[he]=$,W=he);else if(K<H&&0>i(ie,$))j[W]=ie,j[K]=$,W=K;else break e}}return N}function i(j,N){var $=j.sortIndex-N.sortIndex;return $!==0?$:j.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,h=3,g=!1,p=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(j){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=j)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function S(j){if(y=!1,w(j),!p)if(n(l)!==null)p=!0,L(C);else{var N=n(u);N!==null&&F(S,N.startTime-j)}}function C(j,N){p=!1,y&&(y=!1,m(R),R=-1),g=!0;var $=h;try{for(w(N),d=n(l);d!==null&&(!(d.expirationTime>N)||j&&!M());){var W=d.callback;if(typeof W=="function"){d.callback=null,h=d.priorityLevel;var H=W(d.expirationTime<=N);N=e.unstable_now(),typeof H=="function"?d.callback=H:d===n(l)&&r(l),w(N)}else r(l);d=n(l)}if(d!==null)var Ye=!0;else{var he=n(u);he!==null&&F(S,he.startTime-N),Ye=!1}return Ye}finally{d=null,h=$,g=!1}}var k=!1,O=null,R=-1,I=5,A=-1;function M(){return!(e.unstable_now()-A<I)}function z(){if(O!==null){var j=e.unstable_now();A=j;var N=!0;try{N=O(!0,j)}finally{N?B():(k=!1,O=null)}}else k=!1}var B;if(typeof v=="function")B=function(){v(z)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,P=E.port2;E.port1.onmessage=z,B=function(){P.postMessage(null)}}else B=function(){x(z,0)};function L(j){O=j,k||(k=!0,B())}function F(j,N){R=x(function(){j(e.unstable_now())},N)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){p||g||(p=!0,L(C))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(j){switch(h){case 1:case 2:case 3:var N=3;break;default:N=h}var $=h;h=N;try{return j()}finally{h=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,N){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var $=h;h=j;try{return N()}finally{h=$}},e.unstable_scheduleCallback=function(j,N,$){var W=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?W+$:W):$=W,j){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=$+H,j={id:c++,callback:N,priorityLevel:j,startTime:$,expirationTime:H,sortIndex:-1},$>W?(j.sortIndex=$,t(u,j),n(l)===null&&j===n(u)&&(y?(m(R),R=-1):y=!0,F(S,$-W))):(j.sortIndex=H,t(l,j),p||g||(p=!0,L(C))),j},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(j){var N=h;return function(){var $=h;h=N;try{return j.apply(this,arguments)}finally{h=$}}}})(i1);r1.exports=i1;var Cw=r1.exports;/**
26
26
  * @license React
27
27
  * react-dom.production.min.js
28
28
  *
@@ -30,14 +30,14 @@ var $y=Object.defineProperty;var zy=(e,t,n)=>t in e?$y(e,t,{enumerable:!0,config
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var s1=b,it=Cw;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var o1=new Set,Yi={};function ur(e,t){$r(e,t),$r(e+"Capture",t)}function $r(e,t){for(Yi[e]=t,e=0;e<t.length;e++)o1.add(t[e])}var rn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cu=Object.prototype.hasOwnProperty,kw=/^[: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]*$/,uh={},ch={};function Ow(e){return Cu.call(ch,e)?!0:Cu.call(uh,e)?!1:kw.test(e)?ch[e]=!0:(uh[e]=!0,!1)}function Rw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Pw(e,t,n,r){if(t===null||typeof t>"u"||Rw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ee[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ee[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ee[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ee[e]=new Le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ee[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ee[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ee[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ee[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ee[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wc=/[\-:]([a-z])/g;function Kc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wc,Kc);Ee[t]=new Le(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wc,Kc);Ee[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wc,Kc);Ee[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ee[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Ee.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ee[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zc(e,t,n,r){var i=Ee.hasOwnProperty(t)?Ee[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Pw(t,n,i,r)&&(n=null),r||i===null?Ow(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var cn=s1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Gs=Symbol.for("react.element"),yr=Symbol.for("react.portal"),wr=Symbol.for("react.fragment"),Xc=Symbol.for("react.strict_mode"),ku=Symbol.for("react.profiler"),a1=Symbol.for("react.provider"),l1=Symbol.for("react.context"),Gc=Symbol.for("react.forward_ref"),Ou=Symbol.for("react.suspense"),Ru=Symbol.for("react.suspense_list"),Yc=Symbol.for("react.memo"),mn=Symbol.for("react.lazy"),u1=Symbol.for("react.offscreen"),dh=Symbol.iterator;function li(e){return e===null||typeof e!="object"?null:(e=dh&&e[dh]||e["@@iterator"],typeof e=="function"?e:null)}var ae=Object.assign,Ol;function Ei(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||""}return`
33
+ */var s1=b,it=Cw;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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."}var o1=new Set,Ji={};function cr(e,t){zr(e,t),zr(e+"Capture",t)}function zr(e,t){for(Ji[e]=t,e=0;e<t.length;e++)o1.add(t[e])}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cu=Object.prototype.hasOwnProperty,kw=/^[: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]*$/,uh={},ch={};function Ow(e){return Cu.call(ch,e)?!0:Cu.call(uh,e)?!1:kw.test(e)?ch[e]=!0:(uh[e]=!0,!1)}function Rw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Pw(e,t,n,r){if(t===null||typeof t>"u"||Rw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Le(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ee[e]=new Le(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ee[t]=new Le(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ee[e]=new Le(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ee[e]=new Le(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ee[e]=new Le(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ee[e]=new Le(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ee[e]=new Le(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ee[e]=new Le(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ee[e]=new Le(e,5,!1,e.toLowerCase(),null,!1,!1)});var Wc=/[\-:]([a-z])/g;function Kc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Wc,Kc);Ee[t]=new Le(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Wc,Kc);Ee[t]=new Le(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wc,Kc);Ee[t]=new Le(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ee[e]=new Le(e,1,!1,e.toLowerCase(),null,!1,!1)});Ee.xlinkHref=new Le("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ee[e]=new Le(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zc(e,t,n,r){var i=Ee.hasOwnProperty(t)?Ee[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Pw(t,n,i,r)&&(n=null),r||i===null?Ow(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var dn=s1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ys=Symbol.for("react.element"),wr=Symbol.for("react.portal"),xr=Symbol.for("react.fragment"),Xc=Symbol.for("react.strict_mode"),ku=Symbol.for("react.profiler"),a1=Symbol.for("react.provider"),l1=Symbol.for("react.context"),Gc=Symbol.for("react.forward_ref"),Ou=Symbol.for("react.suspense"),Ru=Symbol.for("react.suspense_list"),Yc=Symbol.for("react.memo"),gn=Symbol.for("react.lazy"),u1=Symbol.for("react.offscreen"),dh=Symbol.iterator;function ui(e){return e===null||typeof e!="object"?null:(e=dh&&e[dh]||e["@@iterator"],typeof e=="function"?e:null)}var ae=Object.assign,Ol;function Ci(e){if(Ol===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ol=t&&t[1]||""}return`
34
34
  `+Ol+e}var Rl=!1;function Pl(e,t){if(!e||Rl)return"";Rl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
35
  `),s=r.stack.split(`
36
36
  `),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
37
- `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ei(e):""}function jw(e){switch(e.tag){case 5:return Ei(e.type);case 16:return Ei("Lazy");case 13:return Ei("Suspense");case 19:return Ei("SuspenseList");case 0:case 2:case 15:return e=Pl(e.type,!1),e;case 11:return e=Pl(e.type.render,!1),e;case 1:return e=Pl(e.type,!0),e;default:return""}}function Pu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wr:return"Fragment";case yr:return"Portal";case ku:return"Profiler";case Xc:return"StrictMode";case Ou:return"Suspense";case Ru:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l1:return(e.displayName||"Context")+".Consumer";case a1:return(e._context.displayName||"Context")+".Provider";case Gc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yc:return t=e.displayName||null,t!==null?t:Pu(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return Pu(e(t))}catch{}}return null}function Nw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pu(t);case 8:return t===Xc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function An(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function c1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tw(e){var t=c1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ys(e){e._valueTracker||(e._valueTracker=Tw(e))}function d1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=c1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ta(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ju(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=An(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function f1(e,t){t=t.checked,t!=null&&Zc(e,"checked",t,!1)}function Nu(e,t){f1(e,t);var n=An(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tu(e,t.type,An(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tu(e,t,n){(t!=="number"||ta(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ci=Array.isArray;function Tr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+An(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _u(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ph(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(Ci(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:An(n)}}function h1(e,t){var n=An(t.value),r=An(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function mh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function p1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Iu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?p1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Js,m1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Js=Js||document.createElement("div"),Js.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Js.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ji(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ni={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_w=["Webkit","ms","Moz","O"];Object.keys(Ni).forEach(function(e){_w.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ni[t]=Ni[e]})});function g1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ni.hasOwnProperty(e)&&Ni[e]?(""+t).trim():t+"px"}function v1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=g1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Iw=ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Au(e,t){if(t){if(Iw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Lu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mu=null;function Jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Du=null,_r=null,Ir=null;function gh(e){if(e=Is(e)){if(typeof Du!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Ba(t),Du(e.stateNode,e.type,t))}}function y1(e){_r?Ir?Ir.push(e):Ir=[e]:_r=e}function w1(){if(_r){var e=_r,t=Ir;if(Ir=_r=null,gh(e),t)for(e=0;e<t.length;e++)gh(t[e])}}function x1(e,t){return e(t)}function S1(){}var jl=!1;function b1(e,t,n){if(jl)return e(t,n);jl=!0;try{return x1(e,t,n)}finally{jl=!1,(_r!==null||Ir!==null)&&(S1(),w1())}}function es(e,t){var n=e.stateNode;if(n===null)return null;var r=Ba(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var Fu=!1;if(rn)try{var ui={};Object.defineProperty(ui,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",ui,ui),window.removeEventListener("test",ui,ui)}catch{Fu=!1}function Aw(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ti=!1,na=null,ra=!1,$u=null,Lw={onError:function(e){Ti=!0,na=e}};function Mw(e,t,n,r,i,s,o,a,l){Ti=!1,na=null,Aw.apply(Lw,arguments)}function Dw(e,t,n,r,i,s,o,a,l){if(Mw.apply(this,arguments),Ti){if(Ti){var u=na;Ti=!1,na=null}else throw Error(_(198));ra||(ra=!0,$u=u)}}function cr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function E1(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 vh(e){if(cr(e)!==e)throw Error(_(188))}function Fw(e){var t=e.alternate;if(!t){if(t=cr(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return vh(i),e;if(s===r)return vh(i),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function C1(e){return e=Fw(e),e!==null?k1(e):null}function k1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=k1(e);if(t!==null)return t;e=e.sibling}return null}var O1=it.unstable_scheduleCallback,yh=it.unstable_cancelCallback,$w=it.unstable_shouldYield,zw=it.unstable_requestPaint,ce=it.unstable_now,Bw=it.unstable_getCurrentPriorityLevel,ed=it.unstable_ImmediatePriority,R1=it.unstable_UserBlockingPriority,ia=it.unstable_NormalPriority,Uw=it.unstable_LowPriority,P1=it.unstable_IdlePriority,Da=null,Ut=null;function Vw(e){if(Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(Da,e,void 0,(e.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:Qw,Hw=Math.log,qw=Math.LN2;function Qw(e){return e>>>=0,e===0?32:31-(Hw(e)/qw|0)|0}var eo=64,to=4194304;function ki(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=ki(a):(s&=o,s!==0&&(r=ki(s)))}else o=n&~i,o!==0?r=ki(o):s!==0&&(r=ki(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Nt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ww(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Nt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=Ww(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function zu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function j1(){var e=eo;return eo<<=1,!(eo&4194240)&&(eo=64),e}function Nl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ts(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function Zw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Nt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function td(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Y=0;function N1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var T1,nd,_1,I1,A1,Bu=!1,no=[],kn=null,On=null,Rn=null,ts=new Map,ns=new Map,vn=[],Xw="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 submit".split(" ");function wh(e,t){switch(e){case"focusin":case"focusout":kn=null;break;case"dragenter":case"dragleave":On=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function ci(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=Is(t),t!==null&&nd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Gw(e,t,n,r,i){switch(t){case"focusin":return kn=ci(kn,e,t,n,r,i),!0;case"dragenter":return On=ci(On,e,t,n,r,i),!0;case"mouseover":return Rn=ci(Rn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ts.set(s,ci(ts.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,ns.set(s,ci(ns.get(s)||null,e,t,n,r,i)),!0}return!1}function L1(e){var t=Zn(e.target);if(t!==null){var n=cr(t);if(n!==null){if(t=n.tag,t===13){if(t=E1(n),t!==null){e.blockedOn=t,A1(e.priority,function(){_1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mu=r,n.target.dispatchEvent(r),Mu=null}else return t=Is(n),t!==null&&nd(t),e.blockedOn=n,!1;t.shift()}return!0}function xh(e,t,n){Ro(e)&&n.delete(t)}function Yw(){Bu=!1,kn!==null&&Ro(kn)&&(kn=null),On!==null&&Ro(On)&&(On=null),Rn!==null&&Ro(Rn)&&(Rn=null),ts.forEach(xh),ns.forEach(xh)}function di(e,t){e.blockedOn===t&&(e.blockedOn=null,Bu||(Bu=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,Yw)))}function rs(e){function t(i){return di(i,e)}if(0<no.length){di(no[0],e);for(var n=1;n<no.length;n++){var r=no[n];r.blockedOn===e&&(r.blockedOn=null)}}for(kn!==null&&di(kn,e),On!==null&&di(On,e),Rn!==null&&di(Rn,e),ts.forEach(t),ns.forEach(t),n=0;n<vn.length;n++)r=vn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<vn.length&&(n=vn[0],n.blockedOn===null);)L1(n),n.blockedOn===null&&vn.shift()}var Ar=cn.ReactCurrentBatchConfig,oa=!0;function Jw(e,t,n,r){var i=Y,s=Ar.transition;Ar.transition=null;try{Y=1,rd(e,t,n,r)}finally{Y=i,Ar.transition=s}}function ex(e,t,n,r){var i=Y,s=Ar.transition;Ar.transition=null;try{Y=4,rd(e,t,n,r)}finally{Y=i,Ar.transition=s}}function rd(e,t,n,r){if(oa){var i=Uu(e,t,n,r);if(i===null)zl(e,t,r,aa,n),wh(e,r);else if(Gw(i,e,t,n,r))r.stopPropagation();else if(wh(e,r),t&4&&-1<Xw.indexOf(e)){for(;i!==null;){var s=Is(i);if(s!==null&&T1(s),s=Uu(e,t,n,r),s===null&&zl(e,t,r,aa,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else zl(e,t,r,null,n)}}var aa=null;function Uu(e,t,n,r){if(aa=null,e=Jc(r),e=Zn(e),e!==null)if(t=cr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=E1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return aa=e,null}function M1(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bw()){case ed:return 1;case R1:return 4;case ia:case Uw:return 16;case P1:return 536870912;default:return 16}default:return 16}}var xn=null,id=null,Po=null;function D1(){if(Po)return Po;var e,t=id,n=t.length,r,i="value"in xn?xn.value:xn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Po=i.slice(e,1<r?1-r:void 0)}function jo(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 ro(){return!0}function Sh(){return!1}function at(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ro:Sh,this.isPropagationStopped=Sh,this}return ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ro)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),t}var ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sd=at(ei),_s=ae({},ei,{view:0,detail:0}),tx=at(_s),Tl,_l,fi,Fa=ae({},_s,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:od,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!==fi&&(fi&&e.type==="mousemove"?(Tl=e.screenX-fi.screenX,_l=e.screenY-fi.screenY):_l=Tl=0,fi=e),Tl)},movementY:function(e){return"movementY"in e?e.movementY:_l}}),bh=at(Fa),nx=ae({},Fa,{dataTransfer:0}),rx=at(nx),ix=ae({},_s,{relatedTarget:0}),Il=at(ix),sx=ae({},ei,{animationName:0,elapsedTime:0,pseudoElement:0}),ox=at(sx),ax=ae({},ei,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lx=at(ax),ux=ae({},ei,{data:0}),Eh=at(ux),cx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dx={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"},fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fx[e])?!!t[e]:!1}function od(){return hx}var px=ae({},_s,{key:function(e){if(e.key){var t=cx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:od,charCode:function(e){return e.type==="keypress"?jo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mx=at(px),gx=ae({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ch=at(gx),vx=ae({},_s,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:od}),yx=at(vx),wx=ae({},ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),xx=at(wx),Sx=ae({},Fa,{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}),bx=at(Sx),Ex=[9,13,27,32],ad=rn&&"CompositionEvent"in window,_i=null;rn&&"documentMode"in document&&(_i=document.documentMode);var Cx=rn&&"TextEvent"in window&&!_i,F1=rn&&(!ad||_i&&8<_i&&11>=_i),kh=String.fromCharCode(32),Oh=!1;function $1(e,t){switch(e){case"keyup":return Ex.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xr=!1;function kx(e,t){switch(e){case"compositionend":return z1(t);case"keypress":return t.which!==32?null:(Oh=!0,kh);case"textInput":return e=t.data,e===kh&&Oh?null:e;default:return null}}function Ox(e,t){if(xr)return e==="compositionend"||!ad&&$1(e,t)?(e=D1(),Po=id=xn=null,xr=!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 F1&&t.locale!=="ko"?null:t.data;default:return null}}var Rx={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 Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rx[e.type]:t==="textarea"}function B1(e,t,n,r){y1(r),t=la(t,"onChange"),0<t.length&&(n=new sd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ii=null,is=null;function Px(e){Y1(e,0)}function $a(e){var t=Er(e);if(d1(t))return e}function jx(e,t){if(e==="change")return t}var U1=!1;if(rn){var Al;if(rn){var Ll="oninput"in document;if(!Ll){var Ph=document.createElement("div");Ph.setAttribute("oninput","return;"),Ll=typeof Ph.oninput=="function"}Al=Ll}else Al=!1;U1=Al&&(!document.documentMode||9<document.documentMode)}function jh(){Ii&&(Ii.detachEvent("onpropertychange",V1),is=Ii=null)}function V1(e){if(e.propertyName==="value"&&$a(is)){var t=[];B1(t,is,e,Jc(e)),b1(Px,t)}}function Nx(e,t,n){e==="focusin"?(jh(),Ii=t,is=n,Ii.attachEvent("onpropertychange",V1)):e==="focusout"&&jh()}function Tx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $a(is)}function _x(e,t){if(e==="click")return $a(t)}function Ix(e,t){if(e==="input"||e==="change")return $a(t)}function Ax(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Ax;function ss(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Cu.call(t,i)||!_t(e[i],t[i]))return!1}return!0}function Nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Th(e,t){var n=Nh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nh(n)}}function H1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q1(){for(var e=window,t=ta();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ta(e.document)}return t}function ld(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Lx(e){var t=q1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H1(n.ownerDocument.documentElement,n)){if(r!==null&&ld(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Th(n,s);var o=Th(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Mx=rn&&"documentMode"in document&&11>=document.documentMode,Sr=null,Vu=null,Ai=null,Hu=!1;function _h(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hu||Sr==null||Sr!==ta(r)||(r=Sr,"selectionStart"in r&&ld(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ai&&ss(Ai,r)||(Ai=r,r=la(Vu,"onSelect"),0<r.length&&(t=new sd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Sr)))}function io(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var br={animationend:io("Animation","AnimationEnd"),animationiteration:io("Animation","AnimationIteration"),animationstart:io("Animation","AnimationStart"),transitionend:io("Transition","TransitionEnd")},Ml={},Q1={};rn&&(Q1=document.createElement("div").style,"AnimationEvent"in window||(delete br.animationend.animation,delete br.animationiteration.animation,delete br.animationstart.animation),"TransitionEvent"in window||delete br.transitionend.transition);function za(e){if(Ml[e])return Ml[e];if(!br[e])return e;var t=br[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Q1)return Ml[e]=t[n];return e}var W1=za("animationend"),K1=za("animationiteration"),Z1=za("animationstart"),X1=za("transitionend"),G1=new Map,Ih="abort auxClick 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(" ");function Mn(e,t){G1.set(e,t),ur(t,[e])}for(var Dl=0;Dl<Ih.length;Dl++){var Fl=Ih[Dl],Dx=Fl.toLowerCase(),Fx=Fl[0].toUpperCase()+Fl.slice(1);Mn(Dx,"on"+Fx)}Mn(W1,"onAnimationEnd");Mn(K1,"onAnimationIteration");Mn(Z1,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(X1,"onTransitionEnd");$r("onMouseEnter",["mouseout","mouseover"]);$r("onMouseLeave",["mouseout","mouseover"]);$r("onPointerEnter",["pointerout","pointerover"]);$r("onPointerLeave",["pointerout","pointerover"]);ur("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ur("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ur("onBeforeInput",["compositionend","keypress","textInput","paste"]);ur("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ur("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ur("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),$x=new Set("cancel close invalid load scroll toggle".split(" ").concat(Oi));function Ah(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Dw(r,t,void 0,e),e.currentTarget=null}function Y1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Ah(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Ah(i,a,u),s=l}}}if(ra)throw e=$u,ra=!1,$u=null,e}function te(e,t){var n=t[Zu];n===void 0&&(n=t[Zu]=new Set);var r=e+"__bubble";n.has(r)||(J1(t,e,2,!1),n.add(r))}function $l(e,t,n){var r=0;t&&(r|=4),J1(n,e,r,t)}var so="_reactListening"+Math.random().toString(36).slice(2);function os(e){if(!e[so]){e[so]=!0,o1.forEach(function(n){n!=="selectionchange"&&($x.has(n)||$l(n,!1,e),$l(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[so]||(t[so]=!0,$l("selectionchange",!1,t))}}function J1(e,t,n,r){switch(M1(t)){case 1:var i=Jw;break;case 4:i=ex;break;default:i=rd}n=i.bind(null,t,n,e),i=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zl(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Zn(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}b1(function(){var u=s,c=Jc(n),d=[];e:{var h=G1.get(e);if(h!==void 0){var g=sd,p=e;switch(e){case"keypress":if(jo(n)===0)break e;case"keydown":case"keyup":g=mx;break;case"focusin":p="focus",g=Il;break;case"focusout":p="blur",g=Il;break;case"beforeblur":case"afterblur":g=Il;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=bh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=rx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=yx;break;case W1:case K1:case Z1:g=ox;break;case X1:g=xx;break;case"scroll":g=tx;break;case"wheel":g=bx;break;case"copy":case"cut":case"paste":g=lx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ch}var y=(t&4)!==0,x=!y&&e==="scroll",m=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,w;v!==null;){w=v;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,m!==null&&(S=es(v,m),S!=null&&y.push(as(v,S,w)))),x)break;v=v.return}0<y.length&&(h=new g(h,p,null,n,c),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==Mu&&(p=n.relatedTarget||n.fromElement)&&(Zn(p)||p[sn]))break e;if((g||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,g?(p=n.relatedTarget||n.toElement,g=u,p=p?Zn(p):null,p!==null&&(x=cr(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(g=null,p=u),g!==p)){if(y=bh,S="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Ch,S="onPointerLeave",m="onPointerEnter",v="pointer"),x=g==null?h:Er(g),w=p==null?h:Er(p),h=new y(S,v+"leave",g,n,c),h.target=x,h.relatedTarget=w,S=null,Zn(c)===u&&(y=new y(m,v+"enter",p,n,c),y.target=w,y.relatedTarget=x,S=y),x=S,g&&p)t:{for(y=g,m=p,v=0,w=y;w;w=mr(w))v++;for(w=0,S=m;S;S=mr(S))w++;for(;0<v-w;)y=mr(y),v--;for(;0<w-v;)m=mr(m),w--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=mr(y),m=mr(m)}y=null}else y=null;g!==null&&Lh(d,h,g,y,!1),p!==null&&x!==null&&Lh(d,x,p,y,!0)}}e:{if(h=u?Er(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var C=jx;else if(Rh(h))if(U1)C=Ix;else{C=Tx;var k=Nx}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=_x);if(C&&(C=C(e,u))){B1(d,C,n,c);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Tu(h,"number",h.value)}switch(k=u?Er(u):window,e){case"focusin":(Rh(k)||k.contentEditable==="true")&&(Sr=k,Vu=u,Ai=null);break;case"focusout":Ai=Vu=Sr=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,_h(d,n,c);break;case"selectionchange":if(Mx)break;case"keydown":case"keyup":_h(d,n,c)}var O;if(ad)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else xr?$1(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(F1&&n.locale!=="ko"&&(xr||R!=="onCompositionStart"?R==="onCompositionEnd"&&xr&&(O=D1()):(xn=c,id="value"in xn?xn.value:xn.textContent,xr=!0)),k=la(u,R),0<k.length&&(R=new Eh(R,e,null,n,c),d.push({event:R,listeners:k}),O?R.data=O:(O=z1(n),O!==null&&(R.data=O)))),(O=Cx?kx(e,n):Ox(e,n))&&(u=la(u,"onBeforeInput"),0<u.length&&(c=new Eh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=O))}Y1(d,t)})}function as(e,t,n){return{instance:e,listener:t,currentTarget:n}}function la(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=es(e,n),s!=null&&r.unshift(as(e,s,i)),s=es(e,t),s!=null&&r.push(as(e,s,i))),e=e.return}return r}function mr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lh(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=es(n,s),l!=null&&o.unshift(as(n,l,a))):i||(l=es(n,s),l!=null&&o.push(as(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var zx=/\r\n?/g,Bx=/\u0000|\uFFFD/g;function Mh(e){return(typeof e=="string"?e:""+e).replace(zx,`
38
- `).replace(Bx,"")}function oo(e,t,n){if(t=Mh(t),Mh(e)!==t&&n)throw Error(_(425))}function ua(){}var qu=null,Qu=null;function Wu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ku=typeof setTimeout=="function"?setTimeout:void 0,Ux=typeof clearTimeout=="function"?clearTimeout:void 0,Dh=typeof Promise=="function"?Promise:void 0,Vx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dh<"u"?function(e){return Dh.resolve(null).then(e).catch(Hx)}:Ku;function Hx(e){setTimeout(function(){throw e})}function Bl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),rs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);rs(t)}function Pn(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==="$?")break;if(t==="/$")return null}}return e}function Fh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ti=Math.random().toString(36).slice(2),zt="__reactFiber$"+ti,ls="__reactProps$"+ti,sn="__reactContainer$"+ti,Zu="__reactEvents$"+ti,qx="__reactListeners$"+ti,Qx="__reactHandles$"+ti;function Zn(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sn]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fh(e);e!==null;){if(n=e[zt])return n;e=Fh(e)}return t}e=n,n=e.parentNode}return null}function Is(e){return e=e[zt]||e[sn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Er(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Ba(e){return e[ls]||null}var Xu=[],Cr=-1;function Dn(e){return{current:e}}function ne(e){0>Cr||(e.current=Xu[Cr],Xu[Cr]=null,Cr--)}function ee(e,t){Cr++,Xu[Cr]=e.current,e.current=t}var Ln={},Pe=Dn(Ln),Qe=Dn(!1),nr=Ln;function zr(e,t){var n=e.type.contextTypes;if(!n)return Ln;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function We(e){return e=e.childContextTypes,e!=null}function ca(){ne(Qe),ne(Pe)}function $h(e,t,n){if(Pe.current!==Ln)throw Error(_(168));ee(Pe,t),ee(Qe,n)}function eg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Nw(e)||"Unknown",i));return ae({},n,r)}function da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ln,nr=Pe.current,ee(Pe,e),ee(Qe,Qe.current),!0}function zh(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=eg(e,t,nr),r.__reactInternalMemoizedMergedChildContext=e,ne(Qe),ne(Pe),ee(Pe,e)):ne(Qe),ee(Qe,n)}var Yt=null,Ua=!1,Ul=!1;function tg(e){Yt===null?Yt=[e]:Yt.push(e)}function Wx(e){Ua=!0,tg(e)}function Fn(){if(!Ul&&Yt!==null){Ul=!0;var e=0,t=Y;try{var n=Yt;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Yt=null,Ua=!1}catch(i){throw Yt!==null&&(Yt=Yt.slice(e+1)),O1(ed,Fn),i}finally{Y=t,Ul=!1}}return null}var kr=[],Or=0,fa=null,ha=0,ct=[],dt=0,rr=null,Jt=1,en="";function qn(e,t){kr[Or++]=ha,kr[Or++]=fa,fa=e,ha=t}function ng(e,t,n){ct[dt++]=Jt,ct[dt++]=en,ct[dt++]=rr,rr=e;var r=Jt;e=en;var i=32-Nt(r)-1;r&=~(1<<i),n+=1;var s=32-Nt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Jt=1<<32-Nt(t)+i|n<<i|r,en=s+e}else Jt=1<<s|n<<i|r,en=e}function ud(e){e.return!==null&&(qn(e,1),ng(e,1,0))}function cd(e){for(;e===fa;)fa=kr[--Or],kr[Or]=null,ha=kr[--Or],kr[Or]=null;for(;e===rr;)rr=ct[--dt],ct[dt]=null,en=ct[--dt],ct[dt]=null,Jt=ct[--dt],ct[dt]=null}var rt=null,tt=null,re=!1,Rt=null;function rg(e,t){var n=pt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Bh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rt=e,tt=Pn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=rr!==null?{id:Jt,overflow:en}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=pt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,tt=null,!0):!1;default:return!1}}function Gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yu(e){if(re){var t=tt;if(t){var n=t;if(!Bh(e,t)){if(Gu(e))throw Error(_(418));t=Pn(n.nextSibling);var r=rt;t&&Bh(e,t)?rg(r,n):(e.flags=e.flags&-4097|2,re=!1,rt=e)}}else{if(Gu(e))throw Error(_(418));e.flags=e.flags&-4097|2,re=!1,rt=e}}}function Uh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function ao(e){if(e!==rt)return!1;if(!re)return Uh(e),re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wu(e.type,e.memoizedProps)),t&&(t=tt)){if(Gu(e))throw ig(),Error(_(418));for(;t;)rg(e,t),t=Pn(t.nextSibling)}if(Uh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){tt=Pn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}tt=null}}else tt=rt?Pn(e.stateNode.nextSibling):null;return!0}function ig(){for(var e=tt;e;)e=Pn(e.nextSibling)}function Br(){tt=rt=null,re=!1}function dd(e){Rt===null?Rt=[e]:Rt.push(e)}var Kx=cn.ReactCurrentBatchConfig;function kt(e,t){if(e&&e.defaultProps){t=ae({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var pa=Dn(null),ma=null,Rr=null,fd=null;function hd(){fd=Rr=ma=null}function pd(e){var t=pa.current;ne(pa),e._currentValue=t}function Ju(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Lr(e,t){ma=e,fd=Rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(fd!==e)if(e={context:e,memoizedValue:t,next:null},Rr===null){if(ma===null)throw Error(_(308));Rr=e,ma.dependencies={lanes:0,firstContext:e}}else Rr=Rr.next=e;return t}var Xn=null;function md(e){Xn===null?Xn=[e]:Xn.push(e)}function sg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,md(t)):(n.next=i.next,i.next=n),t.interleaved=n,on(e,r)}function on(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var gn=!1;function gd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function og(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function nn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function jn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,on(e,n)}return i=r.interleaved,i===null?(t.next=t,md(r)):(t.next=i.next,i.next=t),r.interleaved=t,on(e,n)}function No(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,td(e,n)}}function Vh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ga(e,t,n,r){var i=e.updateQueue;gn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var h=a.lane,g=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,y=a;switch(h=t,g=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(g,d,h);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,h=typeof p=="function"?p.call(g,d,h):p,h==null)break e;d=ae({},d,h);break e;case 2:gn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else g={eventTime:g,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=d):c=c.next=g,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);sr|=o,e.lanes=o,e.memoizedState=d}}function Hh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var ag=new s1.Component().refs;function ec(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Va={isMounted:function(e){return(e=e._reactInternals)?cr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ie(),i=Tn(e),s=nn(r,i);s.payload=t,n!=null&&(s.callback=n),t=jn(e,s,i),t!==null&&(Tt(t,e,i,r),No(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ie(),i=Tn(e),s=nn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=jn(e,s,i),t!==null&&(Tt(t,e,i,r),No(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ie(),r=Tn(e),i=nn(n,r);i.tag=2,t!=null&&(i.callback=t),t=jn(e,i,r),t!==null&&(Tt(t,e,r,n),No(t,e,r))}};function qh(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!ss(n,r)||!ss(i,s):!0}function lg(e,t,n){var r=!1,i=Ln,s=t.contextType;return typeof s=="object"&&s!==null?s=vt(s):(i=We(t)?nr:Pe.current,r=t.contextTypes,s=(r=r!=null)?zr(e,i):Ln),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Va,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Qh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Va.enqueueReplaceState(t,t.state,null)}function tc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ag,gd(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=vt(s):(s=We(t)?nr:Pe.current,i.context=zr(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ec(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Va.enqueueReplaceState(i,i.state,null),ga(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function hi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;a===ag&&(a=i.refs={}),o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function lo(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wh(e){var t=e._init;return t(e._payload)}function ug(e){function t(m,v){if(e){var w=m.deletions;w===null?(m.deletions=[v],m.flags|=16):w.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function r(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function i(m,v){return m=_n(m,v),m.index=0,m.sibling=null,m}function s(m,v,w){return m.index=w,e?(w=m.alternate,w!==null?(w=w.index,w<v?(m.flags|=2,v):w):(m.flags|=2,v)):(m.flags|=1048576,v)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,v,w,S){return v===null||v.tag!==6?(v=Zl(w,m.mode,S),v.return=m,v):(v=i(v,w),v.return=m,v)}function l(m,v,w,S){var C=w.type;return C===wr?c(m,v,w.props.children,S,w.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===mn&&Wh(C)===v.type)?(S=i(v,w.props),S.ref=hi(m,v,w),S.return=m,S):(S=Mo(w.type,w.key,w.props,null,m.mode,S),S.ref=hi(m,v,w),S.return=m,S)}function u(m,v,w,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Xl(w,m.mode,S),v.return=m,v):(v=i(v,w.children||[]),v.return=m,v)}function c(m,v,w,S,C){return v===null||v.tag!==7?(v=er(w,m.mode,S,C),v.return=m,v):(v=i(v,w),v.return=m,v)}function d(m,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Zl(""+v,m.mode,w),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Gs:return w=Mo(v.type,v.key,v.props,null,m.mode,w),w.ref=hi(m,null,v),w.return=m,w;case yr:return v=Xl(v,m.mode,w),v.return=m,v;case mn:var S=v._init;return d(m,S(v._payload),w)}if(Ci(v)||li(v))return v=er(v,m.mode,w,null),v.return=m,v;lo(m,v)}return null}function h(m,v,w,S){var C=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:a(m,v,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Gs:return w.key===C?l(m,v,w,S):null;case yr:return w.key===C?u(m,v,w,S):null;case mn:return C=w._init,h(m,v,C(w._payload),S)}if(Ci(w)||li(w))return C!==null?null:c(m,v,w,S,null);lo(m,w)}return null}function g(m,v,w,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(w)||null,a(v,m,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Gs:return m=m.get(S.key===null?w:S.key)||null,l(v,m,S,C);case yr:return m=m.get(S.key===null?w:S.key)||null,u(v,m,S,C);case mn:var k=S._init;return g(m,v,w,k(S._payload),C)}if(Ci(S)||li(S))return m=m.get(w)||null,c(v,m,S,C,null);lo(v,S)}return null}function p(m,v,w,S){for(var C=null,k=null,O=v,R=v=0,I=null;O!==null&&R<w.length;R++){O.index>R?(I=O,O=null):I=O.sibling;var A=h(m,O,w[R],S);if(A===null){O===null&&(O=I);break}e&&O&&A.alternate===null&&t(m,O),v=s(A,v,R),k===null?C=A:k.sibling=A,k=A,O=I}if(R===w.length)return n(m,O),re&&qn(m,R),C;if(O===null){for(;R<w.length;R++)O=d(m,w[R],S),O!==null&&(v=s(O,v,R),k===null?C=O:k.sibling=O,k=O);return re&&qn(m,R),C}for(O=r(m,O);R<w.length;R++)I=g(O,m,R,w[R],S),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?R:I.key),v=s(I,v,R),k===null?C=I:k.sibling=I,k=I);return e&&O.forEach(function(M){return t(m,M)}),re&&qn(m,R),C}function y(m,v,w,S){var C=li(w);if(typeof C!="function")throw Error(_(150));if(w=C.call(w),w==null)throw Error(_(151));for(var k=C=null,O=v,R=v=0,I=null,A=w.next();O!==null&&!A.done;R++,A=w.next()){O.index>R?(I=O,O=null):I=O.sibling;var M=h(m,O,A.value,S);if(M===null){O===null&&(O=I);break}e&&O&&M.alternate===null&&t(m,O),v=s(M,v,R),k===null?C=M:k.sibling=M,k=M,O=I}if(A.done)return n(m,O),re&&qn(m,R),C;if(O===null){for(;!A.done;R++,A=w.next())A=d(m,A.value,S),A!==null&&(v=s(A,v,R),k===null?C=A:k.sibling=A,k=A);return re&&qn(m,R),C}for(O=r(m,O);!A.done;R++,A=w.next())A=g(O,m,R,A.value,S),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?R:A.key),v=s(A,v,R),k===null?C=A:k.sibling=A,k=A);return e&&O.forEach(function(z){return t(m,z)}),re&&qn(m,R),C}function x(m,v,w,S){if(typeof w=="object"&&w!==null&&w.type===wr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Gs:e:{for(var C=w.key,k=v;k!==null;){if(k.key===C){if(C=w.type,C===wr){if(k.tag===7){n(m,k.sibling),v=i(k,w.props.children),v.return=m,m=v;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===mn&&Wh(C)===k.type){n(m,k.sibling),v=i(k,w.props),v.ref=hi(m,k,w),v.return=m,m=v;break e}n(m,k);break}else t(m,k);k=k.sibling}w.type===wr?(v=er(w.props.children,m.mode,S,w.key),v.return=m,m=v):(S=Mo(w.type,w.key,w.props,null,m.mode,S),S.ref=hi(m,v,w),S.return=m,m=S)}return o(m);case yr:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(m,v.sibling),v=i(v,w.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Xl(w,m.mode,S),v.return=m,m=v}return o(m);case mn:return k=w._init,x(m,v,k(w._payload),S)}if(Ci(w))return p(m,v,w,S);if(li(w))return y(m,v,w,S);lo(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,w),v.return=m,m=v):(n(m,v),v=Zl(w,m.mode,S),v.return=m,m=v),o(m)):n(m,v)}return x}var Ur=ug(!0),cg=ug(!1),As={},Vt=Dn(As),us=Dn(As),cs=Dn(As);function Gn(e){if(e===As)throw Error(_(174));return e}function vd(e,t){switch(ee(cs,t),ee(us,e),ee(Vt,As),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Iu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Iu(t,e)}ne(Vt),ee(Vt,t)}function Vr(){ne(Vt),ne(us),ne(cs)}function dg(e){Gn(cs.current);var t=Gn(Vt.current),n=Iu(t,e.type);t!==n&&(ee(us,e),ee(Vt,n))}function yd(e){us.current===e&&(ne(Vt),ne(us))}var se=Dn(0);function va(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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}var Vl=[];function wd(){for(var e=0;e<Vl.length;e++)Vl[e]._workInProgressVersionPrimary=null;Vl.length=0}var To=cn.ReactCurrentDispatcher,Hl=cn.ReactCurrentBatchConfig,ir=0,oe=null,pe=null,ve=null,ya=!1,Li=!1,ds=0,Zx=0;function ke(){throw Error(_(321))}function xd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function Sd(e,t,n,r,i,s){if(ir=s,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,To.current=e===null||e.memoizedState===null?Jx:eS,e=n(r,i),Li){s=0;do{if(Li=!1,ds=0,25<=s)throw Error(_(301));s+=1,ve=pe=null,t.updateQueue=null,To.current=tS,e=n(r,i)}while(Li)}if(To.current=wa,t=pe!==null&&pe.next!==null,ir=0,ve=pe=oe=null,ya=!1,t)throw Error(_(300));return e}function bd(){var e=ds!==0;return ds=0,e}function Ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?oe.memoizedState=ve=e:ve=ve.next=e,ve}function yt(){if(pe===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=ve===null?oe.memoizedState:ve.next;if(t!==null)ve=t,pe=e;else{if(e===null)throw Error(_(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ve===null?oe.memoizedState=ve=e:ve=ve.next=e}return ve}function fs(e,t){return typeof t=="function"?t(e):t}function ql(e){var t=yt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=pe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((ir&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,oe.lanes|=c,sr|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,_t(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,oe.lanes|=s,sr|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ql(e){var t=yt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);_t(s,t.memoizedState)||(qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function fg(){}function hg(e,t){var n=oe,r=yt(),i=t(),s=!_t(r.memoizedState,i);if(s&&(r.memoizedState=i,qe=!0),r=r.queue,Ed(gg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ve!==null&&ve.memoizedState.tag&1){if(n.flags|=2048,hs(9,mg.bind(null,n,r,i,t),void 0,null),ye===null)throw Error(_(349));ir&30||pg(n,t,i)}return i}function pg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mg(e,t,n,r){t.value=n,t.getSnapshot=r,vg(t)&&yg(e)}function gg(e,t,n){return n(function(){vg(t)&&yg(e)})}function vg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function yg(e){var t=on(e,1);t!==null&&Tt(t,e,1,-1)}function Kh(e){var t=Ft();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:e},t.queue=e,e=e.dispatch=Yx.bind(null,oe,e),[t.memoizedState,e]}function hs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function wg(){return yt().memoizedState}function _o(e,t,n,r){var i=Ft();oe.flags|=e,i.memoizedState=hs(1|t,n,void 0,r===void 0?null:r)}function Ha(e,t,n,r){var i=yt();r=r===void 0?null:r;var s=void 0;if(pe!==null){var o=pe.memoizedState;if(s=o.destroy,r!==null&&xd(r,o.deps)){i.memoizedState=hs(t,n,s,r);return}}oe.flags|=e,i.memoizedState=hs(1|t,n,s,r)}function Zh(e,t){return _o(8390656,8,e,t)}function Ed(e,t){return Ha(2048,8,e,t)}function xg(e,t){return Ha(4,2,e,t)}function Sg(e,t){return Ha(4,4,e,t)}function bg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Eg(e,t,n){return n=n!=null?n.concat([e]):null,Ha(4,4,bg.bind(null,t,e),n)}function Cd(){}function Cg(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kg(e,t){var n=yt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Og(e,t,n){return ir&21?(_t(n,t)||(n=j1(),oe.lanes|=n,sr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Xx(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=Hl.transition;Hl.transition={};try{e(!1),t()}finally{Y=n,Hl.transition=r}}function Rg(){return yt().memoizedState}function Gx(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pg(e))jg(t,n);else if(n=sg(e,t,n,r),n!==null){var i=Ie();Tt(n,e,r,i),Ng(n,t,r)}}function Yx(e,t,n){var r=Tn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pg(e))jg(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,_t(a,o)){var l=t.interleaved;l===null?(i.next=i,md(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=sg(e,t,i,r),n!==null&&(i=Ie(),Tt(n,e,r,i),Ng(n,t,r))}}function Pg(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function jg(e,t){Li=ya=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ng(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,td(e,n)}}var wa={readContext:vt,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},Jx={readContext:vt,useCallback:function(e,t){return Ft().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:Zh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_o(4194308,4,bg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _o(4194308,4,e,t)},useInsertionEffect:function(e,t){return _o(4,2,e,t)},useMemo:function(e,t){var n=Ft();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ft();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gx.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=Ft();return e={current:e},t.memoizedState=e},useState:Kh,useDebugValue:Cd,useDeferredValue:function(e){return Ft().memoizedState=e},useTransition:function(){var e=Kh(!1),t=e[0];return e=Xx.bind(null,e[1]),Ft().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,i=Ft();if(re){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ye===null)throw Error(_(349));ir&30||pg(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Zh(gg.bind(null,r,s,e),[e]),r.flags|=2048,hs(9,mg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ft(),t=ye.identifierPrefix;if(re){var n=en,r=Jt;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ds++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Zx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eS={readContext:vt,useCallback:Cg,useContext:vt,useEffect:Ed,useImperativeHandle:Eg,useInsertionEffect:xg,useLayoutEffect:Sg,useMemo:kg,useReducer:ql,useRef:wg,useState:function(){return ql(fs)},useDebugValue:Cd,useDeferredValue:function(e){var t=yt();return Og(t,pe.memoizedState,e)},useTransition:function(){var e=ql(fs)[0],t=yt().memoizedState;return[e,t]},useMutableSource:fg,useSyncExternalStore:hg,useId:Rg,unstable_isNewReconciler:!1},tS={readContext:vt,useCallback:Cg,useContext:vt,useEffect:Ed,useImperativeHandle:Eg,useInsertionEffect:xg,useLayoutEffect:Sg,useMemo:kg,useReducer:Ql,useRef:wg,useState:function(){return Ql(fs)},useDebugValue:Cd,useDeferredValue:function(e){var t=yt();return pe===null?t.memoizedState=e:Og(t,pe.memoizedState,e)},useTransition:function(){var e=Ql(fs)[0],t=yt().memoizedState;return[e,t]},useMutableSource:fg,useSyncExternalStore:hg,useId:Rg,unstable_isNewReconciler:!1};function Hr(e,t){try{var n="",r=t;do n+=jw(r),r=r.return;while(r);var i=n}catch(s){i=`
37
+ `+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Rl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ci(e):""}function jw(e){switch(e.tag){case 5:return Ci(e.type);case 16:return Ci("Lazy");case 13:return Ci("Suspense");case 19:return Ci("SuspenseList");case 0:case 2:case 15:return e=Pl(e.type,!1),e;case 11:return e=Pl(e.type.render,!1),e;case 1:return e=Pl(e.type,!0),e;default:return""}}function Pu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xr:return"Fragment";case wr:return"Portal";case ku:return"Profiler";case Xc:return"StrictMode";case Ou:return"Suspense";case Ru:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case l1:return(e.displayName||"Context")+".Consumer";case a1:return(e._context.displayName||"Context")+".Provider";case Gc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Yc:return t=e.displayName||null,t!==null?t:Pu(e.type)||"Memo";case gn:t=e._payload,e=e._init;try{return Pu(e(t))}catch{}}return null}function Nw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pu(t);case 8:return t===Xc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function c1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tw(e){var t=c1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Js(e){e._valueTracker||(e._valueTracker=Tw(e))}function d1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=c1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ta(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ju(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function f1(e,t){t=t.checked,t!=null&&Zc(e,"checked",t,!1)}function Nu(e,t){f1(e,t);var n=Ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Tu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tu(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Tu(e,t,n){(t!=="number"||ta(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ki=Array.isArray;function _r(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ln(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _u(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(_(91));return ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ph(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(_(92));if(ki(n)){if(1<n.length)throw Error(_(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ln(n)}}function h1(e,t){var n=Ln(t.value),r=Ln(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function mh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function p1(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Iu(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?p1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var eo,m1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function es(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ti={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_w=["Webkit","ms","Moz","O"];Object.keys(Ti).forEach(function(e){_w.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ti[t]=Ti[e]})});function g1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ti.hasOwnProperty(e)&&Ti[e]?(""+t).trim():t+"px"}function v1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=g1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Iw=ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Au(e,t){if(t){if(Iw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Lu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Mu=null;function Jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Du=null,Ir=null,Ar=null;function gh(e){if(e=As(e)){if(typeof Du!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Ba(t),Du(e.stateNode,e.type,t))}}function y1(e){Ir?Ar?Ar.push(e):Ar=[e]:Ir=e}function w1(){if(Ir){var e=Ir,t=Ar;if(Ar=Ir=null,gh(e),t)for(e=0;e<t.length;e++)gh(t[e])}}function x1(e,t){return e(t)}function S1(){}var jl=!1;function b1(e,t,n){if(jl)return e(t,n);jl=!0;try{return x1(e,t,n)}finally{jl=!1,(Ir!==null||Ar!==null)&&(S1(),w1())}}function ts(e,t){var n=e.stateNode;if(n===null)return null;var r=Ba(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(_(231,t,typeof n));return n}var Fu=!1;if(sn)try{var ci={};Object.defineProperty(ci,"passive",{get:function(){Fu=!0}}),window.addEventListener("test",ci,ci),window.removeEventListener("test",ci,ci)}catch{Fu=!1}function Aw(e,t,n,r,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var _i=!1,na=null,ra=!1,$u=null,Lw={onError:function(e){_i=!0,na=e}};function Mw(e,t,n,r,i,s,o,a,l){_i=!1,na=null,Aw.apply(Lw,arguments)}function Dw(e,t,n,r,i,s,o,a,l){if(Mw.apply(this,arguments),_i){if(_i){var u=na;_i=!1,na=null}else throw Error(_(198));ra||(ra=!0,$u=u)}}function dr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function E1(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 vh(e){if(dr(e)!==e)throw Error(_(188))}function Fw(e){var t=e.alternate;if(!t){if(t=dr(e),t===null)throw Error(_(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return vh(i),e;if(s===r)return vh(i),t;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,a=i.child;a;){if(a===n){o=!0,n=i,r=s;break}if(a===r){o=!0,r=i,n=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===n){o=!0,n=s,r=i;break}if(a===r){o=!0,r=s,n=i;break}a=a.sibling}if(!o)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?e:t}function C1(e){return e=Fw(e),e!==null?k1(e):null}function k1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=k1(e);if(t!==null)return t;e=e.sibling}return null}var O1=it.unstable_scheduleCallback,yh=it.unstable_cancelCallback,$w=it.unstable_shouldYield,zw=it.unstable_requestPaint,ce=it.unstable_now,Bw=it.unstable_getCurrentPriorityLevel,ed=it.unstable_ImmediatePriority,R1=it.unstable_UserBlockingPriority,ia=it.unstable_NormalPriority,Uw=it.unstable_LowPriority,P1=it.unstable_IdlePriority,Da=null,Vt=null;function Vw(e){if(Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(Da,e,void 0,(e.current.flags&128)===128)}catch{}}var Nt=Math.clz32?Math.clz32:Qw,Hw=Math.log,qw=Math.LN2;function Qw(e){return e>>>=0,e===0?32:31-(Hw(e)/qw|0)|0}var to=64,no=4194304;function Oi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function sa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=Oi(a):(s&=o,s!==0&&(r=Oi(s)))}else o=n&~i,o!==0?r=Oi(o):s!==0&&(r=Oi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Nt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ww(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Kw(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Nt(s),a=1<<o,l=i[o];l===-1?(!(a&n)||a&r)&&(i[o]=Ww(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function zu(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function j1(){var e=to;return to<<=1,!(to&4194240)&&(to=64),e}function Nl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _s(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nt(t),e[t]=n}function Zw(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Nt(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function td(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Y=0;function N1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var T1,nd,_1,I1,A1,Bu=!1,ro=[],On=null,Rn=null,Pn=null,ns=new Map,rs=new Map,yn=[],Xw="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 submit".split(" ");function wh(e,t){switch(e){case"focusin":case"focusout":On=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":ns.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rs.delete(t.pointerId)}}function di(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=As(t),t!==null&&nd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Gw(e,t,n,r,i){switch(t){case"focusin":return On=di(On,e,t,n,r,i),!0;case"dragenter":return Rn=di(Rn,e,t,n,r,i),!0;case"mouseover":return Pn=di(Pn,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return ns.set(s,di(ns.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,rs.set(s,di(rs.get(s)||null,e,t,n,r,i)),!0}return!1}function L1(e){var t=Xn(e.target);if(t!==null){var n=dr(t);if(n!==null){if(t=n.tag,t===13){if(t=E1(n),t!==null){e.blockedOn=t,A1(e.priority,function(){_1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ro(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mu=r,n.target.dispatchEvent(r),Mu=null}else return t=As(n),t!==null&&nd(t),e.blockedOn=n,!1;t.shift()}return!0}function xh(e,t,n){Ro(e)&&n.delete(t)}function Yw(){Bu=!1,On!==null&&Ro(On)&&(On=null),Rn!==null&&Ro(Rn)&&(Rn=null),Pn!==null&&Ro(Pn)&&(Pn=null),ns.forEach(xh),rs.forEach(xh)}function fi(e,t){e.blockedOn===t&&(e.blockedOn=null,Bu||(Bu=!0,it.unstable_scheduleCallback(it.unstable_NormalPriority,Yw)))}function is(e){function t(i){return fi(i,e)}if(0<ro.length){fi(ro[0],e);for(var n=1;n<ro.length;n++){var r=ro[n];r.blockedOn===e&&(r.blockedOn=null)}}for(On!==null&&fi(On,e),Rn!==null&&fi(Rn,e),Pn!==null&&fi(Pn,e),ns.forEach(t),rs.forEach(t),n=0;n<yn.length;n++)r=yn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<yn.length&&(n=yn[0],n.blockedOn===null);)L1(n),n.blockedOn===null&&yn.shift()}var Lr=dn.ReactCurrentBatchConfig,oa=!0;function Jw(e,t,n,r){var i=Y,s=Lr.transition;Lr.transition=null;try{Y=1,rd(e,t,n,r)}finally{Y=i,Lr.transition=s}}function ex(e,t,n,r){var i=Y,s=Lr.transition;Lr.transition=null;try{Y=4,rd(e,t,n,r)}finally{Y=i,Lr.transition=s}}function rd(e,t,n,r){if(oa){var i=Uu(e,t,n,r);if(i===null)zl(e,t,r,aa,n),wh(e,r);else if(Gw(i,e,t,n,r))r.stopPropagation();else if(wh(e,r),t&4&&-1<Xw.indexOf(e)){for(;i!==null;){var s=As(i);if(s!==null&&T1(s),s=Uu(e,t,n,r),s===null&&zl(e,t,r,aa,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else zl(e,t,r,null,n)}}var aa=null;function Uu(e,t,n,r){if(aa=null,e=Jc(r),e=Xn(e),e!==null)if(t=dr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=E1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return aa=e,null}function M1(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bw()){case ed:return 1;case R1:return 4;case ia:case Uw:return 16;case P1:return 536870912;default:return 16}default:return 16}}var Sn=null,id=null,Po=null;function D1(){if(Po)return Po;var e,t=id,n=t.length,r,i="value"in Sn?Sn.value:Sn.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return Po=i.slice(e,1<r?1-r:void 0)}function jo(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 io(){return!0}function Sh(){return!1}function at(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?io:Sh,this.isPropagationStopped=Sh,this}return ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=io)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=io)},persist:function(){},isPersistent:io}),t}var ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sd=at(ti),Is=ae({},ti,{view:0,detail:0}),tx=at(Is),Tl,_l,hi,Fa=ae({},Is,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:od,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!==hi&&(hi&&e.type==="mousemove"?(Tl=e.screenX-hi.screenX,_l=e.screenY-hi.screenY):_l=Tl=0,hi=e),Tl)},movementY:function(e){return"movementY"in e?e.movementY:_l}}),bh=at(Fa),nx=ae({},Fa,{dataTransfer:0}),rx=at(nx),ix=ae({},Is,{relatedTarget:0}),Il=at(ix),sx=ae({},ti,{animationName:0,elapsedTime:0,pseudoElement:0}),ox=at(sx),ax=ae({},ti,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lx=at(ax),ux=ae({},ti,{data:0}),Eh=at(ux),cx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dx={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"},fx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=fx[e])?!!t[e]:!1}function od(){return hx}var px=ae({},Is,{key:function(e){if(e.key){var t=cx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:od,charCode:function(e){return e.type==="keypress"?jo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mx=at(px),gx=ae({},Fa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ch=at(gx),vx=ae({},Is,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:od}),yx=at(vx),wx=ae({},ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),xx=at(wx),Sx=ae({},Fa,{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}),bx=at(Sx),Ex=[9,13,27,32],ad=sn&&"CompositionEvent"in window,Ii=null;sn&&"documentMode"in document&&(Ii=document.documentMode);var Cx=sn&&"TextEvent"in window&&!Ii,F1=sn&&(!ad||Ii&&8<Ii&&11>=Ii),kh=String.fromCharCode(32),Oh=!1;function $1(e,t){switch(e){case"keyup":return Ex.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function z1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sr=!1;function kx(e,t){switch(e){case"compositionend":return z1(t);case"keypress":return t.which!==32?null:(Oh=!0,kh);case"textInput":return e=t.data,e===kh&&Oh?null:e;default:return null}}function Ox(e,t){if(Sr)return e==="compositionend"||!ad&&$1(e,t)?(e=D1(),Po=id=Sn=null,Sr=!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 F1&&t.locale!=="ko"?null:t.data;default:return null}}var Rx={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 Rh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Rx[e.type]:t==="textarea"}function B1(e,t,n,r){y1(r),t=la(t,"onChange"),0<t.length&&(n=new sd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ai=null,ss=null;function Px(e){Y1(e,0)}function $a(e){var t=Cr(e);if(d1(t))return e}function jx(e,t){if(e==="change")return t}var U1=!1;if(sn){var Al;if(sn){var Ll="oninput"in document;if(!Ll){var Ph=document.createElement("div");Ph.setAttribute("oninput","return;"),Ll=typeof Ph.oninput=="function"}Al=Ll}else Al=!1;U1=Al&&(!document.documentMode||9<document.documentMode)}function jh(){Ai&&(Ai.detachEvent("onpropertychange",V1),ss=Ai=null)}function V1(e){if(e.propertyName==="value"&&$a(ss)){var t=[];B1(t,ss,e,Jc(e)),b1(Px,t)}}function Nx(e,t,n){e==="focusin"?(jh(),Ai=t,ss=n,Ai.attachEvent("onpropertychange",V1)):e==="focusout"&&jh()}function Tx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return $a(ss)}function _x(e,t){if(e==="click")return $a(t)}function Ix(e,t){if(e==="input"||e==="change")return $a(t)}function Ax(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Ax;function os(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Cu.call(t,i)||!_t(e[i],t[i]))return!1}return!0}function Nh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Th(e,t){var n=Nh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nh(n)}}function H1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?H1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q1(){for(var e=window,t=ta();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ta(e.document)}return t}function ld(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Lx(e){var t=q1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&H1(n.ownerDocument.documentElement,n)){if(r!==null&&ld(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Th(n,s);var o=Th(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Mx=sn&&"documentMode"in document&&11>=document.documentMode,br=null,Vu=null,Li=null,Hu=!1;function _h(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hu||br==null||br!==ta(r)||(r=br,"selectionStart"in r&&ld(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Li&&os(Li,r)||(Li=r,r=la(Vu,"onSelect"),0<r.length&&(t=new sd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}function so(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Er={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionend:so("Transition","TransitionEnd")},Ml={},Q1={};sn&&(Q1=document.createElement("div").style,"AnimationEvent"in window||(delete Er.animationend.animation,delete Er.animationiteration.animation,delete Er.animationstart.animation),"TransitionEvent"in window||delete Er.transitionend.transition);function za(e){if(Ml[e])return Ml[e];if(!Er[e])return e;var t=Er[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Q1)return Ml[e]=t[n];return e}var W1=za("animationend"),K1=za("animationiteration"),Z1=za("animationstart"),X1=za("transitionend"),G1=new Map,Ih="abort auxClick 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(" ");function Dn(e,t){G1.set(e,t),cr(t,[e])}for(var Dl=0;Dl<Ih.length;Dl++){var Fl=Ih[Dl],Dx=Fl.toLowerCase(),Fx=Fl[0].toUpperCase()+Fl.slice(1);Dn(Dx,"on"+Fx)}Dn(W1,"onAnimationEnd");Dn(K1,"onAnimationIteration");Dn(Z1,"onAnimationStart");Dn("dblclick","onDoubleClick");Dn("focusin","onFocus");Dn("focusout","onBlur");Dn(X1,"onTransitionEnd");zr("onMouseEnter",["mouseout","mouseover"]);zr("onMouseLeave",["mouseout","mouseover"]);zr("onPointerEnter",["pointerout","pointerover"]);zr("onPointerLeave",["pointerout","pointerover"]);cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));cr("onBeforeInput",["compositionend","keypress","textInput","paste"]);cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="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(" "),$x=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ri));function Ah(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Dw(r,t,void 0,e),e.currentTarget=null}function Y1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;Ah(i,a,u),s=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;Ah(i,a,u),s=l}}}if(ra)throw e=$u,ra=!1,$u=null,e}function te(e,t){var n=t[Zu];n===void 0&&(n=t[Zu]=new Set);var r=e+"__bubble";n.has(r)||(J1(t,e,2,!1),n.add(r))}function $l(e,t,n){var r=0;t&&(r|=4),J1(n,e,r,t)}var oo="_reactListening"+Math.random().toString(36).slice(2);function as(e){if(!e[oo]){e[oo]=!0,o1.forEach(function(n){n!=="selectionchange"&&($x.has(n)||$l(n,!1,e),$l(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[oo]||(t[oo]=!0,$l("selectionchange",!1,t))}}function J1(e,t,n,r){switch(M1(t)){case 1:var i=Jw;break;case 4:i=ex;break;default:i=rd}n=i.bind(null,t,n,e),i=void 0,!Fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function zl(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=Xn(a),o===null)return;if(l=o.tag,l===5||l===6){r=s=o;continue e}a=a.parentNode}}r=r.return}b1(function(){var u=s,c=Jc(n),d=[];e:{var h=G1.get(e);if(h!==void 0){var g=sd,p=e;switch(e){case"keypress":if(jo(n)===0)break e;case"keydown":case"keyup":g=mx;break;case"focusin":p="focus",g=Il;break;case"focusout":p="blur",g=Il;break;case"beforeblur":case"afterblur":g=Il;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=bh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=rx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=yx;break;case W1:case K1:case Z1:g=ox;break;case X1:g=xx;break;case"scroll":g=tx;break;case"wheel":g=bx;break;case"copy":case"cut":case"paste":g=lx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ch}var y=(t&4)!==0,x=!y&&e==="scroll",m=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,w;v!==null;){w=v;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,m!==null&&(S=ts(v,m),S!=null&&y.push(ls(v,S,w)))),x)break;v=v.return}0<y.length&&(h=new g(h,p,null,n,c),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",h&&n!==Mu&&(p=n.relatedTarget||n.fromElement)&&(Xn(p)||p[on]))break e;if((g||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,g?(p=n.relatedTarget||n.toElement,g=u,p=p?Xn(p):null,p!==null&&(x=dr(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(g=null,p=u),g!==p)){if(y=bh,S="onMouseLeave",m="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=Ch,S="onPointerLeave",m="onPointerEnter",v="pointer"),x=g==null?h:Cr(g),w=p==null?h:Cr(p),h=new y(S,v+"leave",g,n,c),h.target=x,h.relatedTarget=w,S=null,Xn(c)===u&&(y=new y(m,v+"enter",p,n,c),y.target=w,y.relatedTarget=x,S=y),x=S,g&&p)t:{for(y=g,m=p,v=0,w=y;w;w=gr(w))v++;for(w=0,S=m;S;S=gr(S))w++;for(;0<v-w;)y=gr(y),v--;for(;0<w-v;)m=gr(m),w--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break t;y=gr(y),m=gr(m)}y=null}else y=null;g!==null&&Lh(d,h,g,y,!1),p!==null&&x!==null&&Lh(d,x,p,y,!0)}}e:{if(h=u?Cr(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var C=jx;else if(Rh(h))if(U1)C=Ix;else{C=Tx;var k=Nx}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(C=_x);if(C&&(C=C(e,u))){B1(d,C,n,c);break e}k&&k(e,h,u),e==="focusout"&&(k=h._wrapperState)&&k.controlled&&h.type==="number"&&Tu(h,"number",h.value)}switch(k=u?Cr(u):window,e){case"focusin":(Rh(k)||k.contentEditable==="true")&&(br=k,Vu=u,Li=null);break;case"focusout":Li=Vu=br=null;break;case"mousedown":Hu=!0;break;case"contextmenu":case"mouseup":case"dragend":Hu=!1,_h(d,n,c);break;case"selectionchange":if(Mx)break;case"keydown":case"keyup":_h(d,n,c)}var O;if(ad)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Sr?$1(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(F1&&n.locale!=="ko"&&(Sr||R!=="onCompositionStart"?R==="onCompositionEnd"&&Sr&&(O=D1()):(Sn=c,id="value"in Sn?Sn.value:Sn.textContent,Sr=!0)),k=la(u,R),0<k.length&&(R=new Eh(R,e,null,n,c),d.push({event:R,listeners:k}),O?R.data=O:(O=z1(n),O!==null&&(R.data=O)))),(O=Cx?kx(e,n):Ox(e,n))&&(u=la(u,"onBeforeInput"),0<u.length&&(c=new Eh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=O))}Y1(d,t)})}function ls(e,t,n){return{instance:e,listener:t,currentTarget:n}}function la(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ts(e,n),s!=null&&r.unshift(ls(e,s,i)),s=ts(e,t),s!=null&&r.push(ls(e,s,i))),e=e.return}return r}function gr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Lh(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=ts(n,s),l!=null&&o.unshift(ls(n,l,a))):i||(l=ts(n,s),l!=null&&o.push(ls(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var zx=/\r\n?/g,Bx=/\u0000|\uFFFD/g;function Mh(e){return(typeof e=="string"?e:""+e).replace(zx,`
38
+ `).replace(Bx,"")}function ao(e,t,n){if(t=Mh(t),Mh(e)!==t&&n)throw Error(_(425))}function ua(){}var qu=null,Qu=null;function Wu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ku=typeof setTimeout=="function"?setTimeout:void 0,Ux=typeof clearTimeout=="function"?clearTimeout:void 0,Dh=typeof Promise=="function"?Promise:void 0,Vx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dh<"u"?function(e){return Dh.resolve(null).then(e).catch(Hx)}:Ku;function Hx(e){setTimeout(function(){throw e})}function Bl(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),is(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);is(t)}function jn(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==="$?")break;if(t==="/$")return null}}return e}function Fh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ni=Math.random().toString(36).slice(2),Bt="__reactFiber$"+ni,us="__reactProps$"+ni,on="__reactContainer$"+ni,Zu="__reactEvents$"+ni,qx="__reactListeners$"+ni,Qx="__reactHandles$"+ni;function Xn(e){var t=e[Bt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[on]||n[Bt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fh(e);e!==null;){if(n=e[Bt])return n;e=Fh(e)}return t}e=n,n=e.parentNode}return null}function As(e){return e=e[Bt]||e[on],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Cr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(_(33))}function Ba(e){return e[us]||null}var Xu=[],kr=-1;function Fn(e){return{current:e}}function ne(e){0>kr||(e.current=Xu[kr],Xu[kr]=null,kr--)}function ee(e,t){kr++,Xu[kr]=e.current,e.current=t}var Mn={},Pe=Fn(Mn),Qe=Fn(!1),rr=Mn;function Br(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function We(e){return e=e.childContextTypes,e!=null}function ca(){ne(Qe),ne(Pe)}function $h(e,t,n){if(Pe.current!==Mn)throw Error(_(168));ee(Pe,t),ee(Qe,n)}function eg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,Nw(e)||"Unknown",i));return ae({},n,r)}function da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,rr=Pe.current,ee(Pe,e),ee(Qe,Qe.current),!0}function zh(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=eg(e,t,rr),r.__reactInternalMemoizedMergedChildContext=e,ne(Qe),ne(Pe),ee(Pe,e)):ne(Qe),ee(Qe,n)}var Jt=null,Ua=!1,Ul=!1;function tg(e){Jt===null?Jt=[e]:Jt.push(e)}function Wx(e){Ua=!0,tg(e)}function $n(){if(!Ul&&Jt!==null){Ul=!0;var e=0,t=Y;try{var n=Jt;for(Y=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Jt=null,Ua=!1}catch(i){throw Jt!==null&&(Jt=Jt.slice(e+1)),O1(ed,$n),i}finally{Y=t,Ul=!1}}return null}var Or=[],Rr=0,fa=null,ha=0,dt=[],ft=0,ir=null,en=1,tn="";function Qn(e,t){Or[Rr++]=ha,Or[Rr++]=fa,fa=e,ha=t}function ng(e,t,n){dt[ft++]=en,dt[ft++]=tn,dt[ft++]=ir,ir=e;var r=en;e=tn;var i=32-Nt(r)-1;r&=~(1<<i),n+=1;var s=32-Nt(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,en=1<<32-Nt(t)+i|n<<i|r,tn=s+e}else en=1<<s|n<<i|r,tn=e}function ud(e){e.return!==null&&(Qn(e,1),ng(e,1,0))}function cd(e){for(;e===fa;)fa=Or[--Rr],Or[Rr]=null,ha=Or[--Rr],Or[Rr]=null;for(;e===ir;)ir=dt[--ft],dt[ft]=null,tn=dt[--ft],dt[ft]=null,en=dt[--ft],dt[ft]=null}var rt=null,tt=null,re=!1,Rt=null;function rg(e,t){var n=mt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Bh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,rt=e,tt=jn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,rt=e,tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ir!==null?{id:en,overflow:tn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,rt=e,tt=null,!0):!1;default:return!1}}function Gu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yu(e){if(re){var t=tt;if(t){var n=t;if(!Bh(e,t)){if(Gu(e))throw Error(_(418));t=jn(n.nextSibling);var r=rt;t&&Bh(e,t)?rg(r,n):(e.flags=e.flags&-4097|2,re=!1,rt=e)}}else{if(Gu(e))throw Error(_(418));e.flags=e.flags&-4097|2,re=!1,rt=e}}}function Uh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;rt=e}function lo(e){if(e!==rt)return!1;if(!re)return Uh(e),re=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Wu(e.type,e.memoizedProps)),t&&(t=tt)){if(Gu(e))throw ig(),Error(_(418));for(;t;)rg(e,t),t=jn(t.nextSibling)}if(Uh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(_(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){tt=jn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}tt=null}}else tt=rt?jn(e.stateNode.nextSibling):null;return!0}function ig(){for(var e=tt;e;)e=jn(e.nextSibling)}function Ur(){tt=rt=null,re=!1}function dd(e){Rt===null?Rt=[e]:Rt.push(e)}var Kx=dn.ReactCurrentBatchConfig;function kt(e,t){if(e&&e.defaultProps){t=ae({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var pa=Fn(null),ma=null,Pr=null,fd=null;function hd(){fd=Pr=ma=null}function pd(e){var t=pa.current;ne(pa),e._currentValue=t}function Ju(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mr(e,t){ma=e,fd=Pr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(qe=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(fd!==e)if(e={context:e,memoizedValue:t,next:null},Pr===null){if(ma===null)throw Error(_(308));Pr=e,ma.dependencies={lanes:0,firstContext:e}}else Pr=Pr.next=e;return t}var Gn=null;function md(e){Gn===null?Gn=[e]:Gn.push(e)}function sg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,md(t)):(n.next=i.next,i.next=n),t.interleaved=n,an(e,r)}function an(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vn=!1;function gd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function og(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,X&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,an(e,n)}return i=r.interleaved,i===null?(t.next=t,md(r)):(t.next=i.next,i.next=t),r.interleaved=t,an(e,n)}function No(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,td(e,n)}}function Vh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ga(e,t,n,r){var i=e.updateQueue;vn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var h=a.lane,g=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:g,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,y=a;switch(h=t,g=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){d=p.call(g,d,h);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=y.payload,h=typeof p=="function"?p.call(g,d,h):p,h==null)break e;d=ae({},d,h);break e;case 2:vn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else g={eventTime:g,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=g,l=d):c=c.next=g,o|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);or|=o,e.lanes=o,e.memoizedState=d}}function Hh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var ag=new s1.Component().refs;function ec(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Va={isMounted:function(e){return(e=e._reactInternals)?dr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ie(),i=_n(e),s=rn(r,i);s.payload=t,n!=null&&(s.callback=n),t=Nn(e,s,i),t!==null&&(Tt(t,e,i,r),No(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ie(),i=_n(e),s=rn(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Nn(e,s,i),t!==null&&(Tt(t,e,i,r),No(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ie(),r=_n(e),i=rn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Nn(e,i,r),t!==null&&(Tt(t,e,r,n),No(t,e,r))}};function qh(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!os(n,r)||!os(i,s):!0}function lg(e,t,n){var r=!1,i=Mn,s=t.contextType;return typeof s=="object"&&s!==null?s=yt(s):(i=We(t)?rr:Pe.current,r=t.contextTypes,s=(r=r!=null)?Br(e,i):Mn),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Va,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Qh(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Va.enqueueReplaceState(t,t.state,null)}function tc(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ag,gd(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=yt(s):(s=We(t)?rr:Pe.current,i.context=Br(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ec(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Va.enqueueReplaceState(i,i.state,null),ga(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function pi(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;a===ag&&(a=i.refs={}),o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,e))}return e}function uo(e,t){throw e=Object.prototype.toString.call(t),Error(_(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wh(e){var t=e._init;return t(e._payload)}function ug(e){function t(m,v){if(e){var w=m.deletions;w===null?(m.deletions=[v],m.flags|=16):w.push(v)}}function n(m,v){if(!e)return null;for(;v!==null;)t(m,v),v=v.sibling;return null}function r(m,v){for(m=new Map;v!==null;)v.key!==null?m.set(v.key,v):m.set(v.index,v),v=v.sibling;return m}function i(m,v){return m=In(m,v),m.index=0,m.sibling=null,m}function s(m,v,w){return m.index=w,e?(w=m.alternate,w!==null?(w=w.index,w<v?(m.flags|=2,v):w):(m.flags|=2,v)):(m.flags|=1048576,v)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,v,w,S){return v===null||v.tag!==6?(v=Zl(w,m.mode,S),v.return=m,v):(v=i(v,w),v.return=m,v)}function l(m,v,w,S){var C=w.type;return C===xr?c(m,v,w.props.children,S,w.key):v!==null&&(v.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&Wh(C)===v.type)?(S=i(v,w.props),S.ref=pi(m,v,w),S.return=m,S):(S=Mo(w.type,w.key,w.props,null,m.mode,S),S.ref=pi(m,v,w),S.return=m,S)}function u(m,v,w,S){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Xl(w,m.mode,S),v.return=m,v):(v=i(v,w.children||[]),v.return=m,v)}function c(m,v,w,S,C){return v===null||v.tag!==7?(v=tr(w,m.mode,S,C),v.return=m,v):(v=i(v,w),v.return=m,v)}function d(m,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=Zl(""+v,m.mode,w),v.return=m,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Ys:return w=Mo(v.type,v.key,v.props,null,m.mode,w),w.ref=pi(m,null,v),w.return=m,w;case wr:return v=Xl(v,m.mode,w),v.return=m,v;case gn:var S=v._init;return d(m,S(v._payload),w)}if(ki(v)||ui(v))return v=tr(v,m.mode,w,null),v.return=m,v;uo(m,v)}return null}function h(m,v,w,S){var C=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return C!==null?null:a(m,v,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ys:return w.key===C?l(m,v,w,S):null;case wr:return w.key===C?u(m,v,w,S):null;case gn:return C=w._init,h(m,v,C(w._payload),S)}if(ki(w)||ui(w))return C!==null?null:c(m,v,w,S,null);uo(m,w)}return null}function g(m,v,w,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(w)||null,a(v,m,""+S,C);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ys:return m=m.get(S.key===null?w:S.key)||null,l(v,m,S,C);case wr:return m=m.get(S.key===null?w:S.key)||null,u(v,m,S,C);case gn:var k=S._init;return g(m,v,w,k(S._payload),C)}if(ki(S)||ui(S))return m=m.get(w)||null,c(v,m,S,C,null);uo(v,S)}return null}function p(m,v,w,S){for(var C=null,k=null,O=v,R=v=0,I=null;O!==null&&R<w.length;R++){O.index>R?(I=O,O=null):I=O.sibling;var A=h(m,O,w[R],S);if(A===null){O===null&&(O=I);break}e&&O&&A.alternate===null&&t(m,O),v=s(A,v,R),k===null?C=A:k.sibling=A,k=A,O=I}if(R===w.length)return n(m,O),re&&Qn(m,R),C;if(O===null){for(;R<w.length;R++)O=d(m,w[R],S),O!==null&&(v=s(O,v,R),k===null?C=O:k.sibling=O,k=O);return re&&Qn(m,R),C}for(O=r(m,O);R<w.length;R++)I=g(O,m,R,w[R],S),I!==null&&(e&&I.alternate!==null&&O.delete(I.key===null?R:I.key),v=s(I,v,R),k===null?C=I:k.sibling=I,k=I);return e&&O.forEach(function(M){return t(m,M)}),re&&Qn(m,R),C}function y(m,v,w,S){var C=ui(w);if(typeof C!="function")throw Error(_(150));if(w=C.call(w),w==null)throw Error(_(151));for(var k=C=null,O=v,R=v=0,I=null,A=w.next();O!==null&&!A.done;R++,A=w.next()){O.index>R?(I=O,O=null):I=O.sibling;var M=h(m,O,A.value,S);if(M===null){O===null&&(O=I);break}e&&O&&M.alternate===null&&t(m,O),v=s(M,v,R),k===null?C=M:k.sibling=M,k=M,O=I}if(A.done)return n(m,O),re&&Qn(m,R),C;if(O===null){for(;!A.done;R++,A=w.next())A=d(m,A.value,S),A!==null&&(v=s(A,v,R),k===null?C=A:k.sibling=A,k=A);return re&&Qn(m,R),C}for(O=r(m,O);!A.done;R++,A=w.next())A=g(O,m,R,A.value,S),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?R:A.key),v=s(A,v,R),k===null?C=A:k.sibling=A,k=A);return e&&O.forEach(function(z){return t(m,z)}),re&&Qn(m,R),C}function x(m,v,w,S){if(typeof w=="object"&&w!==null&&w.type===xr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Ys:e:{for(var C=w.key,k=v;k!==null;){if(k.key===C){if(C=w.type,C===xr){if(k.tag===7){n(m,k.sibling),v=i(k,w.props.children),v.return=m,m=v;break e}}else if(k.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===gn&&Wh(C)===k.type){n(m,k.sibling),v=i(k,w.props),v.ref=pi(m,k,w),v.return=m,m=v;break e}n(m,k);break}else t(m,k);k=k.sibling}w.type===xr?(v=tr(w.props.children,m.mode,S,w.key),v.return=m,m=v):(S=Mo(w.type,w.key,w.props,null,m.mode,S),S.ref=pi(m,v,w),S.return=m,m=S)}return o(m);case wr:e:{for(k=w.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(m,v.sibling),v=i(v,w.children||[]),v.return=m,m=v;break e}else{n(m,v);break}else t(m,v);v=v.sibling}v=Xl(w,m.mode,S),v.return=m,m=v}return o(m);case gn:return k=w._init,x(m,v,k(w._payload),S)}if(ki(w))return p(m,v,w,S);if(ui(w))return y(m,v,w,S);uo(m,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(m,v.sibling),v=i(v,w),v.return=m,m=v):(n(m,v),v=Zl(w,m.mode,S),v.return=m,m=v),o(m)):n(m,v)}return x}var Vr=ug(!0),cg=ug(!1),Ls={},Ht=Fn(Ls),cs=Fn(Ls),ds=Fn(Ls);function Yn(e){if(e===Ls)throw Error(_(174));return e}function vd(e,t){switch(ee(ds,t),ee(cs,e),ee(Ht,Ls),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Iu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Iu(t,e)}ne(Ht),ee(Ht,t)}function Hr(){ne(Ht),ne(cs),ne(ds)}function dg(e){Yn(ds.current);var t=Yn(Ht.current),n=Iu(t,e.type);t!==n&&(ee(cs,e),ee(Ht,n))}function yd(e){cs.current===e&&(ne(Ht),ne(cs))}var se=Fn(0);function va(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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}var Vl=[];function wd(){for(var e=0;e<Vl.length;e++)Vl[e]._workInProgressVersionPrimary=null;Vl.length=0}var To=dn.ReactCurrentDispatcher,Hl=dn.ReactCurrentBatchConfig,sr=0,oe=null,pe=null,ve=null,ya=!1,Mi=!1,fs=0,Zx=0;function ke(){throw Error(_(321))}function xd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!_t(e[n],t[n]))return!1;return!0}function Sd(e,t,n,r,i,s){if(sr=s,oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,To.current=e===null||e.memoizedState===null?Jx:eS,e=n(r,i),Mi){s=0;do{if(Mi=!1,fs=0,25<=s)throw Error(_(301));s+=1,ve=pe=null,t.updateQueue=null,To.current=tS,e=n(r,i)}while(Mi)}if(To.current=wa,t=pe!==null&&pe.next!==null,sr=0,ve=pe=oe=null,ya=!1,t)throw Error(_(300));return e}function bd(){var e=fs!==0;return fs=0,e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?oe.memoizedState=ve=e:ve=ve.next=e,ve}function wt(){if(pe===null){var e=oe.alternate;e=e!==null?e.memoizedState:null}else e=pe.next;var t=ve===null?oe.memoizedState:ve.next;if(t!==null)ve=t,pe=e;else{if(e===null)throw Error(_(310));pe=e,e={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ve===null?oe.memoizedState=ve=e:ve=ve.next=e}return ve}function hs(e,t){return typeof t=="function"?t(e):t}function ql(e){var t=wt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=pe,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((sr&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=d,o=r):l=l.next=d,oe.lanes|=c,or|=c}u=u.next}while(u!==null&&u!==s);l===null?o=r:l.next=a,_t(r,t.memoizedState)||(qe=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,oe.lanes|=s,or|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ql(e){var t=wt(),n=t.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);_t(s,t.memoizedState)||(qe=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function fg(){}function hg(e,t){var n=oe,r=wt(),i=t(),s=!_t(r.memoizedState,i);if(s&&(r.memoizedState=i,qe=!0),r=r.queue,Ed(gg.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||ve!==null&&ve.memoizedState.tag&1){if(n.flags|=2048,ps(9,mg.bind(null,n,r,i,t),void 0,null),ye===null)throw Error(_(349));sr&30||pg(n,t,i)}return i}function pg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function mg(e,t,n,r){t.value=n,t.getSnapshot=r,vg(t)&&yg(e)}function gg(e,t,n){return n(function(){vg(t)&&yg(e)})}function vg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_t(e,n)}catch{return!0}}function yg(e){var t=an(e,1);t!==null&&Tt(t,e,1,-1)}function Kh(e){var t=$t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t.queue=e,e=e.dispatch=Yx.bind(null,oe,e),[t.memoizedState,e]}function ps(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=oe.updateQueue,t===null?(t={lastEffect:null,stores:null},oe.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function wg(){return wt().memoizedState}function _o(e,t,n,r){var i=$t();oe.flags|=e,i.memoizedState=ps(1|t,n,void 0,r===void 0?null:r)}function Ha(e,t,n,r){var i=wt();r=r===void 0?null:r;var s=void 0;if(pe!==null){var o=pe.memoizedState;if(s=o.destroy,r!==null&&xd(r,o.deps)){i.memoizedState=ps(t,n,s,r);return}}oe.flags|=e,i.memoizedState=ps(1|t,n,s,r)}function Zh(e,t){return _o(8390656,8,e,t)}function Ed(e,t){return Ha(2048,8,e,t)}function xg(e,t){return Ha(4,2,e,t)}function Sg(e,t){return Ha(4,4,e,t)}function bg(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Eg(e,t,n){return n=n!=null?n.concat([e]):null,Ha(4,4,bg.bind(null,t,e),n)}function Cd(){}function Cg(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function kg(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&xd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Og(e,t,n){return sr&21?(_t(n,t)||(n=j1(),oe.lanes|=n,or|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,qe=!0),e.memoizedState=n)}function Xx(e,t){var n=Y;Y=n!==0&&4>n?n:4,e(!0);var r=Hl.transition;Hl.transition={};try{e(!1),t()}finally{Y=n,Hl.transition=r}}function Rg(){return wt().memoizedState}function Gx(e,t,n){var r=_n(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pg(e))jg(t,n);else if(n=sg(e,t,n,r),n!==null){var i=Ie();Tt(n,e,r,i),Ng(n,t,r)}}function Yx(e,t,n){var r=_n(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pg(e))jg(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,_t(a,o)){var l=t.interleaved;l===null?(i.next=i,md(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=sg(e,t,i,r),n!==null&&(i=Ie(),Tt(n,e,r,i),Ng(n,t,r))}}function Pg(e){var t=e.alternate;return e===oe||t!==null&&t===oe}function jg(e,t){Mi=ya=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ng(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,td(e,n)}}var wa={readContext:yt,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useInsertionEffect:ke,useLayoutEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useMutableSource:ke,useSyncExternalStore:ke,useId:ke,unstable_isNewReconciler:!1},Jx={readContext:yt,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Zh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_o(4194308,4,bg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _o(4194308,4,e,t)},useInsertionEffect:function(e,t){return _o(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gx.bind(null,oe,e),[r.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:Kh,useDebugValue:Cd,useDeferredValue:function(e){return $t().memoizedState=e},useTransition:function(){var e=Kh(!1),t=e[0];return e=Xx.bind(null,e[1]),$t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=oe,i=$t();if(re){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),ye===null)throw Error(_(349));sr&30||pg(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Zh(gg.bind(null,r,s,e),[e]),r.flags|=2048,ps(9,mg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=$t(),t=ye.identifierPrefix;if(re){var n=tn,r=en;n=(r&~(1<<32-Nt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Zx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},eS={readContext:yt,useCallback:Cg,useContext:yt,useEffect:Ed,useImperativeHandle:Eg,useInsertionEffect:xg,useLayoutEffect:Sg,useMemo:kg,useReducer:ql,useRef:wg,useState:function(){return ql(hs)},useDebugValue:Cd,useDeferredValue:function(e){var t=wt();return Og(t,pe.memoizedState,e)},useTransition:function(){var e=ql(hs)[0],t=wt().memoizedState;return[e,t]},useMutableSource:fg,useSyncExternalStore:hg,useId:Rg,unstable_isNewReconciler:!1},tS={readContext:yt,useCallback:Cg,useContext:yt,useEffect:Ed,useImperativeHandle:Eg,useInsertionEffect:xg,useLayoutEffect:Sg,useMemo:kg,useReducer:Ql,useRef:wg,useState:function(){return Ql(hs)},useDebugValue:Cd,useDeferredValue:function(e){var t=wt();return pe===null?t.memoizedState=e:Og(t,pe.memoizedState,e)},useTransition:function(){var e=Ql(hs)[0],t=wt().memoizedState;return[e,t]},useMutableSource:fg,useSyncExternalStore:hg,useId:Rg,unstable_isNewReconciler:!1};function qr(e,t){try{var n="",r=t;do n+=jw(r),r=r.return;while(r);var i=n}catch(s){i=`
39
39
  Error generating stack: `+s.message+`
40
- `+s.stack}return{value:e,source:t,stack:i,digest:null}}function Wl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nc(e,t){try{}catch(n){setTimeout(function(){throw n})}}var nS=typeof WeakMap=="function"?WeakMap:Map;function Tg(e,t,n){n=nn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sa||(Sa=!0,fc=r),nc(e,t)},n}function _g(e,t,n){n=nn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){nc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){nc(e,t),typeof r!="function"&&(Nn===null?Nn=new Set([this]):Nn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nS;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=gS.bind(null,e,t,n),t.then(e,e))}function Gh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Yh(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=nn(-1,1),t.tag=2,jn(n,t,1))),n.lanes|=1),e)}var rS=cn.ReactCurrentOwner,qe=!1;function Te(e,t,n,r){t.child=e===null?cg(t,null,n,r):Ur(t,e.child,n,r)}function Jh(e,t,n,r,i){n=n.render;var s=t.ref;return Lr(t,i),r=Sd(e,t,n,r,s,i),n=bd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,an(e,t,i)):(re&&n&&ud(t),t.flags|=1,Te(e,t,r,i),t.child)}function ep(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!_d(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Ig(e,t,s,r,i)):(e=Mo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ss,n(o,r)&&e.ref===t.ref)return an(e,t,i)}return t.flags|=1,e=_n(s,r),e.ref=t.ref,e.return=t,t.child=e}function Ig(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(ss(s,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,an(e,t,i)}return rc(e,t,n,r,i)}function Ag(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ee(jr,Je),Je|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ee(jr,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ee(jr,Je),Je|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ee(jr,Je),Je|=r;return Te(e,t,i,n),t.child}function Lg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rc(e,t,n,r,i){var s=We(n)?nr:Pe.current;return s=zr(t,s),Lr(t,i),n=Sd(e,t,n,r,s,i),r=bd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,an(e,t,i)):(re&&r&&ud(t),t.flags|=1,Te(e,t,n,i),t.child)}function tp(e,t,n,r,i){if(We(n)){var s=!0;da(t)}else s=!1;if(Lr(t,i),t.stateNode===null)Io(e,t),lg(t,n,r),tc(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=vt(u):(u=We(n)?nr:Pe.current,u=zr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Qh(t,o,r,u),gn=!1;var h=t.memoizedState;o.state=h,ga(t,r,o,i),l=t.memoizedState,a!==r||h!==l||Qe.current||gn?(typeof c=="function"&&(ec(t,n,c,r),l=t.memoizedState),(a=gn||qh(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,og(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:kt(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=vt(l):(l=We(n)?nr:Pe.current,l=zr(t,l));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Qh(t,o,r,l),gn=!1,h=t.memoizedState,o.state=h,ga(t,r,o,i);var p=t.memoizedState;a!==d||h!==p||Qe.current||gn?(typeof g=="function"&&(ec(t,n,g,r),p=t.memoizedState),(u=gn||qh(t,n,u,r,h,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ic(e,t,n,r,s,i)}function ic(e,t,n,r,i,s){Lg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&zh(t,n,!1),an(e,t,s);r=t.stateNode,rS.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ur(t,e.child,null,s),t.child=Ur(t,null,a,s)):Te(e,t,a,s),t.memoizedState=r.state,i&&zh(t,n,!0),t.child}function Mg(e){var t=e.stateNode;t.pendingContext?$h(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$h(e,t.context,!1),vd(e,t.containerInfo)}function np(e,t,n,r,i){return Br(),dd(i),t.flags|=256,Te(e,t,n,r),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0};function oc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dg(e,t,n){var r=t.pendingProps,i=se.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ee(se,i&1),e===null)return Yu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Wa(o,r,0,null),e=er(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=oc(n),t.memoizedState=sc,e):kd(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return iS(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=_n(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=_n(a,s):(s=er(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?oc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=sc,r}return s=e.child,e=s.sibling,r=_n(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function kd(e,t){return t=Wa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function uo(e,t,n,r){return r!==null&&dd(r),Ur(t,e.child,null,n),e=kd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iS(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Wl(Error(_(422))),uo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Wa({mode:"visible",children:r.children},i,0,null),s=er(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Ur(t,e.child,null,o),t.child.memoizedState=oc(o),t.memoizedState=sc,s);if(!(t.mode&1))return uo(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(_(419)),r=Wl(s,r,void 0),uo(e,t,o,r)}if(a=(o&e.childLanes)!==0,qe||a){if(r=ye,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,on(e,i),Tt(r,e,i,-1))}return Td(),r=Wl(Error(_(421))),uo(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=vS.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,tt=Pn(i.nextSibling),rt=t,re=!0,Rt=null,e!==null&&(ct[dt++]=Jt,ct[dt++]=en,ct[dt++]=rr,Jt=e.id,en=e.overflow,rr=t),t=kd(t,r.children),t.flags|=4096,t)}function rp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ju(e.return,t,n)}function Kl(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Fg(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Te(e,t,r.children,n),r=se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rp(e,n,t);else if(e.tag===19)rp(e,n,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}r&=1}if(ee(se,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&va(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Kl(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&va(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Kl(t,!0,n,null,s);break;case"together":Kl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Io(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function an(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=_n(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_n(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sS(e,t,n){switch(t.tag){case 3:Mg(t),Br();break;case 5:dg(t);break;case 1:We(t.type)&&da(t);break;case 4:vd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ee(pa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ee(se,se.current&1),t.flags|=128,null):n&t.child.childLanes?Dg(e,t,n):(ee(se,se.current&1),e=an(e,t,n),e!==null?e.sibling:null);ee(se,se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ee(se,se.current),r)break;return null;case 22:case 23:return t.lanes=0,Ag(e,t,n)}return an(e,t,n)}var $g,ac,zg,Bg;$g=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ac=function(){};zg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Gn(Vt.current);var s=null;switch(n){case"input":i=ju(e,i),r=ju(e,r),s=[];break;case"select":i=ae({},i,{value:void 0}),r=ae({},r,{value:void 0}),s=[];break;case"textarea":i=_u(e,i),r=_u(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ua)}Au(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Yi.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Yi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&te("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Bg=function(e,t,n,r){n!==r&&(t.flags|=4)};function pi(e,t){if(!re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oS(e,t,n){var r=t.pendingProps;switch(cd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return We(t.type)&&ca(),Oe(t),null;case 3:return r=t.stateNode,Vr(),ne(Qe),ne(Pe),wd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ao(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(mc(Rt),Rt=null))),ac(e,t),Oe(t),null;case 5:yd(t);var i=Gn(cs.current);if(n=t.type,e!==null&&t.stateNode!=null)zg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return Oe(t),null}if(e=Gn(Vt.current),ao(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[zt]=t,r[ls]=s,e=(t.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(i=0;i<Oi.length;i++)te(Oi[i],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":fh(r,s),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},te("invalid",r);break;case"textarea":ph(r,s),te("invalid",r)}Au(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&oo(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&oo(r.textContent,a,e),i=["children",""+a]):Yi.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&te("scroll",r)}switch(n){case"input":Ys(r),hh(r,s,!0);break;case"textarea":Ys(r),mh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ua)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=p1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[zt]=t,e[ls]=r,$g(e,t,!1,!1),t.stateNode=e;e:{switch(o=Lu(n,r),n){case"dialog":te("cancel",e),te("close",e),i=r;break;case"iframe":case"object":case"embed":te("load",e),i=r;break;case"video":case"audio":for(i=0;i<Oi.length;i++)te(Oi[i],e);i=r;break;case"source":te("error",e),i=r;break;case"img":case"image":case"link":te("error",e),te("load",e),i=r;break;case"details":te("toggle",e),i=r;break;case"input":fh(e,r),i=ju(e,r),te("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ae({},r,{value:void 0}),te("invalid",e);break;case"textarea":ph(e,r),i=_u(e,r),te("invalid",e);break;default:i=r}Au(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?v1(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&m1(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ji(e,l):typeof l=="number"&&Ji(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Yi.hasOwnProperty(s)?l!=null&&s==="onScroll"&&te("scroll",e):l!=null&&Zc(e,s,l,o))}switch(n){case"input":Ys(e),hh(e,r,!1);break;case"textarea":Ys(e),mh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+An(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?Tr(e,!!r.multiple,s,!1):r.defaultValue!=null&&Tr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ua)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Oe(t),null;case 6:if(e&&t.stateNode!=null)Bg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Gn(cs.current),Gn(Vt.current),ao(t)){if(r=t.stateNode,n=t.memoizedProps,r[zt]=t,(s=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:oo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&oo(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[zt]=t,t.stateNode=r}return Oe(t),null;case 13:if(ne(se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(re&&tt!==null&&t.mode&1&&!(t.flags&128))ig(),Br(),t.flags|=98560,s=!1;else if(s=ao(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[zt]=t}else Br(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oe(t),s=!1}else Rt!==null&&(mc(Rt),Rt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||se.current&1?me===0&&(me=3):Td())),t.updateQueue!==null&&(t.flags|=4),Oe(t),null);case 4:return Vr(),ac(e,t),e===null&&os(t.stateNode.containerInfo),Oe(t),null;case 10:return pd(t.type._context),Oe(t),null;case 17:return We(t.type)&&ca(),Oe(t),null;case 19:if(ne(se),s=t.memoizedState,s===null)return Oe(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)pi(s,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=va(e),o!==null){for(t.flags|=128,pi(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ee(se,se.current&1|2),t.child}e=e.sibling}s.tail!==null&&ce()>qr&&(t.flags|=128,r=!0,pi(s,!1),t.lanes=4194304)}else{if(!r)if(e=va(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),pi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!re)return Oe(t),null}else 2*ce()-s.renderingStartTime>qr&&n!==1073741824&&(t.flags|=128,r=!0,pi(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ce(),t.sibling=null,n=se.current,ee(se,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return Nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function aS(e,t){switch(cd(t),t.tag){case 1:return We(t.type)&&ca(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),ne(Qe),ne(Pe),wd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yd(t),null;case 13:if(ne(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Br()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(se),null;case 4:return Vr(),null;case 10:return pd(t.type._context),null;case 22:case 23:return Nd(),null;case 24:return null;default:return null}}var co=!1,Re=!1,lS=typeof WeakSet=="function"?WeakSet:Set,D=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function lc(e,t,n){try{n()}catch(r){le(e,t,r)}}var ip=!1;function uS(e,t){if(qu=oa,e=q1(),ld(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++u===i&&(a=o),h===s&&++c===r&&(l=o),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qu={focusedElem:e,selectionRange:n},oa=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,x=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:kt(t.type,y),x);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(S){le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return p=ip,ip=!1,p}function Mi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&lc(t,n,s)}i=i.next}while(i!==r)}}function qa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ug(e){var t=e.alternate;t!==null&&(e.alternate=null,Ug(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[ls],delete t[Zu],delete t[qx],delete t[Qx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vg(e){return e.tag===5||e.tag===3||e.tag===4}function sp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ua));else if(r!==4&&(e=e.child,e!==null))for(cc(e,t,n),e=e.sibling;e!==null;)cc(e,t,n),e=e.sibling}function dc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}var Se=null,Ot=!1;function fn(e,t,n){for(n=n.child;n!==null;)Hg(e,t,n),n=n.sibling}function Hg(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(Da,n)}catch{}switch(n.tag){case 5:Re||Pr(n,t);case 6:var r=Se,i=Ot;Se=null,fn(e,t,n),Se=r,Ot=i,Se!==null&&(Ot?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(Ot?(e=Se,n=n.stateNode,e.nodeType===8?Bl(e.parentNode,n):e.nodeType===1&&Bl(e,n),rs(e)):Bl(Se,n.stateNode));break;case 4:r=Se,i=Ot,Se=n.stateNode.containerInfo,Ot=!0,fn(e,t,n),Se=r,Ot=i;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&lc(n,t,o),i=i.next}while(i!==r)}fn(e,t,n);break;case 1:if(!Re&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){le(n,t,a)}fn(e,t,n);break;case 21:fn(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,fn(e,t,n),Re=r):fn(e,t,n);break;default:fn(e,t,n)}}function op(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lS),t.forEach(function(r){var i=yS.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Se=a.stateNode,Ot=!1;break e;case 3:Se=a.stateNode.containerInfo,Ot=!0;break e;case 4:Se=a.stateNode.containerInfo,Ot=!0;break e}a=a.return}if(Se===null)throw Error(_(160));Hg(s,o,i),Se=null,Ot=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){le(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qg(t,e),t=t.sibling}function qg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Dt(e),r&4){try{Mi(3,e,e.return),qa(3,e)}catch(y){le(e,e.return,y)}try{Mi(5,e,e.return)}catch(y){le(e,e.return,y)}}break;case 1:Ct(t,e),Dt(e),r&512&&n!==null&&Pr(n,n.return);break;case 5:if(Ct(t,e),Dt(e),r&512&&n!==null&&Pr(n,n.return),e.flags&32){var i=e.stateNode;try{Ji(i,"")}catch(y){le(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&f1(i,s),Lu(a,o);var u=Lu(a,s);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?v1(i,d):c==="dangerouslySetInnerHTML"?m1(i,d):c==="children"?Ji(i,d):Zc(i,c,d,u)}switch(a){case"input":Nu(i,s);break;case"textarea":h1(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?Tr(i,!!s.multiple,g,!1):h!==!!s.multiple&&(s.defaultValue!=null?Tr(i,!!s.multiple,s.defaultValue,!0):Tr(i,!!s.multiple,s.multiple?[]:"",!1))}i[ls]=s}catch(y){le(e,e.return,y)}}break;case 6:if(Ct(t,e),Dt(e),r&4){if(e.stateNode===null)throw Error(_(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){le(e,e.return,y)}}break;case 3:if(Ct(t,e),Dt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rs(t.containerInfo)}catch(y){le(e,e.return,y)}break;case 4:Ct(t,e),Dt(e);break;case 13:Ct(t,e),Dt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Pd=ce())),r&4&&op(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(u=Re)||c,Ct(t,e),Re=u):Ct(t,e),Dt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(D=e,c=e.child;c!==null;){for(d=D=c;D!==null;){switch(h=D,g=h.child,h.tag){case 0:case 11:case 14:case 15:Mi(4,h,h.return);break;case 1:Pr(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(y){le(r,n,y)}}break;case 5:Pr(h,h.return);break;case 22:if(h.memoizedState!==null){lp(d);continue}}g!==null?(g.return=h,D=g):lp(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=g1("display",o))}catch(y){le(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){le(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ct(t,e),Dt(e),r&4&&op(e);break;case 21:break;default:Ct(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vg(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Ji(i,""),r.flags&=-33);var s=sp(e);dc(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=sp(e);cc(e,a,o);break;default:throw Error(_(161))}}catch(l){le(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cS(e,t,n){D=e,Qg(e)}function Qg(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||co;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Re;a=co;var u=Re;if(co=o,(Re=l)&&!u)for(D=i;D!==null;)o=D,l=o.child,o.tag===22&&o.memoizedState!==null?up(i):l!==null?(l.return=o,D=l):up(i);for(;s!==null;)D=s,Qg(s),s=s.sibling;D=i,co=a,Re=u}ap(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,D=s):ap(e)}}function ap(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||qa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:kt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Hh(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Hh(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&rs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Re||t.flags&512&&uc(t)}catch(h){le(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function lp(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function up(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qa(4,t)}catch(l){le(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){le(t,i,l)}}var s=t.return;try{uc(t)}catch(l){le(t,s,l)}break;case 5:var o=t.return;try{uc(t)}catch(l){le(t,o,l)}}}catch(l){le(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var dS=Math.ceil,xa=cn.ReactCurrentDispatcher,Od=cn.ReactCurrentOwner,mt=cn.ReactCurrentBatchConfig,X=0,ye=null,fe=null,be=0,Je=0,jr=Dn(0),me=0,ps=null,sr=0,Qa=0,Rd=0,Di=null,Ue=null,Pd=0,qr=1/0,Xt=null,Sa=!1,fc=null,Nn=null,fo=!1,Sn=null,ba=0,Fi=0,hc=null,Ao=-1,Lo=0;function Ie(){return X&6?ce():Ao!==-1?Ao:Ao=ce()}function Tn(e){return e.mode&1?X&2&&be!==0?be&-be:Kx.transition!==null?(Lo===0&&(Lo=j1()),Lo):(e=Y,e!==0||(e=window.event,e=e===void 0?16:M1(e.type)),e):1}function Tt(e,t,n,r){if(50<Fi)throw Fi=0,hc=null,Error(_(185));Ts(e,n,r),(!(X&2)||e!==ye)&&(e===ye&&(!(X&2)&&(Qa|=n),me===4&&yn(e,be)),Ke(e,r),n===1&&X===0&&!(t.mode&1)&&(qr=ce()+500,Ua&&Fn()))}function Ke(e,t){var n=e.callbackNode;Kw(e,t);var r=sa(e,e===ye?be:0);if(r===0)n!==null&&yh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yh(n),t===1)e.tag===0?Wx(cp.bind(null,e)):tg(cp.bind(null,e)),Vx(function(){!(X&6)&&Fn()}),n=null;else{switch(N1(r)){case 1:n=ed;break;case 4:n=R1;break;case 16:n=ia;break;case 536870912:n=P1;break;default:n=ia}n=e0(n,Wg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wg(e,t){if(Ao=-1,Lo=0,X&6)throw Error(_(327));var n=e.callbackNode;if(Mr()&&e.callbackNode!==n)return null;var r=sa(e,e===ye?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ea(e,r);else{t=r;var i=X;X|=2;var s=Zg();(ye!==e||be!==t)&&(Xt=null,qr=ce()+500,Jn(e,t));do try{pS();break}catch(a){Kg(e,a)}while(1);hd(),xa.current=s,X=i,fe!==null?t=0:(ye=null,be=0,t=me)}if(t!==0){if(t===2&&(i=zu(e),i!==0&&(r=i,t=pc(e,i))),t===1)throw n=ps,Jn(e,0),yn(e,r),Ke(e,ce()),n;if(t===6)yn(e,r);else{if(i=e.current.alternate,!(r&30)&&!fS(i)&&(t=Ea(e,r),t===2&&(s=zu(e),s!==0&&(r=s,t=pc(e,s))),t===1))throw n=ps,Jn(e,0),yn(e,r),Ke(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Qn(e,Ue,Xt);break;case 3:if(yn(e,r),(r&130023424)===r&&(t=Pd+500-ce(),10<t)){if(sa(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ie(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ku(Qn.bind(null,e,Ue,Xt),t);break}Qn(e,Ue,Xt);break;case 4:if(yn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Nt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dS(r/1960))-r,10<r){e.timeoutHandle=Ku(Qn.bind(null,e,Ue,Xt),r);break}Qn(e,Ue,Xt);break;case 5:Qn(e,Ue,Xt);break;default:throw Error(_(329))}}}return Ke(e,ce()),e.callbackNode===n?Wg.bind(null,e):null}function pc(e,t){var n=Di;return e.current.memoizedState.isDehydrated&&(Jn(e,t).flags|=256),e=Ea(e,t),e!==2&&(t=Ue,Ue=n,t!==null&&mc(t)),e}function mc(e){Ue===null?Ue=e:Ue.push.apply(Ue,e)}function fS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!_t(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 yn(e,t){for(t&=~Rd,t&=~Qa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),r=1<<n;e[n]=-1,t&=~r}}function cp(e){if(X&6)throw Error(_(327));Mr();var t=sa(e,0);if(!(t&1))return Ke(e,ce()),null;var n=Ea(e,t);if(e.tag!==0&&n===2){var r=zu(e);r!==0&&(t=r,n=pc(e,r))}if(n===1)throw n=ps,Jn(e,0),yn(e,t),Ke(e,ce()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Qn(e,Ue,Xt),Ke(e,ce()),null}function jd(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(qr=ce()+500,Ua&&Fn())}}function or(e){Sn!==null&&Sn.tag===0&&!(X&6)&&Mr();var t=X;X|=1;var n=mt.transition,r=Y;try{if(mt.transition=null,Y=1,e)return e()}finally{Y=r,mt.transition=n,X=t,!(X&6)&&Fn()}}function Nd(){Je=jr.current,ne(jr)}function Jn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ux(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(cd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ca();break;case 3:Vr(),ne(Qe),ne(Pe),wd();break;case 5:yd(r);break;case 4:Vr();break;case 13:ne(se);break;case 19:ne(se);break;case 10:pd(r.type._context);break;case 22:case 23:Nd()}n=n.return}if(ye=e,fe=e=_n(e.current,null),be=Je=t,me=0,ps=null,Rd=Qa=sr=0,Ue=Di=null,Xn!==null){for(t=0;t<Xn.length;t++)if(n=Xn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Xn=null}return e}function Kg(e,t){do{var n=fe;try{if(hd(),To.current=wa,ya){for(var r=oe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ya=!1}if(ir=0,ve=pe=oe=null,Li=!1,ds=0,Od.current=null,n===null||n.return===null){me=1,ps=t,fe=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=Gh(o);if(g!==null){g.flags&=-257,Yh(g,o,a,s,t),g.mode&1&&Xh(s,u,t),t=g,l=u;var p=t.updateQueue;if(p===null){var y=new Set;y.add(l),t.updateQueue=y}else p.add(l);break e}else{if(!(t&1)){Xh(s,u,t),Td();break e}l=Error(_(426))}}else if(re&&a.mode&1){var x=Gh(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Yh(x,o,a,s,t),dd(Hr(l,a));break e}}s=l=Hr(l,a),me!==4&&(me=2),Di===null?Di=[s]:Di.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=Tg(s,l,t);Vh(s,m);break e;case 1:a=l;var v=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Nn===null||!Nn.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=_g(s,a,t);Vh(s,S);break e}}s=s.return}while(s!==null)}Gg(n)}catch(C){t=C,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function Zg(){var e=xa.current;return xa.current=wa,e===null?wa:e}function Td(){(me===0||me===3||me===2)&&(me=4),ye===null||!(sr&268435455)&&!(Qa&268435455)||yn(ye,be)}function Ea(e,t){var n=X;X|=2;var r=Zg();(ye!==e||be!==t)&&(Xt=null,Jn(e,t));do try{hS();break}catch(i){Kg(e,i)}while(1);if(hd(),X=n,xa.current=r,fe!==null)throw Error(_(261));return ye=null,be=0,me}function hS(){for(;fe!==null;)Xg(fe)}function pS(){for(;fe!==null&&!$w();)Xg(fe)}function Xg(e){var t=Jg(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?Gg(e):fe=t,Od.current=null}function Gg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=aS(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,fe=null;return}}else if(n=oS(n,t,Je),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);me===0&&(me=5)}function Qn(e,t,n){var r=Y,i=mt.transition;try{mt.transition=null,Y=1,mS(e,t,n,r)}finally{mt.transition=i,Y=r}return null}function mS(e,t,n,r){do Mr();while(Sn!==null);if(X&6)throw Error(_(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Zw(e,s),e===ye&&(fe=ye=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||fo||(fo=!0,e0(ia,function(){return Mr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=mt.transition,mt.transition=null;var o=Y;Y=1;var a=X;X|=4,Od.current=null,uS(e,n),qg(n,e),Lx(Qu),oa=!!qu,Qu=qu=null,e.current=n,cS(n),zw(),X=a,Y=o,mt.transition=s}else e.current=n;if(fo&&(fo=!1,Sn=e,ba=i),s=e.pendingLanes,s===0&&(Nn=null),Vw(n.stateNode),Ke(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sa)throw Sa=!1,e=fc,fc=null,e;return ba&1&&e.tag!==0&&Mr(),s=e.pendingLanes,s&1?e===hc?Fi++:(Fi=0,hc=e):Fi=0,Fn(),null}function Mr(){if(Sn!==null){var e=N1(ba),t=mt.transition,n=Y;try{if(mt.transition=null,Y=16>e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,ba=0,X&6)throw Error(_(331));var i=X;for(X|=4,D=e.current;D!==null;){var s=D,o=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:Mi(8,c,s)}var d=c.child;if(d!==null)d.return=c,D=d;else for(;D!==null;){c=D;var h=c.sibling,g=c.return;if(Ug(c),c===u){D=null;break}if(h!==null){h.return=g,D=h;break}D=g}}}var p=s.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}D=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,D=o;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Mi(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var v=e.current;for(D=v;D!==null;){o=D;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,D=w;else e:for(o=v;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:qa(9,a)}}catch(C){le(a,a.return,C)}if(a===o){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(X=i,Fn(),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(Da,e)}catch{}r=!0}return r}finally{Y=n,mt.transition=t}}return!1}function dp(e,t,n){t=Hr(n,t),t=Tg(e,t,1),e=jn(e,t,1),t=Ie(),e!==null&&(Ts(e,1,t),Ke(e,t))}function le(e,t,n){if(e.tag===3)dp(e,e,n);else for(;t!==null;){if(t.tag===3){dp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Nn===null||!Nn.has(r))){e=Hr(n,e),e=_g(t,e,1),t=jn(t,e,1),e=Ie(),t!==null&&(Ts(t,1,e),Ke(t,e));break}}t=t.return}}function gS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ie(),e.pingedLanes|=e.suspendedLanes&n,ye===e&&(be&n)===n&&(me===4||me===3&&(be&130023424)===be&&500>ce()-Pd?Jn(e,0):Rd|=n),Ke(e,t)}function Yg(e,t){t===0&&(e.mode&1?(t=to,to<<=1,!(to&130023424)&&(to=4194304)):t=1);var n=Ie();e=on(e,t),e!==null&&(Ts(e,t,n),Ke(e,n))}function vS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yg(e,n)}function yS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Yg(e,n)}var Jg;Jg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,sS(e,t,n);qe=!!(e.flags&131072)}else qe=!1,re&&t.flags&1048576&&ng(t,ha,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Io(e,t),e=t.pendingProps;var i=zr(t,Pe.current);Lr(t,n),i=Sd(null,t,r,e,i,n);var s=bd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(s=!0,da(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gd(t),i.updater=Va,t.stateNode=i,i._reactInternals=t,tc(t,r,e,n),t=ic(null,t,r,!0,s,n)):(t.tag=0,re&&s&&ud(t),Te(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Io(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=xS(r),e=kt(r,e),i){case 0:t=rc(null,t,r,e,n);break e;case 1:t=tp(null,t,r,e,n);break e;case 11:t=Jh(null,t,r,e,n);break e;case 14:t=ep(null,t,r,kt(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),rc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),tp(e,t,r,i,n);case 3:e:{if(Mg(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,i=s.element,og(e,t),ga(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Hr(Error(_(423)),t),t=np(e,t,r,n,i);break e}else if(r!==i){i=Hr(Error(_(424)),t),t=np(e,t,r,n,i);break e}else for(tt=Pn(t.stateNode.containerInfo.firstChild),rt=t,re=!0,Rt=null,n=cg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Br(),r===i){t=an(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return dg(t),e===null&&Yu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Wu(r,i)?o=null:s!==null&&Wu(r,s)&&(t.flags|=32),Lg(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&Yu(t),null;case 13:return Dg(e,t,n);case 4:return vd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ur(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Jh(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ee(pa,r._currentValue),r._currentValue=o,s!==null)if(_t(s.value,o)){if(s.children===i.children&&!Qe.current){t=an(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=nn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ju(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(_(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ju(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Lr(t,n),i=vt(i),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,i=kt(r,t.pendingProps),i=kt(r.type,i),ep(e,t,r,i,n);case 15:return Ig(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Io(e,t),t.tag=1,We(r)?(e=!0,da(t)):e=!1,Lr(t,n),lg(t,r,i),tc(t,r,i,n),ic(null,t,r,!0,e,n);case 19:return Fg(e,t,n);case 22:return Ag(e,t,n)}throw Error(_(156,t.tag))};function e0(e,t){return O1(e,t)}function wS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pt(e,t,n,r){return new wS(e,t,n,r)}function _d(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xS(e){if(typeof e=="function")return _d(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gc)return 11;if(e===Yc)return 14}return 2}function _n(e,t){var n=e.alternate;return n===null?(n=pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mo(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")_d(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case wr:return er(n.children,i,s,t);case Xc:o=8,i|=8;break;case ku:return e=pt(12,n,t,i|2),e.elementType=ku,e.lanes=s,e;case Ou:return e=pt(13,n,t,i),e.elementType=Ou,e.lanes=s,e;case Ru:return e=pt(19,n,t,i),e.elementType=Ru,e.lanes=s,e;case u1:return Wa(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a1:o=10;break e;case l1:o=9;break e;case Gc:o=11;break e;case Yc:o=14;break e;case mn:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=pt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function er(e,t,n,r){return e=pt(7,e,r,t),e.lanes=n,e}function Wa(e,t,n,r){return e=pt(22,e,r,t),e.elementType=u1,e.lanes=n,e.stateNode={isHidden:!1},e}function Zl(e,t,n){return e=pt(6,e,null,t),e.lanes=n,e}function Xl(e,t,n){return t=pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SS(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Id(e,t,n,r,i,s,o,a,l){return e=new SS(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=pt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gd(s),e}function bS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:yr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function t0(e){if(!e)return Ln;e=e._reactInternals;e:{if(cr(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(We(n))return eg(e,n,t)}return t}function n0(e,t,n,r,i,s,o,a,l){return e=Id(n,r,!0,e,i,s,o,a,l),e.context=t0(null),n=e.current,r=Ie(),i=Tn(n),s=nn(r,i),s.callback=t??null,jn(n,s,i),e.current.lanes=i,Ts(e,i,r),Ke(e,r),e}function Ka(e,t,n,r){var i=t.current,s=Ie(),o=Tn(i);return n=t0(n),t.context===null?t.context=n:t.pendingContext=n,t=nn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=jn(i,t,o),e!==null&&(Tt(e,i,o,s),No(e,i,o)),o}function Ca(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ad(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function ES(){return null}var r0=typeof reportError=="function"?reportError:function(e){};function Ld(e){this._internalRoot=e}Za.prototype.render=Ld.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Ka(e,t,null,null)};Za.prototype.unmount=Ld.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;or(function(){Ka(null,e,null,null)}),t[sn]=null}};function Za(e){this._internalRoot=e}Za.prototype.unstable_scheduleHydration=function(e){if(e){var t=I1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vn.length&&t!==0&&t<vn[n].priority;n++);vn.splice(n,0,e),n===0&&L1(e)}};function Md(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hp(){}function CS(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Ca(o);s.call(u)}}var o=n0(t,r,e,0,null,!1,!1,"",hp);return e._reactRootContainer=o,e[sn]=o.current,os(e.nodeType===8?e.parentNode:e),or(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Ca(l);a.call(u)}}var l=Id(e,0,!1,null,null,!1,!1,"",hp);return e._reactRootContainer=l,e[sn]=l.current,os(e.nodeType===8?e.parentNode:e),or(function(){Ka(t,l,n,r)}),l}function Ga(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Ca(o);a.call(l)}}Ka(t,o,e,i)}else o=CS(n,t,e,i,r);return Ca(o)}T1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ki(t.pendingLanes);n!==0&&(td(t,n|1),Ke(t,ce()),!(X&6)&&(qr=ce()+500,Fn()))}break;case 13:or(function(){var r=on(e,1);if(r!==null){var i=Ie();Tt(r,e,1,i)}}),Ad(e,1)}};nd=function(e){if(e.tag===13){var t=on(e,134217728);if(t!==null){var n=Ie();Tt(t,e,134217728,n)}Ad(e,134217728)}};_1=function(e){if(e.tag===13){var t=Tn(e),n=on(e,t);if(n!==null){var r=Ie();Tt(n,e,t,r)}Ad(e,t)}};I1=function(){return Y};A1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Du=function(e,t,n){switch(t){case"input":if(Nu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ba(r);if(!i)throw Error(_(90));d1(r),Nu(r,i)}}}break;case"textarea":h1(e,n);break;case"select":t=n.value,t!=null&&Tr(e,!!n.multiple,t,!1)}};x1=jd;S1=or;var kS={usingClientEntryPoint:!1,Events:[Is,Er,Ba,y1,w1,jd]},mi={findFiberByHostInstance:Zn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},OS={bundleType:mi.bundleType,version:mi.version,rendererPackageName:mi.rendererPackageName,rendererConfig:mi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:cn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=C1(e),e===null?null:e.stateNode},findFiberByHostInstance:mi.findFiberByHostInstance||ES,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{Da=ho.inject(OS),Ut=ho}catch{}}ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kS;ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Md(t))throw Error(_(200));return bS(e,t,null,n)};ot.createRoot=function(e,t){if(!Md(e))throw Error(_(299));var n=!1,r="",i=r0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Id(e,1,!1,null,null,n,!1,r,i),e[sn]=t.current,os(e.nodeType===8?e.parentNode:e),new Ld(t)};ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=C1(t),e=e===null?null:e.stateNode,e};ot.flushSync=function(e){return or(e)};ot.hydrate=function(e,t,n){if(!Xa(t))throw Error(_(200));return Ga(null,e,t,!0,n)};ot.hydrateRoot=function(e,t,n){if(!Md(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=r0;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=n0(t,null,e,1,n??null,i,!1,s,o),e[sn]=t.current,os(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Za(t)};ot.render=function(e,t,n){if(!Xa(t))throw Error(_(200));return Ga(null,e,t,!1,n)};ot.unmountComponentAtNode=function(e){if(!Xa(e))throw Error(_(40));return e._reactRootContainer?(or(function(){Ga(null,null,e,!1,function(){e._reactRootContainer=null,e[sn]=null})}),!0):!1};ot.unstable_batchedUpdates=jd;ot.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xa(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Ga(e,t,n,!1,r)};ot.version="18.2.0-next-9e3b772b8-20220608";function i0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i0)}catch{}}i0(),n1.exports=ot;var Ls=n1.exports,s0={exports:{}},o0={};/**
40
+ `+s.stack}return{value:e,source:t,stack:i,digest:null}}function Wl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var nS=typeof WeakMap=="function"?WeakMap:Map;function Tg(e,t,n){n=rn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Sa||(Sa=!0,fc=r),nc(e,t)},n}function _g(e,t,n){n=rn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){nc(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){nc(e,t),typeof r!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Xh(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new nS;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=gS.bind(null,e,t,n),t.then(e,e))}function Gh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Yh(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=rn(-1,1),t.tag=2,Nn(n,t,1))),n.lanes|=1),e)}var rS=dn.ReactCurrentOwner,qe=!1;function Te(e,t,n,r){t.child=e===null?cg(t,null,n,r):Vr(t,e.child,n,r)}function Jh(e,t,n,r,i){n=n.render;var s=t.ref;return Mr(t,i),r=Sd(e,t,n,r,s,i),n=bd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(re&&n&&ud(t),t.flags|=1,Te(e,t,r,i),t.child)}function ep(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!_d(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Ig(e,t,s,r,i)):(e=Mo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:os,n(o,r)&&e.ref===t.ref)return ln(e,t,i)}return t.flags|=1,e=In(s,r),e.ref=t.ref,e.return=t,t.child=e}function Ig(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(os(s,r)&&e.ref===t.ref)if(qe=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(qe=!0);else return t.lanes=e.lanes,ln(e,t,i)}return rc(e,t,n,r,i)}function Ag(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ee(Nr,Je),Je|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ee(Nr,Je),Je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ee(Nr,Je),Je|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,ee(Nr,Je),Je|=r;return Te(e,t,i,n),t.child}function Lg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rc(e,t,n,r,i){var s=We(n)?rr:Pe.current;return s=Br(t,s),Mr(t,i),n=Sd(e,t,n,r,s,i),r=bd(),e!==null&&!qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ln(e,t,i)):(re&&r&&ud(t),t.flags|=1,Te(e,t,n,i),t.child)}function tp(e,t,n,r,i){if(We(n)){var s=!0;da(t)}else s=!1;if(Mr(t,i),t.stateNode===null)Io(e,t),lg(t,n,r),tc(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=yt(u):(u=We(n)?rr:Pe.current,u=Br(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Qh(t,o,r,u),vn=!1;var h=t.memoizedState;o.state=h,ga(t,r,o,i),l=t.memoizedState,a!==r||h!==l||Qe.current||vn?(typeof c=="function"&&(ec(t,n,c,r),l=t.memoizedState),(a=vn||qh(t,n,a,r,h,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,og(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:kt(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=yt(l):(l=We(n)?rr:Pe.current,l=Br(t,l));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Qh(t,o,r,l),vn=!1,h=t.memoizedState,o.state=h,ga(t,r,o,i);var p=t.memoizedState;a!==d||h!==p||Qe.current||vn?(typeof g=="function"&&(ec(t,n,g,r),p=t.memoizedState),(u=vn||qh(t,n,u,r,h,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ic(e,t,n,r,s,i)}function ic(e,t,n,r,i,s){Lg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&zh(t,n,!1),ln(e,t,s);r=t.stateNode,rS.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Vr(t,e.child,null,s),t.child=Vr(t,null,a,s)):Te(e,t,a,s),t.memoizedState=r.state,i&&zh(t,n,!0),t.child}function Mg(e){var t=e.stateNode;t.pendingContext?$h(e,t.pendingContext,t.pendingContext!==t.context):t.context&&$h(e,t.context,!1),vd(e,t.containerInfo)}function np(e,t,n,r,i){return Ur(),dd(i),t.flags|=256,Te(e,t,n,r),t.child}var sc={dehydrated:null,treeContext:null,retryLane:0};function oc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dg(e,t,n){var r=t.pendingProps,i=se.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ee(se,i&1),e===null)return Yu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Wa(o,r,0,null),e=tr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=oc(n),t.memoizedState=sc,e):kd(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return iS(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=In(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=In(a,s):(s=tr(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?oc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=sc,r}return s=e.child,e=s.sibling,r=In(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function kd(e,t){return t=Wa({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function co(e,t,n,r){return r!==null&&dd(r),Vr(t,e.child,null,n),e=kd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iS(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=Wl(Error(_(422))),co(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=Wa({mode:"visible",children:r.children},i,0,null),s=tr(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Vr(t,e.child,null,o),t.child.memoizedState=oc(o),t.memoizedState=sc,s);if(!(t.mode&1))return co(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(_(419)),r=Wl(s,r,void 0),co(e,t,o,r)}if(a=(o&e.childLanes)!==0,qe||a){if(r=ye,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,an(e,i),Tt(r,e,i,-1))}return Td(),r=Wl(Error(_(421))),co(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=vS.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,tt=jn(i.nextSibling),rt=t,re=!0,Rt=null,e!==null&&(dt[ft++]=en,dt[ft++]=tn,dt[ft++]=ir,en=e.id,tn=e.overflow,ir=t),t=kd(t,r.children),t.flags|=4096,t)}function rp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ju(e.return,t,n)}function Kl(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function Fg(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Te(e,t,r.children,n),r=se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rp(e,n,t);else if(e.tag===19)rp(e,n,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}r&=1}if(ee(se,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&va(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Kl(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&va(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Kl(t,!0,n,null,s);break;case"together":Kl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Io(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),or|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(_(153));if(t.child!==null){for(e=t.child,n=In(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=In(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sS(e,t,n){switch(t.tag){case 3:Mg(t),Ur();break;case 5:dg(t);break;case 1:We(t.type)&&da(t);break;case 4:vd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ee(pa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ee(se,se.current&1),t.flags|=128,null):n&t.child.childLanes?Dg(e,t,n):(ee(se,se.current&1),e=ln(e,t,n),e!==null?e.sibling:null);ee(se,se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Fg(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ee(se,se.current),r)break;return null;case 22:case 23:return t.lanes=0,Ag(e,t,n)}return ln(e,t,n)}var $g,ac,zg,Bg;$g=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ac=function(){};zg=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Yn(Ht.current);var s=null;switch(n){case"input":i=ju(e,i),r=ju(e,r),s=[];break;case"select":i=ae({},i,{value:void 0}),r=ae({},r,{value:void 0}),s=[];break;case"textarea":i=_u(e,i),r=_u(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ua)}Au(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ji.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ji.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&te("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Bg=function(e,t,n,r){n!==r&&(t.flags|=4)};function mi(e,t){if(!re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function oS(e,t,n){var r=t.pendingProps;switch(cd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return We(t.type)&&ca(),Oe(t),null;case 3:return r=t.stateNode,Hr(),ne(Qe),ne(Pe),wd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(lo(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Rt!==null&&(mc(Rt),Rt=null))),ac(e,t),Oe(t),null;case 5:yd(t);var i=Yn(ds.current);if(n=t.type,e!==null&&t.stateNode!=null)zg(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(_(166));return Oe(t),null}if(e=Yn(Ht.current),lo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Bt]=t,r[us]=s,e=(t.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(i=0;i<Ri.length;i++)te(Ri[i],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":fh(r,s),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},te("invalid",r);break;case"textarea":ph(r,s),te("invalid",r)}Au(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&ao(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&ao(r.textContent,a,e),i=["children",""+a]):Ji.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&te("scroll",r)}switch(n){case"input":Js(r),hh(r,s,!0);break;case"textarea":Js(r),mh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ua)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=p1(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Bt]=t,e[us]=r,$g(e,t,!1,!1),t.stateNode=e;e:{switch(o=Lu(n,r),n){case"dialog":te("cancel",e),te("close",e),i=r;break;case"iframe":case"object":case"embed":te("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ri.length;i++)te(Ri[i],e);i=r;break;case"source":te("error",e),i=r;break;case"img":case"image":case"link":te("error",e),te("load",e),i=r;break;case"details":te("toggle",e),i=r;break;case"input":fh(e,r),i=ju(e,r),te("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ae({},r,{value:void 0}),te("invalid",e);break;case"textarea":ph(e,r),i=_u(e,r),te("invalid",e);break;default:i=r}Au(n,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?v1(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&m1(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&es(e,l):typeof l=="number"&&es(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ji.hasOwnProperty(s)?l!=null&&s==="onScroll"&&te("scroll",e):l!=null&&Zc(e,s,l,o))}switch(n){case"input":Js(e),hh(e,r,!1);break;case"textarea":Js(e),mh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ln(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?_r(e,!!r.multiple,s,!1):r.defaultValue!=null&&_r(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ua)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Oe(t),null;case 6:if(e&&t.stateNode!=null)Bg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(_(166));if(n=Yn(ds.current),Yn(Ht.current),lo(t)){if(r=t.stateNode,n=t.memoizedProps,r[Bt]=t,(s=r.nodeValue!==n)&&(e=rt,e!==null))switch(e.tag){case 3:ao(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ao(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Bt]=t,t.stateNode=r}return Oe(t),null;case 13:if(ne(se),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(re&&tt!==null&&t.mode&1&&!(t.flags&128))ig(),Ur(),t.flags|=98560,s=!1;else if(s=lo(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(_(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[Bt]=t}else Ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Oe(t),s=!1}else Rt!==null&&(mc(Rt),Rt=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||se.current&1?me===0&&(me=3):Td())),t.updateQueue!==null&&(t.flags|=4),Oe(t),null);case 4:return Hr(),ac(e,t),e===null&&as(t.stateNode.containerInfo),Oe(t),null;case 10:return pd(t.type._context),Oe(t),null;case 17:return We(t.type)&&ca(),Oe(t),null;case 19:if(ne(se),s=t.memoizedState,s===null)return Oe(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)mi(s,!1);else{if(me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=va(e),o!==null){for(t.flags|=128,mi(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ee(se,se.current&1|2),t.child}e=e.sibling}s.tail!==null&&ce()>Qr&&(t.flags|=128,r=!0,mi(s,!1),t.lanes=4194304)}else{if(!r)if(e=va(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mi(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!re)return Oe(t),null}else 2*ce()-s.renderingStartTime>Qr&&n!==1073741824&&(t.flags|=128,r=!0,mi(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=ce(),t.sibling=null,n=se.current,ee(se,r?n&1|2:n&1),t):(Oe(t),null);case 22:case 23:return Nd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Je&1073741824&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function aS(e,t){switch(cd(t),t.tag){case 1:return We(t.type)&&ca(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Hr(),ne(Qe),ne(Pe),wd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return yd(t),null;case 13:if(ne(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(se),null;case 4:return Hr(),null;case 10:return pd(t.type._context),null;case 22:case 23:return Nd(),null;case 24:return null;default:return null}}var fo=!1,Re=!1,lS=typeof WeakSet=="function"?WeakSet:Set,D=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){le(e,t,r)}else n.current=null}function lc(e,t,n){try{n()}catch(r){le(e,t,r)}}var ip=!1;function uS(e,t){if(qu=oa,e=q1(),ld(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,h=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===e)break t;if(h===n&&++u===i&&(a=o),h===s&&++c===r&&(l=o),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qu={focusedElem:e,selectionRange:n},oa=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,x=p.memoizedState,m=t.stateNode,v=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:kt(t.type,y),x);m.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(S){le(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return p=ip,ip=!1,p}function Di(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&lc(t,n,s)}i=i.next}while(i!==r)}}function qa(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Ug(e){var t=e.alternate;t!==null&&(e.alternate=null,Ug(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Bt],delete t[us],delete t[Zu],delete t[qx],delete t[Qx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Vg(e){return e.tag===5||e.tag===3||e.tag===4}function sp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Vg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function cc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ua));else if(r!==4&&(e=e.child,e!==null))for(cc(e,t,n),e=e.sibling;e!==null;)cc(e,t,n),e=e.sibling}function dc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(dc(e,t,n),e=e.sibling;e!==null;)dc(e,t,n),e=e.sibling}var Se=null,Ot=!1;function hn(e,t,n){for(n=n.child;n!==null;)Hg(e,t,n),n=n.sibling}function Hg(e,t,n){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Da,n)}catch{}switch(n.tag){case 5:Re||jr(n,t);case 6:var r=Se,i=Ot;Se=null,hn(e,t,n),Se=r,Ot=i,Se!==null&&(Ot?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(Ot?(e=Se,n=n.stateNode,e.nodeType===8?Bl(e.parentNode,n):e.nodeType===1&&Bl(e,n),is(e)):Bl(Se,n.stateNode));break;case 4:r=Se,i=Ot,Se=n.stateNode.containerInfo,Ot=!0,hn(e,t,n),Se=r,Ot=i;break;case 0:case 11:case 14:case 15:if(!Re&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&lc(n,t,o),i=i.next}while(i!==r)}hn(e,t,n);break;case 1:if(!Re&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){le(n,t,a)}hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:n.mode&1?(Re=(r=Re)||n.memoizedState!==null,hn(e,t,n),Re=r):hn(e,t,n);break;default:hn(e,t,n)}}function op(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lS),t.forEach(function(r){var i=yS.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ct(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Se=a.stateNode,Ot=!1;break e;case 3:Se=a.stateNode.containerInfo,Ot=!0;break e;case 4:Se=a.stateNode.containerInfo,Ot=!0;break e}a=a.return}if(Se===null)throw Error(_(160));Hg(s,o,i),Se=null,Ot=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){le(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qg(t,e),t=t.sibling}function qg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ct(t,e),Dt(e),r&4){try{Di(3,e,e.return),qa(3,e)}catch(y){le(e,e.return,y)}try{Di(5,e,e.return)}catch(y){le(e,e.return,y)}}break;case 1:Ct(t,e),Dt(e),r&512&&n!==null&&jr(n,n.return);break;case 5:if(Ct(t,e),Dt(e),r&512&&n!==null&&jr(n,n.return),e.flags&32){var i=e.stateNode;try{es(i,"")}catch(y){le(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&f1(i,s),Lu(a,o);var u=Lu(a,s);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?v1(i,d):c==="dangerouslySetInnerHTML"?m1(i,d):c==="children"?es(i,d):Zc(i,c,d,u)}switch(a){case"input":Nu(i,s);break;case"textarea":h1(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?_r(i,!!s.multiple,g,!1):h!==!!s.multiple&&(s.defaultValue!=null?_r(i,!!s.multiple,s.defaultValue,!0):_r(i,!!s.multiple,s.multiple?[]:"",!1))}i[us]=s}catch(y){le(e,e.return,y)}}break;case 6:if(Ct(t,e),Dt(e),r&4){if(e.stateNode===null)throw Error(_(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){le(e,e.return,y)}}break;case 3:if(Ct(t,e),Dt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{is(t.containerInfo)}catch(y){le(e,e.return,y)}break;case 4:Ct(t,e),Dt(e);break;case 13:Ct(t,e),Dt(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Pd=ce())),r&4&&op(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Re=(u=Re)||c,Ct(t,e),Re=u):Ct(t,e),Dt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(D=e,c=e.child;c!==null;){for(d=D=c;D!==null;){switch(h=D,g=h.child,h.tag){case 0:case 11:case 14:case 15:Di(4,h,h.return);break;case 1:jr(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(y){le(r,n,y)}}break;case 5:jr(h,h.return);break;case 22:if(h.memoizedState!==null){lp(d);continue}}g!==null?(g.return=h,D=g):lp(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=g1("display",o))}catch(y){le(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){le(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ct(t,e),Dt(e),r&4&&op(e);break;case 21:break;default:Ct(t,e),Dt(e)}}function Dt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Vg(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(es(i,""),r.flags&=-33);var s=sp(e);dc(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,a=sp(e);cc(e,a,o);break;default:throw Error(_(161))}}catch(l){le(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cS(e,t,n){D=e,Qg(e)}function Qg(e,t,n){for(var r=(e.mode&1)!==0;D!==null;){var i=D,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||fo;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Re;a=fo;var u=Re;if(fo=o,(Re=l)&&!u)for(D=i;D!==null;)o=D,l=o.child,o.tag===22&&o.memoizedState!==null?up(i):l!==null?(l.return=o,D=l):up(i);for(;s!==null;)D=s,Qg(s),s=s.sibling;D=i,fo=a,Re=u}ap(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,D=s):ap(e)}}function ap(e){for(;D!==null;){var t=D;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Re||qa(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Re)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:kt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Hh(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Hh(t,o,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&is(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Re||t.flags&512&&uc(t)}catch(h){le(t,t.return,h)}}if(t===e){D=null;break}if(n=t.sibling,n!==null){n.return=t.return,D=n;break}D=t.return}}function lp(e){for(;D!==null;){var t=D;if(t===e){D=null;break}var n=t.sibling;if(n!==null){n.return=t.return,D=n;break}D=t.return}}function up(e){for(;D!==null;){var t=D;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{qa(4,t)}catch(l){le(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){le(t,i,l)}}var s=t.return;try{uc(t)}catch(l){le(t,s,l)}break;case 5:var o=t.return;try{uc(t)}catch(l){le(t,o,l)}}}catch(l){le(t,t.return,l)}if(t===e){D=null;break}var a=t.sibling;if(a!==null){a.return=t.return,D=a;break}D=t.return}}var dS=Math.ceil,xa=dn.ReactCurrentDispatcher,Od=dn.ReactCurrentOwner,gt=dn.ReactCurrentBatchConfig,X=0,ye=null,fe=null,be=0,Je=0,Nr=Fn(0),me=0,ms=null,or=0,Qa=0,Rd=0,Fi=null,Ue=null,Pd=0,Qr=1/0,Gt=null,Sa=!1,fc=null,Tn=null,ho=!1,bn=null,ba=0,$i=0,hc=null,Ao=-1,Lo=0;function Ie(){return X&6?ce():Ao!==-1?Ao:Ao=ce()}function _n(e){return e.mode&1?X&2&&be!==0?be&-be:Kx.transition!==null?(Lo===0&&(Lo=j1()),Lo):(e=Y,e!==0||(e=window.event,e=e===void 0?16:M1(e.type)),e):1}function Tt(e,t,n,r){if(50<$i)throw $i=0,hc=null,Error(_(185));_s(e,n,r),(!(X&2)||e!==ye)&&(e===ye&&(!(X&2)&&(Qa|=n),me===4&&wn(e,be)),Ke(e,r),n===1&&X===0&&!(t.mode&1)&&(Qr=ce()+500,Ua&&$n()))}function Ke(e,t){var n=e.callbackNode;Kw(e,t);var r=sa(e,e===ye?be:0);if(r===0)n!==null&&yh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&yh(n),t===1)e.tag===0?Wx(cp.bind(null,e)):tg(cp.bind(null,e)),Vx(function(){!(X&6)&&$n()}),n=null;else{switch(N1(r)){case 1:n=ed;break;case 4:n=R1;break;case 16:n=ia;break;case 536870912:n=P1;break;default:n=ia}n=e0(n,Wg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Wg(e,t){if(Ao=-1,Lo=0,X&6)throw Error(_(327));var n=e.callbackNode;if(Dr()&&e.callbackNode!==n)return null;var r=sa(e,e===ye?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ea(e,r);else{t=r;var i=X;X|=2;var s=Zg();(ye!==e||be!==t)&&(Gt=null,Qr=ce()+500,er(e,t));do try{pS();break}catch(a){Kg(e,a)}while(1);hd(),xa.current=s,X=i,fe!==null?t=0:(ye=null,be=0,t=me)}if(t!==0){if(t===2&&(i=zu(e),i!==0&&(r=i,t=pc(e,i))),t===1)throw n=ms,er(e,0),wn(e,r),Ke(e,ce()),n;if(t===6)wn(e,r);else{if(i=e.current.alternate,!(r&30)&&!fS(i)&&(t=Ea(e,r),t===2&&(s=zu(e),s!==0&&(r=s,t=pc(e,s))),t===1))throw n=ms,er(e,0),wn(e,r),Ke(e,ce()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(_(345));case 2:Wn(e,Ue,Gt);break;case 3:if(wn(e,r),(r&130023424)===r&&(t=Pd+500-ce(),10<t)){if(sa(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ie(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ku(Wn.bind(null,e,Ue,Gt),t);break}Wn(e,Ue,Gt);break;case 4:if(wn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-Nt(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=ce()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*dS(r/1960))-r,10<r){e.timeoutHandle=Ku(Wn.bind(null,e,Ue,Gt),r);break}Wn(e,Ue,Gt);break;case 5:Wn(e,Ue,Gt);break;default:throw Error(_(329))}}}return Ke(e,ce()),e.callbackNode===n?Wg.bind(null,e):null}function pc(e,t){var n=Fi;return e.current.memoizedState.isDehydrated&&(er(e,t).flags|=256),e=Ea(e,t),e!==2&&(t=Ue,Ue=n,t!==null&&mc(t)),e}function mc(e){Ue===null?Ue=e:Ue.push.apply(Ue,e)}function fS(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!_t(s(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 wn(e,t){for(t&=~Rd,t&=~Qa,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nt(t),r=1<<n;e[n]=-1,t&=~r}}function cp(e){if(X&6)throw Error(_(327));Dr();var t=sa(e,0);if(!(t&1))return Ke(e,ce()),null;var n=Ea(e,t);if(e.tag!==0&&n===2){var r=zu(e);r!==0&&(t=r,n=pc(e,r))}if(n===1)throw n=ms,er(e,0),wn(e,t),Ke(e,ce()),n;if(n===6)throw Error(_(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wn(e,Ue,Gt),Ke(e,ce()),null}function jd(e,t){var n=X;X|=1;try{return e(t)}finally{X=n,X===0&&(Qr=ce()+500,Ua&&$n())}}function ar(e){bn!==null&&bn.tag===0&&!(X&6)&&Dr();var t=X;X|=1;var n=gt.transition,r=Y;try{if(gt.transition=null,Y=1,e)return e()}finally{Y=r,gt.transition=n,X=t,!(X&6)&&$n()}}function Nd(){Je=Nr.current,ne(Nr)}function er(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ux(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(cd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ca();break;case 3:Hr(),ne(Qe),ne(Pe),wd();break;case 5:yd(r);break;case 4:Hr();break;case 13:ne(se);break;case 19:ne(se);break;case 10:pd(r.type._context);break;case 22:case 23:Nd()}n=n.return}if(ye=e,fe=e=In(e.current,null),be=Je=t,me=0,ms=null,Rd=Qa=or=0,Ue=Fi=null,Gn!==null){for(t=0;t<Gn.length;t++)if(n=Gn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}Gn=null}return e}function Kg(e,t){do{var n=fe;try{if(hd(),To.current=wa,ya){for(var r=oe.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ya=!1}if(sr=0,ve=pe=oe=null,Mi=!1,fs=0,Od.current=null,n===null||n.return===null){me=1,ms=t,fe=null;break}e:{var s=e,o=n.return,a=n,l=t;if(t=be,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=Gh(o);if(g!==null){g.flags&=-257,Yh(g,o,a,s,t),g.mode&1&&Xh(s,u,t),t=g,l=u;var p=t.updateQueue;if(p===null){var y=new Set;y.add(l),t.updateQueue=y}else p.add(l);break e}else{if(!(t&1)){Xh(s,u,t),Td();break e}l=Error(_(426))}}else if(re&&a.mode&1){var x=Gh(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Yh(x,o,a,s,t),dd(qr(l,a));break e}}s=l=qr(l,a),me!==4&&(me=2),Fi===null?Fi=[s]:Fi.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=Tg(s,l,t);Vh(s,m);break e;case 1:a=l;var v=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Tn===null||!Tn.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=_g(s,a,t);Vh(s,S);break e}}s=s.return}while(s!==null)}Gg(n)}catch(C){t=C,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function Zg(){var e=xa.current;return xa.current=wa,e===null?wa:e}function Td(){(me===0||me===3||me===2)&&(me=4),ye===null||!(or&268435455)&&!(Qa&268435455)||wn(ye,be)}function Ea(e,t){var n=X;X|=2;var r=Zg();(ye!==e||be!==t)&&(Gt=null,er(e,t));do try{hS();break}catch(i){Kg(e,i)}while(1);if(hd(),X=n,xa.current=r,fe!==null)throw Error(_(261));return ye=null,be=0,me}function hS(){for(;fe!==null;)Xg(fe)}function pS(){for(;fe!==null&&!$w();)Xg(fe)}function Xg(e){var t=Jg(e.alternate,e,Je);e.memoizedProps=e.pendingProps,t===null?Gg(e):fe=t,Od.current=null}function Gg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=aS(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{me=6,fe=null;return}}else if(n=oS(n,t,Je),n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);me===0&&(me=5)}function Wn(e,t,n){var r=Y,i=gt.transition;try{gt.transition=null,Y=1,mS(e,t,n,r)}finally{gt.transition=i,Y=r}return null}function mS(e,t,n,r){do Dr();while(bn!==null);if(X&6)throw Error(_(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(_(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(Zw(e,s),e===ye&&(fe=ye=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ho||(ho=!0,e0(ia,function(){return Dr(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=gt.transition,gt.transition=null;var o=Y;Y=1;var a=X;X|=4,Od.current=null,uS(e,n),qg(n,e),Lx(Qu),oa=!!qu,Qu=qu=null,e.current=n,cS(n),zw(),X=a,Y=o,gt.transition=s}else e.current=n;if(ho&&(ho=!1,bn=e,ba=i),s=e.pendingLanes,s===0&&(Tn=null),Vw(n.stateNode),Ke(e,ce()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Sa)throw Sa=!1,e=fc,fc=null,e;return ba&1&&e.tag!==0&&Dr(),s=e.pendingLanes,s&1?e===hc?$i++:($i=0,hc=e):$i=0,$n(),null}function Dr(){if(bn!==null){var e=N1(ba),t=gt.transition,n=Y;try{if(gt.transition=null,Y=16>e?16:e,bn===null)var r=!1;else{if(e=bn,bn=null,ba=0,X&6)throw Error(_(331));var i=X;for(X|=4,D=e.current;D!==null;){var s=D,o=s.child;if(D.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(D=u;D!==null;){var c=D;switch(c.tag){case 0:case 11:case 15:Di(8,c,s)}var d=c.child;if(d!==null)d.return=c,D=d;else for(;D!==null;){c=D;var h=c.sibling,g=c.return;if(Ug(c),c===u){D=null;break}if(h!==null){h.return=g,D=h;break}D=g}}}var p=s.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}D=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,D=o;else e:for(;D!==null;){if(s=D,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Di(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,D=m;break e}D=s.return}}var v=e.current;for(D=v;D!==null;){o=D;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,D=w;else e:for(o=v;D!==null;){if(a=D,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:qa(9,a)}}catch(C){le(a,a.return,C)}if(a===o){D=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,D=S;break e}D=a.return}}if(X=i,$n(),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(Da,e)}catch{}r=!0}return r}finally{Y=n,gt.transition=t}}return!1}function dp(e,t,n){t=qr(n,t),t=Tg(e,t,1),e=Nn(e,t,1),t=Ie(),e!==null&&(_s(e,1,t),Ke(e,t))}function le(e,t,n){if(e.tag===3)dp(e,e,n);else for(;t!==null;){if(t.tag===3){dp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Tn===null||!Tn.has(r))){e=qr(n,e),e=_g(t,e,1),t=Nn(t,e,1),e=Ie(),t!==null&&(_s(t,1,e),Ke(t,e));break}}t=t.return}}function gS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ie(),e.pingedLanes|=e.suspendedLanes&n,ye===e&&(be&n)===n&&(me===4||me===3&&(be&130023424)===be&&500>ce()-Pd?er(e,0):Rd|=n),Ke(e,t)}function Yg(e,t){t===0&&(e.mode&1?(t=no,no<<=1,!(no&130023424)&&(no=4194304)):t=1);var n=Ie();e=an(e,t),e!==null&&(_s(e,t,n),Ke(e,n))}function vS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yg(e,n)}function yS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Yg(e,n)}var Jg;Jg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return qe=!1,sS(e,t,n);qe=!!(e.flags&131072)}else qe=!1,re&&t.flags&1048576&&ng(t,ha,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Io(e,t),e=t.pendingProps;var i=Br(t,Pe.current);Mr(t,n),i=Sd(null,t,r,e,i,n);var s=bd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(s=!0,da(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,gd(t),i.updater=Va,t.stateNode=i,i._reactInternals=t,tc(t,r,e,n),t=ic(null,t,r,!0,s,n)):(t.tag=0,re&&s&&ud(t),Te(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Io(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=xS(r),e=kt(r,e),i){case 0:t=rc(null,t,r,e,n);break e;case 1:t=tp(null,t,r,e,n);break e;case 11:t=Jh(null,t,r,e,n);break e;case 14:t=ep(null,t,r,kt(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),rc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),tp(e,t,r,i,n);case 3:e:{if(Mg(t),e===null)throw Error(_(387));r=t.pendingProps,s=t.memoizedState,i=s.element,og(e,t),ga(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=qr(Error(_(423)),t),t=np(e,t,r,n,i);break e}else if(r!==i){i=qr(Error(_(424)),t),t=np(e,t,r,n,i);break e}else for(tt=jn(t.stateNode.containerInfo.firstChild),rt=t,re=!0,Rt=null,n=cg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===i){t=ln(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return dg(t),e===null&&Yu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Wu(r,i)?o=null:s!==null&&Wu(r,s)&&(t.flags|=32),Lg(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&Yu(t),null;case 13:return Dg(e,t,n);case 4:return vd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vr(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Jh(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ee(pa,r._currentValue),r._currentValue=o,s!==null)if(_t(s.value,o)){if(s.children===i.children&&!Qe.current){t=ln(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=rn(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ju(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(_(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ju(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Mr(t,n),i=yt(i),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,i=kt(r,t.pendingProps),i=kt(r.type,i),ep(e,t,r,i,n);case 15:return Ig(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:kt(r,i),Io(e,t),t.tag=1,We(r)?(e=!0,da(t)):e=!1,Mr(t,n),lg(t,r,i),tc(t,r,i,n),ic(null,t,r,!0,e,n);case 19:return Fg(e,t,n);case 22:return Ag(e,t,n)}throw Error(_(156,t.tag))};function e0(e,t){return O1(e,t)}function wS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,r){return new wS(e,t,n,r)}function _d(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xS(e){if(typeof e=="function")return _d(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gc)return 11;if(e===Yc)return 14}return 2}function In(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Mo(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")_d(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case xr:return tr(n.children,i,s,t);case Xc:o=8,i|=8;break;case ku:return e=mt(12,n,t,i|2),e.elementType=ku,e.lanes=s,e;case Ou:return e=mt(13,n,t,i),e.elementType=Ou,e.lanes=s,e;case Ru:return e=mt(19,n,t,i),e.elementType=Ru,e.lanes=s,e;case u1:return Wa(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case a1:o=10;break e;case l1:o=9;break e;case Gc:o=11;break e;case Yc:o=14;break e;case gn:o=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=mt(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function tr(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function Wa(e,t,n,r){return e=mt(22,e,r,t),e.elementType=u1,e.lanes=n,e.stateNode={isHidden:!1},e}function Zl(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function Xl(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function SS(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nl(0),this.expirationTimes=Nl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Id(e,t,n,r,i,s,o,a,l){return e=new SS(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=mt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},gd(s),e}function bS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function t0(e){if(!e)return Mn;e=e._reactInternals;e:{if(dr(e)!==e||e.tag!==1)throw Error(_(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(We(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(_(171))}if(e.tag===1){var n=e.type;if(We(n))return eg(e,n,t)}return t}function n0(e,t,n,r,i,s,o,a,l){return e=Id(n,r,!0,e,i,s,o,a,l),e.context=t0(null),n=e.current,r=Ie(),i=_n(n),s=rn(r,i),s.callback=t??null,Nn(n,s,i),e.current.lanes=i,_s(e,i,r),Ke(e,r),e}function Ka(e,t,n,r){var i=t.current,s=Ie(),o=_n(i);return n=t0(n),t.context===null?t.context=n:t.pendingContext=n,t=rn(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Nn(i,t,o),e!==null&&(Tt(e,i,o,s),No(e,i,o)),o}function Ca(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ad(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function ES(){return null}var r0=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ld(e){this._internalRoot=e}Za.prototype.render=Ld.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(_(409));Ka(e,t,null,null)};Za.prototype.unmount=Ld.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ar(function(){Ka(null,e,null,null)}),t[on]=null}};function Za(e){this._internalRoot=e}Za.prototype.unstable_scheduleHydration=function(e){if(e){var t=I1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<yn.length&&t!==0&&t<yn[n].priority;n++);yn.splice(n,0,e),n===0&&L1(e)}};function Md(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xa(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hp(){}function CS(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Ca(o);s.call(u)}}var o=n0(t,r,e,0,null,!1,!1,"",hp);return e._reactRootContainer=o,e[on]=o.current,as(e.nodeType===8?e.parentNode:e),ar(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=Ca(l);a.call(u)}}var l=Id(e,0,!1,null,null,!1,!1,"",hp);return e._reactRootContainer=l,e[on]=l.current,as(e.nodeType===8?e.parentNode:e),ar(function(){Ka(t,l,n,r)}),l}function Ga(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Ca(o);a.call(l)}}Ka(t,o,e,i)}else o=CS(n,t,e,i,r);return Ca(o)}T1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Oi(t.pendingLanes);n!==0&&(td(t,n|1),Ke(t,ce()),!(X&6)&&(Qr=ce()+500,$n()))}break;case 13:ar(function(){var r=an(e,1);if(r!==null){var i=Ie();Tt(r,e,1,i)}}),Ad(e,1)}};nd=function(e){if(e.tag===13){var t=an(e,134217728);if(t!==null){var n=Ie();Tt(t,e,134217728,n)}Ad(e,134217728)}};_1=function(e){if(e.tag===13){var t=_n(e),n=an(e,t);if(n!==null){var r=Ie();Tt(n,e,t,r)}Ad(e,t)}};I1=function(){return Y};A1=function(e,t){var n=Y;try{return Y=e,t()}finally{Y=n}};Du=function(e,t,n){switch(t){case"input":if(Nu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Ba(r);if(!i)throw Error(_(90));d1(r),Nu(r,i)}}}break;case"textarea":h1(e,n);break;case"select":t=n.value,t!=null&&_r(e,!!n.multiple,t,!1)}};x1=jd;S1=ar;var kS={usingClientEntryPoint:!1,Events:[As,Cr,Ba,y1,w1,jd]},gi={findFiberByHostInstance:Xn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},OS={bundleType:gi.bundleType,version:gi.version,rendererPackageName:gi.rendererPackageName,rendererConfig:gi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=C1(e),e===null?null:e.stateNode},findFiberByHostInstance:gi.findFiberByHostInstance||ES,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var po=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!po.isDisabled&&po.supportsFiber)try{Da=po.inject(OS),Vt=po}catch{}}ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kS;ot.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Md(t))throw Error(_(200));return bS(e,t,null,n)};ot.createRoot=function(e,t){if(!Md(e))throw Error(_(299));var n=!1,r="",i=r0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Id(e,1,!1,null,null,n,!1,r,i),e[on]=t.current,as(e.nodeType===8?e.parentNode:e),new Ld(t)};ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(_(188)):(e=Object.keys(e).join(","),Error(_(268,e)));return e=C1(t),e=e===null?null:e.stateNode,e};ot.flushSync=function(e){return ar(e)};ot.hydrate=function(e,t,n){if(!Xa(t))throw Error(_(200));return Ga(null,e,t,!0,n)};ot.hydrateRoot=function(e,t,n){if(!Md(e))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=r0;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=n0(t,null,e,1,n??null,i,!1,s,o),e[on]=t.current,as(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Za(t)};ot.render=function(e,t,n){if(!Xa(t))throw Error(_(200));return Ga(null,e,t,!1,n)};ot.unmountComponentAtNode=function(e){if(!Xa(e))throw Error(_(40));return e._reactRootContainer?(ar(function(){Ga(null,null,e,!1,function(){e._reactRootContainer=null,e[on]=null})}),!0):!1};ot.unstable_batchedUpdates=jd;ot.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xa(n))throw Error(_(200));if(e==null||e._reactInternals===void 0)throw Error(_(38));return Ga(e,t,n,!1,r)};ot.version="18.2.0-next-9e3b772b8-20220608";function i0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i0)}catch(e){console.error(e)}}i0(),n1.exports=ot;var Ms=n1.exports,s0={exports:{}},o0={};/**
41
41
  * @license React
42
42
  * use-sync-external-store-shim.production.min.js
43
43
  *
@@ -45,7 +45,7 @@ Error generating stack: `+s.message+`
45
45
  *
46
46
  * This source code is licensed under the MIT license found in the
47
47
  * LICENSE file in the root directory of this source tree.
48
- */var Qr=b;function RS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var PS=typeof Object.is=="function"?Object.is:RS,jS=Qr.useState,NS=Qr.useEffect,TS=Qr.useLayoutEffect,_S=Qr.useDebugValue;function IS(e,t){var n=t(),r=jS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return TS(function(){i.value=n,i.getSnapshot=t,Gl(i)&&s({inst:i})},[e,n,t]),NS(function(){return Gl(i)&&s({inst:i}),e(function(){Gl(i)&&s({inst:i})})},[e]),_S(n),n}function Gl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!PS(e,n)}catch{return!0}}function AS(e,t){return t()}var LS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?AS:IS;o0.useSyncExternalStore=Qr.useSyncExternalStore!==void 0?Qr.useSyncExternalStore:LS;s0.exports=o0;var a0=s0.exports;const l0=a0.useSyncExternalStore,pp=b.createContext(void 0),u0=b.createContext(!1);function c0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=pp),window.ReactQueryClientContext):pp)}const lt=({context:e}={})=>{const t=b.useContext(c0(e,b.useContext(u0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MS=({client:e,children:t,context:n,contextSharing:r=!1})=>{b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=c0(n,r);return b.createElement(u0.Provider,{value:!n&&r},b.createElement(i.Provider,{value:e},t))},d0=b.createContext(!1),DS=()=>b.useContext(d0);d0.Provider;function FS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $S=b.createContext(FS()),zS=()=>b.useContext($S);function f0(e,t){return typeof e=="function"?e(...t):!!e}const BS=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},US=e=>{b.useEffect(()=>{e.clearReset()},[e])},VS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&f0(n,[e.error,r]),HS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},qS=(e,t)=>e.isLoading&&e.isFetching&&!t,QS=(e,t,n)=>(e==null?void 0:e.suspense)&&qS(t,n),WS=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function h0(e,t){const n=lt({context:e.context}),r=DS(),i=zS(),s=n.defaultQueryOptions(e);s._optimisticResults=r?"isRestoring":"optimistic",s.onError&&(s.onError=ue.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=ue.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=ue.batchCalls(s.onSettled)),HS(s),BS(s,i),US(i);const[o]=b.useState(()=>new t(n,s)),a=o.getOptimisticResult(s);if(l0(b.useCallback(l=>{const u=r?()=>{}:o.subscribe(ue.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),b.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),QS(s,a,r))throw WS(s,o,i);if(VS({result:a,errorResetBoundary:i,useErrorBoundary:s.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return s.notifyOnChangeProps?a:o.trackResult(a)}function Dd(e,t,n){const r=vr(e,t,n);return h0(r,t1)}function dn(e,t,n){const r=aw(e,t,n),i=lt({context:r.context}),[s]=b.useState(()=>new Ew(i,r));b.useEffect(()=>{s.setOptions(r)},[s,r]);const o=l0(b.useCallback(l=>s.subscribe(ue.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=b.useCallback((l,u)=>{s.mutate(l,u).catch(KS)},[s]);if(o.error&&f0(s.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function KS(){}function ZS(e,t,n){const r=vr(e,t,n);return h0(r,bw)}function XS(){return Dd({queryKey:["session"],queryFn:async()=>await G.session().getSession(),suspense:!0})}function p0({appCode:e}){return Dd({queryKey:["conf"],queryFn:async()=>await G.conf().getConf(e),suspense:!0})}const m0=b.createContext(null);function GS({children:e,params:t}){const n=t.app,r=XS(),i=p0({appCode:n}),s=(i==null?void 0:i.isSuccess)&&(r==null?void 0:r.isSuccess);b.useEffect(()=>{var a,l;(l=document.querySelector("html"))==null||l.setAttribute("lang",((a=r==null?void 0:r.data)==null?void 0:a.currentLanguage)||"fr")},[r==null?void 0:r.data]);const o=b.useMemo(()=>{var a,l,u,c,d,h;return{appCode:n,applications:(a=i==null?void 0:i.data)==null?void 0:a.applications,confQuery:i,currentApp:(l=i==null?void 0:i.data)==null?void 0:l.currentApp,currentLanguage:(u=r==null?void 0:r.data)==null?void 0:u.currentLanguage,init:s,sessionQuery:r,user:(c=r==null?void 0:r.data)==null?void 0:c.user,userDescription:(d=r==null?void 0:r.data)==null?void 0:d.userDescription,userProfile:(h=r==null?void 0:r.data)==null?void 0:h.userProfile}},[n,i,s,r]);return f.jsx(m0.Provider,{value:o,children:e})}function St(){const e=b.useContext(m0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function YS(){var r;const{sessionQuery:e}=St(),t=new Set;return(r=e==null?void 0:e.data)==null?void 0:r.bookmarkedApps.filter(i=>{const s=t.has(i.displayName);return t.add(i.displayName),!s})}function $i(e){const[t,n]=b.useState();return b.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await G.rights().sessionHasWorkflowRight(e):await G.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}function JS(){const e=typeof document<"u",[t,n]=b.useState(()=>document.title);return b.useEffect(()=>{e&&n(document.title)},[e]),t}function g0(){const[e,t]=b.useState(!1),n=b.useRef(null),r=()=>{t(!0)},i=()=>{t(!1)};return b.useEffect(()=>{const s=n.current;if(s)return s.addEventListener("mouseover",r),s.addEventListener("mouseout",i),()=>{s.removeEventListener("mouseover",r),s.removeEventListener("mouseout",i)}},[n]),[n,e]}function e4({user:e,avatar:t}){const{t:n}=xe(),r=JS(),[i,s]=b.useState(!0),[o,a]=g0(),l=b.useId(),u=b.useId(),c=t,d=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.username}),g=YS(),p=$i("net.atos.entng.community.controllers.CommunityController|view"),y=$i("org.entcore.conversation.controllers.ConversationController|view"),x=$i("fr.openent.searchengine.controllers.SearchEngineController|view"),m=b.useCallback(()=>{s(!i)},[i]),v=async()=>{await G.session().logout(),window.location.href="/auth/login"};return b.useMemo(()=>({title:r,bookmarkedApps:g,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:p,conversationWorflow:y,searchWorkflow:x,isCollapsed:i,toggleCollapsedNav:m,handleLogout:v}),[o,g,p,y,a,i,l,u,x,r,m,c,d,h])}function v0(){const e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function t(a){let l="";switch(l=(a==null?void 0:a.icon)!==void 0?a==null?void 0:a.icon.trim().toLowerCase():"placeholder",l&&l.length>0?l.endsWith("-large")&&(l=l.replace("-large","")):l=(a==null?void 0:a.displayName)!==void 0?a==null?void 0:a.displayName.trim().toLowerCase():"",l){case"admin.title":l="admin";break;case"banques des savoirs":l="banquesavoir";break;case"collaborativewall":l="collaborative-wall";break;case"communautés":l="community";break;case"directory.user":l="userbook";break;case"emploi du temps":l="edt";break;case"messagerie":l="conversation";break;case"news":l="actualites";break;case"homeworks":case"cahier de texte":l="cahier-de-texte";break;case"diary":case"cahier de texte 2d":l="cahier-textes";break}return l}function n(a){return a&&(a.startsWith("/")||a.startsWith("http://")||a.startsWith("https://"))}function r(a){const l=t(a);return l?`color-app-${l}`:"color-app-placeholder"}function i(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function s(a){const l=t(a);return l?`bg-light-${l}`:"bg-light-placeholder"}function o(a){return e[a.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:i,getBackgroundLightIconClass:s,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Ya(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const y0=b.createContext(null);function t4({children:e}){var i;const{appCode:t}=St(),n=p0({appCode:t});b.useEffect(()=>{var u,c,d,h,g,p,y,x,m;const s=document.getElementById("favicon");s.href=`${(c=(u=n==null?void 0:n.data)==null?void 0:u.theme)==null?void 0:c.basePath}/img/illustrations/favicon.ico`;const o=(g=(h=(d=n==null?void 0:n.data)==null?void 0:d.theme)==null?void 0:h.bootstrapVersion)==null?void 0:g.split("-"),a=o?o[o.length-1]:void 0;[{data:"data-skin",value:(y=(p=n==null?void 0:n.data)==null?void 0:p.theme)==null?void 0:y.skinName},{data:"data-theme",value:(m=(x=n==null?void 0:n.data)==null?void 0:x.theme)==null?void 0:m.themeName},{data:"data-product",value:a}].forEach(v=>{var w;return(w=document.querySelector("html"))==null?void 0:w.setAttribute(v.data,v.value)})},[n==null?void 0:n.data]);const r=b.useMemo(()=>{var s;return{theme:(s=n==null?void 0:n.data)==null?void 0:s.theme}},[(i=n==null?void 0:n.data)==null?void 0:i.theme]);return f.jsx(y0.Provider,{value:r,children:e})}function Fd(){const e=b.useContext(y0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function $d(){const{user:e,userDescription:t,userProfile:n}=St(),{theme:r}=Fd();function i(){let s=t==null?void 0:t.picture;return(!s||s==="no-avatar.jpg"||s==="no-avatar.svg")&&(s=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),s}return{user:{...e,type:n},avatar:i(),userDescription:t}}function n4(){const[e,t]=b.useState("pending"),{currentApp:n}=St();b.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await G.analytics().trackPageLoad(window.location.pathname,n),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(i){t(`[Xiti] Error Tracking Page Load: ${i}`)}};return{xitiStatus:e}}const mp=["mousedown","touchstart"];function r4(e,t,n){const r=b.useRef();return b.useEffect(()=>{const i=s=>{const{target:o}=s??{};if(Array.isArray(n)){const a=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!s.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||mp).forEach(s=>{document.addEventListener(s,i)}),()=>{(t||mp).forEach(s=>{document.removeEventListener(s,i)})}},[r,e,n,t]),r}let i4={data:""},s4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||i4,o4=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a4=/\/\*[^]*?\*\/| +/g,gp=/\n+/g,wn=(e,t)=>{let n="",r="",i="";for(let s in e){let o=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+o+";":r+=s[1]=="f"?wn(o,s):s+"{"+wn(o,s[1]=="k"?"":t)+"}":typeof o=="object"?r+=wn(o,t?t.replace(/([^,])+/g,a=>s.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):o!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=wn.p?wn.p(s,o):s+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Zt={},w0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+w0(e[n]);return t}return e},l4=(e,t,n,r,i)=>{let s=w0(e),o=Zt[s]||(Zt[s]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(s));if(!Zt[o]){let l=s!==e?e:(u=>{let c,d,h=[{}];for(;c=o4.exec(u.replace(a4,""));)c[4]?h.shift():c[3]?(d=c[3].replace(gp," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(gp," ").trim();return h[0]})(e);Zt[o]=wn(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Zt.g?Zt.g:null;return n&&(Zt.g=Zt[o]),((l,u,c,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Zt[o],t,r,a),o},u4=(e,t,n)=>e.reduce((r,i,s)=>{let o=t[s];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":wn(a,""):a===!1?"":a}return r+i+(o??"")},"");function Ja(e){let t=this||{},n=e.call?e(t.p):e;return l4(n.unshift?n.raw?u4(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,s4(t.target),t.g,t.o,t.k)}let x0,gc,vc;Ja.bind({g:1});let ln=Ja.bind({k:1});function c4(e,t,n,r){wn.p=t,x0=e,gc=n,vc=r}function $n(e,t){let n=this||{};return function(){let r=arguments;function i(s,o){let a=Object.assign({},s),l=a.className||i.className;n.p=Object.assign({theme:gc&&gc()},a),n.o=/ *go\d+/.test(l),a.className=Ja.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),vc&&u[0]&&vc(a),x0(u,a)}return t?t(i):i}}var d4=e=>typeof e=="function",ka=(e,t)=>d4(e)?e(t):e,f4=(()=>{let e=0;return()=>(++e).toString()})(),S0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),h4=20,Do=new Map,p4=1e3,vp=e=>{if(Do.has(e))return;let t=setTimeout(()=>{Do.delete(e),dr({type:4,toastId:e})},p4);Do.set(e,t)},m4=e=>{let t=Do.get(e);t&&clearTimeout(t)},yc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,h4)};case 1:return t.toast.id&&m4(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?yc(e,{type:1,toast:n}):yc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?vp(r):e.toasts.forEach(s=>{vp(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},Fo=[],$o={toasts:[],pausedAt:void 0},dr=e=>{$o=yc($o,e),Fo.forEach(t=>{t($o)})},g4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},v4=(e={})=>{let[t,n]=b.useState($o);b.useEffect(()=>(Fo.push(n),()=>{let i=Fo.indexOf(n);i>-1&&Fo.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var s,o;return{...e,...e[i.type],...i,duration:i.duration||((s=e[i.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||g4[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},y4=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||f4()}),Ms=e=>(t,n)=>{let r=y4(t,e,n);return dr({type:2,toast:r}),r.id},nt=(e,t)=>Ms("blank")(e,t);nt.error=Ms("error");nt.success=Ms("success");nt.loading=Ms("loading");nt.custom=Ms("custom");nt.dismiss=e=>{dr({type:3,toastId:e})};nt.remove=e=>dr({type:4,toastId:e});nt.promise=(e,t,n)=>{let r=nt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(nt.success(ka(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{nt.error(ka(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var w4=(e,t)=>{dr({type:1,toast:{id:e,height:t}})},x4=()=>{dr({type:5,time:Date.now()})},S4=e=>{let{toasts:t,pausedAt:n}=v4(e);b.useEffect(()=>{if(n)return;let s=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&nt.dismiss(a.id);return}return setTimeout(()=>nt.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=b.useCallback(()=>{n&&dr({type:6,time:Date.now()})},[n]),i=b.useCallback((s,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),d=c.findIndex(g=>g.id===s.id),h=c.filter((g,p)=>p<d&&g.visible).length;return c.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,p)=>g+(p.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:w4,startPause:x4,endPause:r,calculateOffset:i}}},b4=ln`
48
+ */var Wr=b;function RS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var PS=typeof Object.is=="function"?Object.is:RS,jS=Wr.useState,NS=Wr.useEffect,TS=Wr.useLayoutEffect,_S=Wr.useDebugValue;function IS(e,t){var n=t(),r=jS({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return TS(function(){i.value=n,i.getSnapshot=t,Gl(i)&&s({inst:i})},[e,n,t]),NS(function(){return Gl(i)&&s({inst:i}),e(function(){Gl(i)&&s({inst:i})})},[e]),_S(n),n}function Gl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!PS(e,n)}catch{return!0}}function AS(e,t){return t()}var LS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?AS:IS;o0.useSyncExternalStore=Wr.useSyncExternalStore!==void 0?Wr.useSyncExternalStore:LS;s0.exports=o0;var a0=s0.exports;const l0=a0.useSyncExternalStore,pp=b.createContext(void 0),u0=b.createContext(!1);function c0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=pp),window.ReactQueryClientContext):pp)}const lt=({context:e}={})=>{const t=b.useContext(c0(e,b.useContext(u0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MS=({client:e,children:t,context:n,contextSharing:r=!1})=>{b.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=c0(n,r);return b.createElement(u0.Provider,{value:!n&&r},b.createElement(i.Provider,{value:e},t))},d0=b.createContext(!1),DS=()=>b.useContext(d0);d0.Provider;function FS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const $S=b.createContext(FS()),zS=()=>b.useContext($S);function f0(e,t){return typeof e=="function"?e(...t):!!e}const BS=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},US=e=>{b.useEffect(()=>{e.clearReset()},[e])},VS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&f0(n,[e.error,r]),HS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},qS=(e,t)=>e.isLoading&&e.isFetching&&!t,QS=(e,t,n)=>(e==null?void 0:e.suspense)&&qS(t,n),WS=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function h0(e,t){const n=lt({context:e.context}),r=DS(),i=zS(),s=n.defaultQueryOptions(e);s._optimisticResults=r?"isRestoring":"optimistic",s.onError&&(s.onError=ue.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=ue.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=ue.batchCalls(s.onSettled)),HS(s),BS(s,i),US(i);const[o]=b.useState(()=>new t(n,s)),a=o.getOptimisticResult(s);if(l0(b.useCallback(l=>{const u=r?()=>{}:o.subscribe(ue.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),b.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),QS(s,a,r))throw WS(s,o,i);if(VS({result:a,errorResetBoundary:i,useErrorBoundary:s.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return s.notifyOnChangeProps?a:o.trackResult(a)}function Dd(e,t,n){const r=yr(e,t,n);return h0(r,t1)}function fn(e,t,n){const r=aw(e,t,n),i=lt({context:r.context}),[s]=b.useState(()=>new Ew(i,r));b.useEffect(()=>{s.setOptions(r)},[s,r]);const o=l0(b.useCallback(l=>s.subscribe(ue.batchCalls(l)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=b.useCallback((l,u)=>{s.mutate(l,u).catch(KS)},[s]);if(o.error&&f0(s.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function KS(){}function ZS(e,t,n){const r=yr(e,t,n);return h0(r,bw)}function XS(){return Dd({queryKey:["session"],queryFn:async()=>await G.session().getSession(),suspense:!0})}function p0({appCode:e}){return Dd({queryKey:["conf"],queryFn:async()=>await G.conf().getConf(e),suspense:!0})}const m0=b.createContext(null);function GS({children:e,params:t}){const n=t.app,r=XS(),i=p0({appCode:n}),s=(i==null?void 0:i.isSuccess)&&(r==null?void 0:r.isSuccess);b.useEffect(()=>{var a,l;(l=document.querySelector("html"))==null||l.setAttribute("lang",((a=r==null?void 0:r.data)==null?void 0:a.currentLanguage)||"fr")},[r==null?void 0:r.data]);const o=b.useMemo(()=>{var a,l,u,c,d,h;return{appCode:n,applications:(a=i==null?void 0:i.data)==null?void 0:a.applications,confQuery:i,currentApp:(l=i==null?void 0:i.data)==null?void 0:l.currentApp,currentLanguage:(u=r==null?void 0:r.data)==null?void 0:u.currentLanguage,init:s,sessionQuery:r,user:(c=r==null?void 0:r.data)==null?void 0:c.user,userDescription:(d=r==null?void 0:r.data)==null?void 0:d.userDescription,userProfile:(h=r==null?void 0:r.data)==null?void 0:h.userProfile}},[n,i,s,r]);return f.jsx(m0.Provider,{value:o,children:e})}function bt(){const e=b.useContext(m0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function YS(){var r;const{sessionQuery:e}=bt(),t=new Set;return(r=e==null?void 0:e.data)==null?void 0:r.bookmarkedApps.filter(i=>{const s=t.has(i.displayName);return t.add(i.displayName),!s})}function zi(e){const[t,n]=b.useState();return b.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await G.rights().sessionHasWorkflowRight(e):await G.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}function JS(){const e=typeof document<"u",[t,n]=b.useState(()=>document.title);return b.useEffect(()=>{e&&n(document.title)},[e]),t}function g0(){const[e,t]=b.useState(!1),n=b.useRef(null),r=()=>{t(!0)},i=()=>{t(!1)};return b.useEffect(()=>{const s=n.current;if(s)return s.addEventListener("mouseover",r),s.addEventListener("mouseout",i),()=>{s.removeEventListener("mouseover",r),s.removeEventListener("mouseout",i)}},[n]),[n,e]}function e4({user:e,avatar:t}){const{t:n}=xe(),r=JS(),[i,s]=b.useState(!0),[o,a]=g0(),l=b.useId(),u=b.useId(),c=t,d=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.username}),g=YS(),p=zi("net.atos.entng.community.controllers.CommunityController|view"),y=zi("org.entcore.conversation.controllers.ConversationController|view"),x=zi("fr.openent.searchengine.controllers.SearchEngineController|view"),m=b.useCallback(()=>{s(!i)},[i]),v=async()=>{await G.session().logout(),window.location.href="/auth/login"};return b.useMemo(()=>({title:r,bookmarkedApps:g,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:p,conversationWorflow:y,searchWorkflow:x,isCollapsed:i,toggleCollapsedNav:m,handleLogout:v}),[o,g,p,y,a,i,l,u,x,r,m,c,d,h])}function v0(){const e={"last-infos-widget":"ic-widget-actualites",birthday:"ic-star","calendar-widget":"ic-widget-calendar","carnet-de-bord":"ic-widget-carnet-de-bord","record-me":"ic-widget-microphone",mood:"ic-star","my-apps":"ic-widget-apps",notes:"ic-widget-notes","rss-widget":"ic-widget-rss","bookmark-widget":"ic-widget-signets",qwant:"ic-widget-qwant","qwant-junior":"ic-widget-qwant","agenda-widget":"ic-widget-agenda","cursus-widget":"ic-widget-aide-devoirs","maxicours-widget":"ic-widget-maxicours","school-widget":"ic-widget-schoolbook","universalis-widget":"ic-widget-universalis","briefme-widget":"ic-widget-briefme"};function t(a){let l="";switch(l=(a==null?void 0:a.icon)!==void 0?a==null?void 0:a.icon.trim().toLowerCase():"placeholder",l&&l.length>0?l.endsWith("-large")&&(l=l.replace("-large","")):l=(a==null?void 0:a.displayName)!==void 0?a==null?void 0:a.displayName.trim().toLowerCase():"",l){case"admin.title":l="admin";break;case"banques des savoirs":l="banquesavoir";break;case"collaborativewall":l="collaborative-wall";break;case"communautés":l="community";break;case"directory.user":l="userbook";break;case"emploi du temps":l="edt";break;case"messagerie":l="conversation";break;case"news":l="actualites";break;case"homeworks":case"cahier de texte":l="cahier-de-texte";break;case"diary":case"cahier de texte 2d":l="cahier-textes";break}return l}function n(a){return a&&(a.startsWith("/")||a.startsWith("http://")||a.startsWith("https://"))}function r(a){const l=t(a);return l?`color-app-${l}`:"color-app-placeholder"}function i(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function s(a){const l=t(a);return l?`bg-light-${l}`:"bg-light-placeholder"}function o(a){return e[a.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:i,getBackgroundLightIconClass:s,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Ya(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const y0=b.createContext(null);function t4({children:e}){var i;const{appCode:t}=bt(),n=p0({appCode:t});b.useEffect(()=>{var u,c,d,h,g,p,y,x,m;const s=document.getElementById("favicon");s.href=`${(c=(u=n==null?void 0:n.data)==null?void 0:u.theme)==null?void 0:c.basePath}/img/illustrations/favicon.ico`;const o=(g=(h=(d=n==null?void 0:n.data)==null?void 0:d.theme)==null?void 0:h.bootstrapVersion)==null?void 0:g.split("-"),a=o?o[o.length-1]:void 0;[{data:"data-skin",value:(y=(p=n==null?void 0:n.data)==null?void 0:p.theme)==null?void 0:y.skinName},{data:"data-theme",value:(m=(x=n==null?void 0:n.data)==null?void 0:x.theme)==null?void 0:m.themeName},{data:"data-product",value:a}].forEach(v=>{var w;return(w=document.querySelector("html"))==null?void 0:w.setAttribute(v.data,v.value)})},[n==null?void 0:n.data]);const r=b.useMemo(()=>{var s;return{theme:(s=n==null?void 0:n.data)==null?void 0:s.theme}},[(i=n==null?void 0:n.data)==null?void 0:i.theme]);return f.jsx(y0.Provider,{value:r,children:e})}function Fd(){const e=b.useContext(y0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function $d(){const{user:e,userDescription:t,userProfile:n}=bt(),{theme:r}=Fd();function i(){let s=t==null?void 0:t.picture;return(!s||s==="no-avatar.jpg"||s==="no-avatar.svg")&&(s=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),s}return{user:{...e,type:n},avatar:i(),userDescription:t}}function n4(){const[e,t]=b.useState("pending"),{currentApp:n}=bt();b.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await G.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(i){console.error("[Xiti] Error Tracking Page Load",i),t(`[Xiti] Error Tracking Page Load: ${i}`)}};return{xitiStatus:e}}const mp=["mousedown","touchstart"];function r4(e,t,n){const r=b.useRef();return b.useEffect(()=>{const i=s=>{const{target:o}=s??{};if(Array.isArray(n)){const a=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!s.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||mp).forEach(s=>{document.addEventListener(s,i)}),()=>{(t||mp).forEach(s=>{document.removeEventListener(s,i)})}},[r,e,n,t]),r}let i4={data:""},s4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||i4,o4=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a4=/\/\*[^]*?\*\/| +/g,gp=/\n+/g,xn=(e,t)=>{let n="",r="",i="";for(let s in e){let o=e[s];s[0]=="@"?s[1]=="i"?n=s+" "+o+";":r+=s[1]=="f"?xn(o,s):s+"{"+xn(o,s[1]=="k"?"":t)+"}":typeof o=="object"?r+=xn(o,t?t.replace(/([^,])+/g,a=>s.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):s):o!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=xn.p?xn.p(s,o):s+":"+o+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Xt={},w0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+w0(e[n]);return t}return e},l4=(e,t,n,r,i)=>{let s=w0(e),o=Xt[s]||(Xt[s]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(s));if(!Xt[o]){let l=s!==e?e:(u=>{let c,d,h=[{}];for(;c=o4.exec(u.replace(a4,""));)c[4]?h.shift():c[3]?(d=c[3].replace(gp," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(gp," ").trim();return h[0]})(e);Xt[o]=xn(i?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Xt.g?Xt.g:null;return n&&(Xt.g=Xt[o]),((l,u,c,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Xt[o],t,r,a),o},u4=(e,t,n)=>e.reduce((r,i,s)=>{let o=t[s];if(o&&o.call){let a=o(n),l=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=l?"."+l:a&&typeof a=="object"?a.props?"":xn(a,""):a===!1?"":a}return r+i+(o??"")},"");function Ja(e){let t=this||{},n=e.call?e(t.p):e;return l4(n.unshift?n.raw?u4(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,s4(t.target),t.g,t.o,t.k)}let x0,gc,vc;Ja.bind({g:1});let un=Ja.bind({k:1});function c4(e,t,n,r){xn.p=t,x0=e,gc=n,vc=r}function zn(e,t){let n=this||{};return function(){let r=arguments;function i(s,o){let a=Object.assign({},s),l=a.className||i.className;n.p=Object.assign({theme:gc&&gc()},a),n.o=/ *go\d+/.test(l),a.className=Ja.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),vc&&u[0]&&vc(a),x0(u,a)}return t?t(i):i}}var d4=e=>typeof e=="function",ka=(e,t)=>d4(e)?e(t):e,f4=(()=>{let e=0;return()=>(++e).toString()})(),S0=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),h4=20,Do=new Map,p4=1e3,vp=e=>{if(Do.has(e))return;let t=setTimeout(()=>{Do.delete(e),fr({type:4,toastId:e})},p4);Do.set(e,t)},m4=e=>{let t=Do.get(e);t&&clearTimeout(t)},yc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,h4)};case 1:return t.toast.id&&m4(t.toast.id),{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:n}=t;return e.toasts.find(s=>s.id===n.id)?yc(e,{type:1,toast:n}):yc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?vp(r):e.toasts.forEach(s=>{vp(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},Fo=[],$o={toasts:[],pausedAt:void 0},fr=e=>{$o=yc($o,e),Fo.forEach(t=>{t($o)})},g4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},v4=(e={})=>{let[t,n]=b.useState($o);b.useEffect(()=>(Fo.push(n),()=>{let i=Fo.indexOf(n);i>-1&&Fo.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var s,o;return{...e,...e[i.type],...i,duration:i.duration||((s=e[i.type])==null?void 0:s.duration)||(e==null?void 0:e.duration)||g4[i.type],style:{...e.style,...(o=e[i.type])==null?void 0:o.style,...i.style}}});return{...t,toasts:r}},y4=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||f4()}),Ds=e=>(t,n)=>{let r=y4(t,e,n);return fr({type:2,toast:r}),r.id},nt=(e,t)=>Ds("blank")(e,t);nt.error=Ds("error");nt.success=Ds("success");nt.loading=Ds("loading");nt.custom=Ds("custom");nt.dismiss=e=>{fr({type:3,toastId:e})};nt.remove=e=>fr({type:4,toastId:e});nt.promise=(e,t,n)=>{let r=nt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(nt.success(ka(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{nt.error(ka(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var w4=(e,t)=>{fr({type:1,toast:{id:e,height:t}})},x4=()=>{fr({type:5,time:Date.now()})},S4=e=>{let{toasts:t,pausedAt:n}=v4(e);b.useEffect(()=>{if(n)return;let s=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(s-a.createdAt);if(l<0){a.visible&&nt.dismiss(a.id);return}return setTimeout(()=>nt.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=b.useCallback(()=>{n&&fr({type:6,time:Date.now()})},[n]),i=b.useCallback((s,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=t.filter(g=>(g.position||u)===(s.position||u)&&g.height),d=c.findIndex(g=>g.id===s.id),h=c.filter((g,p)=>p<d&&g.visible).length;return c.filter(g=>g.visible).slice(...a?[h+1]:[0,h]).reduce((g,p)=>g+(p.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:w4,startPause:x4,endPause:r,calculateOffset:i}}},b4=un`
49
49
  from {
50
50
  transform: scale(0) rotate(45deg);
51
51
  opacity: 0;
@@ -53,7 +53,7 @@ from {
53
53
  to {
54
54
  transform: scale(1) rotate(45deg);
55
55
  opacity: 1;
56
- }`,E4=ln`
56
+ }`,E4=un`
57
57
  from {
58
58
  transform: scale(0);
59
59
  opacity: 0;
@@ -61,7 +61,7 @@ from {
61
61
  to {
62
62
  transform: scale(1);
63
63
  opacity: 1;
64
- }`,C4=ln`
64
+ }`,C4=un`
65
65
  from {
66
66
  transform: scale(0) rotate(90deg);
67
67
  opacity: 0;
@@ -69,7 +69,7 @@ from {
69
69
  to {
70
70
  transform: scale(1) rotate(90deg);
71
71
  opacity: 1;
72
- }`,k4=$n("div")`
72
+ }`,k4=zn("div")`
73
73
  width: 20px;
74
74
  opacity: 0;
75
75
  height: 20px;
@@ -102,14 +102,14 @@ to {
102
102
  animation-delay: 180ms;
103
103
  transform: rotate(90deg);
104
104
  }
105
- `,O4=ln`
105
+ `,O4=un`
106
106
  from {
107
107
  transform: rotate(0deg);
108
108
  }
109
109
  to {
110
110
  transform: rotate(360deg);
111
111
  }
112
- `,R4=$n("div")`
112
+ `,R4=zn("div")`
113
113
  width: 12px;
114
114
  height: 12px;
115
115
  box-sizing: border-box;
@@ -118,7 +118,7 @@ to {
118
118
  border-color: ${e=>e.secondary||"#e0e0e0"};
119
119
  border-right-color: ${e=>e.primary||"#616161"};
120
120
  animation: ${O4} 1s linear infinite;
121
- `,P4=ln`
121
+ `,P4=un`
122
122
  from {
123
123
  transform: scale(0) rotate(45deg);
124
124
  opacity: 0;
@@ -126,7 +126,7 @@ from {
126
126
  to {
127
127
  transform: scale(1) rotate(45deg);
128
128
  opacity: 1;
129
- }`,j4=ln`
129
+ }`,j4=un`
130
130
  0% {
131
131
  height: 0;
132
132
  width: 0;
@@ -140,7 +140,7 @@ to {
140
140
  100% {
141
141
  opacity: 1;
142
142
  height: 10px;
143
- }`,N4=$n("div")`
143
+ }`,N4=zn("div")`
144
144
  width: 20px;
145
145
  opacity: 0;
146
146
  height: 20px;
@@ -167,16 +167,16 @@ to {
167
167
  height: 10px;
168
168
  width: 6px;
169
169
  }
170
- `,T4=$n("div")`
170
+ `,T4=zn("div")`
171
171
  position: absolute;
172
- `,_4=$n("div")`
172
+ `,_4=zn("div")`
173
173
  position: relative;
174
174
  display: flex;
175
175
  justify-content: center;
176
176
  align-items: center;
177
177
  min-width: 20px;
178
178
  min-height: 20px;
179
- `,I4=ln`
179
+ `,I4=un`
180
180
  from {
181
181
  transform: scale(0.6);
182
182
  opacity: 0.4;
@@ -184,7 +184,7 @@ from {
184
184
  to {
185
185
  transform: scale(1);
186
186
  opacity: 1;
187
- }`,A4=$n("div")`
187
+ }`,A4=zn("div")`
188
188
  position: relative;
189
189
  transform: scale(0.6);
190
190
  opacity: 0.4;
@@ -197,7 +197,7 @@ to {
197
197
  `,D4=e=>`
198
198
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
199
199
  100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
200
- `,F4="0%{opacity:0;} 100%{opacity:1;}",$4="0%{opacity:1;} 100%{opacity:0;}",z4=$n("div")`
200
+ `,F4="0%{opacity:0;} 100%{opacity:1;}",$4="0%{opacity:1;} 100%{opacity:0;}",z4=zn("div")`
201
201
  display: flex;
202
202
  align-items: center;
203
203
  background: #fff;
@@ -209,21 +209,21 @@ to {
209
209
  pointer-events: auto;
210
210
  padding: 8px 10px;
211
211
  border-radius: 8px;
212
- `,B4=$n("div")`
212
+ `,B4=zn("div")`
213
213
  display: flex;
214
214
  justify-content: center;
215
215
  margin: 4px 10px;
216
216
  color: inherit;
217
217
  flex: 1 1 auto;
218
218
  white-space: pre-line;
219
- `,U4=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=S0()?[F4,$4]:[M4(n),D4(n)];return{animation:t?`${ln(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ln(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},V4=b.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?U4(e.position||t||"top-center",e.visible):{opacity:0},s=b.createElement(L4,{toast:e}),o=b.createElement(B4,{...e.ariaProps},ka(e.message,e));return b.createElement(z4,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:s,message:o}):b.createElement(b.Fragment,null,s,o))});c4(b.createElement);var H4=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let s=b.useCallback(o=>{if(o){let a=()=>{let l=o.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return b.createElement("div",{ref:s,className:t,style:n},i)},q4=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:S0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},Q4=Ja`
219
+ `,U4=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=S0()?[F4,$4]:[M4(n),D4(n)];return{animation:t?`${un(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${un(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},V4=b.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?U4(e.position||t||"top-center",e.visible):{opacity:0},s=b.createElement(L4,{toast:e}),o=b.createElement(B4,{...e.ariaProps},ka(e.message,e));return b.createElement(z4,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:s,message:o}):b.createElement(b.Fragment,null,s,o))});c4(b.createElement);var H4=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let s=b.useCallback(o=>{if(o){let a=()=>{let l=o.getBoundingClientRect().height;r(e,l)};a(),new MutationObserver(a).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return b.createElement("div",{ref:s,className:t,style:n},i)},q4=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:S0()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},Q4=Ja`
220
220
  z-index: 9999;
221
221
  > * {
222
222
  pointer-events: auto;
223
223
  }
224
- `,po=16,W4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:s,containerClassName:o})=>{let{toasts:a,handlers:l}=S4(n);return b.createElement("div",{style:{position:"fixed",zIndex:9999,top:po,left:po,right:po,bottom:po,pointerEvents:"none",...s},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=q4(c,d);return b.createElement(H4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Q4:"",style:h},u.type==="custom"?ka(u.message,u):i?i(u):b.createElement(V4,{toast:u,position:c}))}))},gi=nt;function At(e){return{hotToast:{success:(n,r)=>gi.custom(f.jsx(e,{type:"success",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),error:(n,r)=>gi.custom(f.jsx(e,{type:"danger",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),info:(n,r)=>gi.custom(f.jsx(e,{type:"info",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),warning:(n,r)=>gi.custom(f.jsx(e,{type:"warning",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),loading:gi.loading}}}function K4({src:e,placeholder:t}){const[n,r]=b.useState(e||t),i=b.useCallback(()=>{r(t)},[t]);return b.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:i}}function Z4(e,t){const n=b.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);b.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function X4(e=!1){const[t,n]=b.useState(e),r=b.useCallback(()=>{n(i=>!i)},[]);return[t,r]}function G4(e,t){const[n,r]=b.useState(e);return b.useEffect(()=>{const i=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(i)}},[e,t]),n}function Y4(){const e=b.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return b.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],i=n.querySelectorAll(t),s=e&&(i==null?void 0:i[i.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(s.focus(),a.preventDefault()):document.activeElement===s&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function J4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const b0=b.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));b0.displayName="ActionBar";const e3=b0,t3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1ZM11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]}),n3=t3,r3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})]}),i3=r3,s3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})]}),Ek=s3,o3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1H7zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12z"})]}),Ck=o3,a3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5ZM21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5ZM21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5Z",clipRule:"evenodd"})]}),l3=a3,u3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0Z",clipRule:"evenodd"})]}),kk=u3,c3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3H6.676Zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916ZM3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923V6.923Z",clipRule:"evenodd"})]}),Ok=c3,d3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675Zm7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864Zm-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227H6.318Zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955Zm4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0Z",clipRule:"evenodd"})]}),f3=d3,h3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879Zm-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465l9.5-9.5Z",clipRule:"evenodd"})]}),Rk=h3,p3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"})]}),m3=p3,g3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32Z",clipRule:"evenodd"})]}),Pk=g3,v3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",clipRule:"evenodd"})]}),y3=v3,w3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374H3.057ZM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5.557Z",clipRule:"evenodd"})]}),x3=w3,S3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",clipRule:"evenodd"})]}),jk=S3,b3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1ZM13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z",clipRule:"evenodd"})]}),E3=b3,C3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655Z",clipRule:"evenodd"})]}),k3=C3,O3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),Nk=O3,R3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4Z",clipRule:"evenodd"})]}),P3=R3,j3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z",clipRule:"evenodd"})]}),wc=j3,N3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141Z",clipRule:"evenodd"})]}),T3=N3,_3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),yp=_3,I3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117Z",clipRule:"evenodd"})]}),A3=I3,L3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4H5Zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2H7Zm1 12v6h8v-6H8Z",clipRule:"evenodd"})]}),Tk=L3,M3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z",clipRule:"evenodd"})]}),D3=M3,F3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219Z",clipRule:"evenodd"})]}),$3=F3,z3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:f.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272ZM15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036ZM1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974ZM9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),_k=z3;function E0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=E0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function K(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=E0(e))&&(r&&(r+=" "),r+=t);return r}const C0=b.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:i=!1,isToast:s=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=b.useState(!0),g=b.useRef(null),p=b.useCallback(()=>{h(!1),l==null||l()},[l]);b.useImperativeHandle(c,()=>({show:y,hide:p,...g.current})),b.useLayoutEffect(()=>{u==null||u(d)},[d,u]),b.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const y=()=>{h(!0)},x={success:{icon:f.jsx($3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(n3,{}),classModifier:"alert-warning"},info:{icon:f.jsx(E3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(m3,{}),classModifier:"alert-danger"}},m={"is-dismissible":i,"is-toast ":s},v=K("alert gap-12",x[e].classModifier,m,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:g,className:v,role:"alert",children:[x[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),i&&f.jsx("div",{className:"btn-close-container",children:f.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:p})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});C0.displayName="Alert";const Lt=C0,k0=b.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const i=K("d-flex p-16 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return f.jsxs("div",{ref:r,className:i,children:[e,t?f.jsx("div",{className:"d-flex align-items-center gap-8",children:t()}):null]})});k0.displayName="AppHeader";const B3=k0,O0=b.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:i,className:s,...o},a)=>{const[l]=Ya(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=K4({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},g={"object-fit-contain":i==="contain","object-fit-cover":i==="cover","object-fit-fill":i==="fill","object-fit-scale":i==="scale","object-fit-none":i==="none"},p=K({...h}),y=K({...g},s),x=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:p,children:x}):x});O0.displayName="Image";const R0=O0,P0=b.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},i)=>{const{isIconUrl:s,getIconCode:o}=v0(),[,a]=Ya(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",g={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},p={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},x=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",m=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=s(x),S=v||"placeholder",C=K("app-icon",{...g,...p,...y,[`bg-light-${S}`]:S&&!d,[`color-app-${S}`]:S});return w?f.jsx(R0,{src:x,alt:m,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:i,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${S}`})})})});P0.displayName="AppIcon";const xc=P0,j0=b.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:i,className:s,...o},a)=>{const[l]=Ya(),u=i||`${l}/avatar/no-avatar.svg`,y=K("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},s);return f.jsx("div",{ref:a,className:y,children:f.jsx(R0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});j0.displayName="Avatar";const wp=j0,N0=b.forwardRef(({children:e,className:t,...n},r)=>{const i=K("breadcrumb-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});N0.displayName="BreadcrumbItem";const Yl=N0,T0=b.forwardRef(({children:e,className:t},n)=>{const r=K("breadcrumb d-flex align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});T0.displayName="BreadcrumbList";const U3=T0,_0=b.forwardRef(({children:e,app:t,className:n},r)=>{const{t:i}=xe(),{getIconClass:s}=v0(),o=K("d-flex align-items-center mb-0",s(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":i("breadcrumb"),style:a,children:e})});_0.displayName="BreadcrumbNav";const V3=_0,I0=b.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:i="left",children:s,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(k3,{...o,"aria-label":"Loading"}),u},l=K("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!i||i==="left")&&a(),s,i==="right"&&a()]})});I0.displayName="Loading";const H3=I0,A0=b.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:i,loadingIcon:s,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const g=K("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":i,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:g,type:t,...d,children:i?f.jsx(H3,{isLoading:!0,loadingIcon:s,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});A0.displayName="Button";const ni=A0,L0=b.forwardRef(({icon:e,className:t,...n},r)=>{const i={...n,className:K("btn-icon",t)};return f.jsx(ni,{ref:r,...i,children:e})});L0.displayName="IconButton";const zd=L0,M0=b.forwardRef(({app:e,name:t},n)=>{const{t:r}=xe();return f.jsx(V3,{app:e,ref:n,children:f.jsx(U3,{className:"gap-12",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Yl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(zd,{variant:"ghost",color:"tertiary",icon:f.jsx(T3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(xc,{app:e,size:"40"})]})}),f.jsx(Yl,{className:"h3","aria-current":"page",children:f.jsx("h1",{className:"h3",children:t})})]}):f.jsxs(Yl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(xc,{app:e,size:"40"}),f.jsx("h1",{className:"h3",children:r(e==null?void 0:e.displayName)})]})})})});M0.displayName="Breadcrumb";const q3=M0,D0=b.forwardRef(({icon:e=f.jsx(D3,{}),onClick:t,...n},r)=>{const i=K("btn-search btn-sm");return f.jsx(zd,{ref:r,className:i,icon:e,...n,onClick:t})});D0.displayName="SearchButton";const F0=D0,Q3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"})]}),W3=Q3,K3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z"})]}),xp=K3,Z3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z"})]}),X3=Z3,G3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z"})]}),Sp=G3,Y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12ZM7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963ZM9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03Z",clipRule:"evenodd"})]}),J3=Y3,e5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5Zm0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.023v3.387l-11.511 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415Z"})]}),bp=e5,t5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),n5=t5,r5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M11.684 2C8.66 2 6.702 3.277 5.165 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6Zm-.38 14.588c-1.446 0-2.624 1.214-2.624 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706Z"})]}),i5=r5,s5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z",clipRule:"evenodd"})]}),o5=s5,a5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:f.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),l5=a5,u5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z"})]}),c5=u5,d5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),f5=d5;var Ep=function(t){return t.reduce(function(n,r){var i=r[0],s=r[1];return n[i]=s,n},{})},Cp=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,Ze="top",wt="bottom",xt="right",Xe="left",Bd="auto",Ds=[Ze,wt,xt,Xe],Wr="start",ms="end",h5="clippingParents",$0="viewport",vi="popper",p5="reference",kp=Ds.reduce(function(e,t){return e.concat([t+"-"+Wr,t+"-"+ms])},[]),z0=[].concat(Ds,[Bd]).reduce(function(e,t){return e.concat([t,t+"-"+Wr,t+"-"+ms])},[]),m5="beforeRead",g5="read",v5="afterRead",y5="beforeMain",w5="main",x5="afterMain",S5="beforeWrite",b5="write",E5="afterWrite",C5=[m5,g5,v5,y5,w5,x5,S5,b5,E5];function qt(e){return e?(e.nodeName||"").toLowerCase():null}function st(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ar(e){var t=st(e).Element;return e instanceof t||e instanceof Element}function gt(e){var t=st(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ud(e){if(typeof ShadowRoot>"u")return!1;var t=st(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!gt(s)||!qt(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function O5(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!gt(i)||!qt(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const R5={name:"applyStyles",enabled:!0,phase:"write",fn:k5,effect:O5,requires:["computeStyles"]};function Ht(e){return e.split("-")[0]}var tr=Math.max,Oa=Math.min,Kr=Math.round;function Sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B0(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function Zr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&gt(e)&&(i=e.offsetWidth>0&&Kr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Kr(r.height)/e.offsetHeight||1);var o=ar(e)?st(e):window,a=o.visualViewport,l=!B0()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/i,h=r.height/s;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function Vd(e){var t=Zr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function U0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ud(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function un(e){return st(e).getComputedStyle(e)}function P5(e){return["table","td","th"].indexOf(qt(e))>=0}function zn(e){return((ar(e)?e.ownerDocument:e.document)||window.document).documentElement}function el(e){return qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ud(e)?e.host:null)||zn(e)}function Op(e){return!gt(e)||un(e).position==="fixed"?null:e.offsetParent}function j5(e){var t=/firefox/i.test(Sc()),n=/Trident/i.test(Sc());if(n&&gt(e)){var r=un(e);if(r.position==="fixed")return null}var i=el(e);for(Ud(i)&&(i=i.host);gt(i)&&["html","body"].indexOf(qt(i))<0;){var s=un(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Fs(e){for(var t=st(e),n=Op(e);n&&P5(n)&&un(n).position==="static";)n=Op(n);return n&&(qt(n)==="html"||qt(n)==="body"&&un(n).position==="static")?t:n||j5(e)||t}function Hd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zi(e,t,n){return tr(e,Oa(t,n))}function N5(e,t,n){var r=zi(e,t,n);return r>n?n:r}function V0(){return{top:0,right:0,bottom:0,left:0}}function H0(e){return Object.assign({},V0(),e)}function q0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var T5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H0(typeof t!="number"?t:q0(t,Ds))};function _5(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=Ht(n.placement),l=Hd(a),u=[Xe,xt].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var d=T5(i.padding,n),h=Vd(s),g=l==="y"?Ze:Xe,p=l==="y"?wt:xt,y=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],x=o[l]-n.rects.reference[l],m=Fs(s),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=y/2-x/2,S=d[g],C=v-h[c]-d[p],k=v/2-h[c]/2+w,O=zi(S,k,C),R=l;n.modifiersData[r]=(t={},t[R]=O,t.centerOffset=O-k,t)}}function I5(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||U0(t.elements.popper,i)&&(t.elements.arrow=i))}const A5={name:"arrow",enabled:!0,phase:"main",fn:_5,effect:I5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xr(e){return e.split("-")[1]}var L5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M5(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Kr(n*i)/i||0,y:Kr(r*i)/i||0}}function Rp(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=o.x,g=h===void 0?0:h,p=o.y,y=p===void 0?0:p,x=typeof c=="function"?c({x:g,y}):{x:g,y};g=x.x,y=x.y;var m=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Xe,S=Ze,C=window;if(u){var k=Fs(n),O="clientHeight",R="clientWidth";if(k===st(n)&&(k=zn(n),un(k).position!=="static"&&a==="absolute"&&(O="scrollHeight",R="scrollWidth")),k=k,i===Ze||(i===Xe||i===xt)&&s===ms){S=wt;var I=d&&k===C&&C.visualViewport?C.visualViewport.height:k[O];y-=I-r.height,y*=l?1:-1}if(i===Xe||(i===Ze||i===wt)&&s===ms){w=xt;var A=d&&k===C&&C.visualViewport?C.visualViewport.width:k[R];g-=A-r.width,g*=l?1:-1}}var M=Object.assign({position:a},u&&L5),z=c===!0?M5({x:g,y},st(n)):{x:g,y};if(g=z.x,y=z.y,l){var B;return Object.assign({},M,(B={},B[S]=v?"0":"",B[w]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",B))}return Object.assign({},M,(t={},t[S]=v?y+"px":"",t[w]=m?g+"px":"",t.transform="",t))}function D5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:Ht(t.placement),variation:Xr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const F5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D5,data:{}};var mo={passive:!0};function $5(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=st(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,mo)}),a&&l.addEventListener("resize",n.update,mo),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,mo)}),a&&l.removeEventListener("resize",n.update,mo)}}const z5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$5,data:{}};var B5={left:"right",right:"left",bottom:"top",top:"bottom"};function zo(e){return e.replace(/left|right|bottom|top/g,function(t){return B5[t]})}var U5={start:"end",end:"start"};function Pp(e){return e.replace(/start|end/g,function(t){return U5[t]})}function qd(e){var t=st(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qd(e){return Zr(zn(e)).left+qd(e).scrollLeft}function V5(e,t){var n=st(e),r=zn(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var u=B0();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+Qd(e),y:l}}function H5(e){var t,n=zn(e),r=qd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=tr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=tr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Qd(e),l=-r.scrollTop;return un(i||n).direction==="rtl"&&(a+=tr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Wd(e){var t=un(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Q0(e){return["html","body","#document"].indexOf(qt(e))>=0?e.ownerDocument.body:gt(e)&&Wd(e)?e:Q0(el(e))}function Bi(e,t){var n;t===void 0&&(t=[]);var r=Q0(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=st(r),o=i?[s].concat(s.visualViewport||[],Wd(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Bi(el(o)))}function bc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q5(e,t){var n=Zr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jp(e,t,n){return t===$0?bc(V5(e,n)):ar(t)?q5(t,n):bc(H5(zn(e)))}function Q5(e){var t=Bi(el(e)),n=["absolute","fixed"].indexOf(un(e).position)>=0,r=n&&gt(e)?Fs(e):e;return ar(r)?t.filter(function(i){return ar(i)&&U0(i,r)&&qt(i)!=="body"}):[]}function W5(e,t,n,r){var i=t==="clippingParents"?Q5(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,u){var c=jp(e,u,r);return l.top=tr(c.top,l.top),l.right=Oa(c.right,l.right),l.bottom=Oa(c.bottom,l.bottom),l.left=tr(c.left,l.left),l},jp(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function W0(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ht(r):null,s=r?Xr(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Ze:l={x:o,y:t.y-n.height};break;case wt:l={x:o,y:t.y+t.height};break;case xt:l={x:t.x+t.width,y:a};break;case Xe:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?Hd(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Wr:l[u]=l[u]-(t[c]/2-n[c]/2);break;case ms:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function gs(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?h5:a,u=n.rootBoundary,c=u===void 0?$0:u,d=n.elementContext,h=d===void 0?vi:d,g=n.altBoundary,p=g===void 0?!1:g,y=n.padding,x=y===void 0?0:y,m=H0(typeof x!="number"?x:q0(x,Ds)),v=h===vi?p5:vi,w=e.rects.popper,S=e.elements[p?v:h],C=W5(ar(S)?S:S.contextElement||zn(e.elements.popper),l,c,o),k=Zr(e.elements.reference),O=W0({reference:k,element:w,strategy:"absolute",placement:i}),R=bc(Object.assign({},w,O)),I=h===vi?R:k,A={top:C.top-I.top+m.top,bottom:I.bottom-C.bottom+m.bottom,left:C.left-I.left+m.left,right:I.right-C.right+m.right},M=e.modifiersData.offset;if(h===vi&&M){var z=M[i];Object.keys(A).forEach(function(B){var E=[xt,wt].indexOf(B)>=0?1:-1,P=[Ze,wt].indexOf(B)>=0?"y":"x";A[B]+=z[P]*E})}return A}function K5(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?z0:l,c=Xr(r),d=c?a?kp:kp.filter(function(p){return Xr(p)===c}):Ds,h=d.filter(function(p){return u.indexOf(p)>=0});h.length===0&&(h=d);var g=h.reduce(function(p,y){return p[y]=gs(e,{placement:y,boundary:i,rootBoundary:s,padding:o})[Ht(y)],p},{});return Object.keys(g).sort(function(p,y){return g[p]-g[y]})}function Z5(e){if(Ht(e)===Bd)return[];var t=zo(e);return[Pp(e),t,Pp(t)]}function X5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,y=n.allowedAutoPlacements,x=t.options.placement,m=Ht(x),v=m===x,w=l||(v||!p?[zo(x)]:Z5(x)),S=[x].concat(w).reduce(function(he,J){return he.concat(Ht(J)===Bd?K5(t,{placement:J,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:y}):J)},[]),C=t.rects.reference,k=t.rects.popper,O=new Map,R=!0,I=S[0],A=0;A<S.length;A++){var M=S[A],z=Ht(M),B=Xr(M)===Wr,E=[Ze,wt].indexOf(z)>=0,P=E?"width":"height",L=gs(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),F=E?B?xt:Xe:B?wt:Ze;C[P]>k[P]&&(F=zo(F));var j=zo(F),N=[];if(s&&N.push(L[z]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(he){return he})){I=M,R=!1;break}O.set(M,N)}if(R)for(var $=p?3:1,W=function(J){var Z=S.find(function(ie){var ge=O.get(ie);if(ge)return ge.slice(0,J).every(function(Fe){return Fe})});if(Z)return I=Z,"break"},H=$;H>0;H--){var Ye=W(H);if(Ye==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const G5={name:"flip",enabled:!0,phase:"main",fn:X5,requiresIfExists:["offset"],data:{_skip:!1}};function Np(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tp(e){return[Ze,xt,wt,Xe].some(function(t){return e[t]>=0})}function Y5(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=gs(t,{elementContext:"reference"}),a=gs(t,{altBoundary:!0}),l=Np(o,r),u=Np(a,i,s),c=Tp(l),d=Tp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const J5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Y5};function eb(e,t,n){var r=Ht(e),i=[Xe,Ze].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Xe,xt].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function tb(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=z0.reduce(function(c,d){return c[d]=eb(d,t.rects,s),c},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const nb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tb};function rb(e){var t=e.state,n=e.name;t.modifiersData[n]=W0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ib={name:"popperOffsets",enabled:!0,phase:"read",fn:rb,data:{}};function sb(e){return e==="x"?"y":"x"}function ob(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,y=p===void 0?0:p,x=gs(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=Ht(t.placement),v=Xr(t.placement),w=!v,S=Hd(m),C=sb(S),k=t.modifiersData.popperOffsets,O=t.rects.reference,R=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(s){var B,E=S==="y"?Ze:Xe,P=S==="y"?wt:xt,L=S==="y"?"height":"width",F=k[S],j=F+x[E],N=F-x[P],$=g?-R[L]/2:0,W=v===Wr?O[L]:R[L],H=v===Wr?-R[L]:-O[L],Ye=t.elements.arrow,he=g&&Ye?Vd(Ye):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V0(),Z=J[E],ie=J[P],ge=zi(0,O[L],he[L]),Fe=w?O[L]/2-$-ge-Z-A.mainAxis:W-ge-Z-A.mainAxis,Mt=w?-O[L]/2+$+ge+ie+A.mainAxis:H+ge+ie+A.mainAxis,bl=t.elements.arrow&&Fs(t.elements.arrow),Ay=bl?S==="y"?bl.clientTop||0:bl.clientLeft||0:0,kf=(B=M==null?void 0:M[S])!=null?B:0,Ly=F+Fe-kf-Ay,My=F+Mt-kf,Of=zi(g?Oa(j,Ly):j,F,g?tr(N,My):N);k[S]=Of,z[S]=Of-F}if(a){var Rf,Dy=S==="x"?Ze:Xe,Fy=S==="x"?wt:xt,Hn=k[C],Ws=C==="y"?"height":"width",Pf=Hn+x[Dy],jf=Hn-x[Fy],El=[Ze,Xe].indexOf(m)!==-1,Nf=(Rf=M==null?void 0:M[C])!=null?Rf:0,Tf=El?Pf:Hn-O[Ws]-R[Ws]-Nf+A.altAxis,_f=El?Hn+O[Ws]+R[Ws]-Nf-A.altAxis:jf,If=g&&El?N5(Tf,Hn,_f):zi(g?Tf:Pf,Hn,g?_f:jf);k[C]=If,z[C]=If-Hn}t.modifiersData[r]=z}}const ab={name:"preventOverflow",enabled:!0,phase:"main",fn:ob,requiresIfExists:["offset"]};function lb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ub(e){return e===st(e)||!gt(e)?qd(e):lb(e)}function cb(e){var t=e.getBoundingClientRect(),n=Kr(t.width)/e.offsetWidth||1,r=Kr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function db(e,t,n){n===void 0&&(n=!1);var r=gt(t),i=gt(t)&&cb(t),s=zn(t),o=Zr(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((qt(t)!=="body"||Wd(s))&&(a=ub(t)),gt(t)?(l=Zr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Qd(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function fb(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function hb(e){var t=fb(e);return C5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function pb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mb(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _p={placement:"bottom",modifiers:[],strategy:"absolute"};function Ip(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?_p:i;return function(a,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_p,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,g={state:c,setOptions:function(m){var v=typeof m=="function"?m(c.options):m;y(),c.options=Object.assign({},s,c.options,v),c.scrollParents={reference:ar(a)?Bi(a):a.contextElement?Bi(a.contextElement):[],popper:Bi(l)};var w=hb(mb([].concat(r,c.options.modifiers)));return c.orderedModifiers=w.filter(function(S){return S.enabled}),p(),g.update()},forceUpdate:function(){if(!h){var m=c.elements,v=m.reference,w=m.popper;if(Ip(v,w)){c.rects={reference:db(v,Fs(w),c.options.strategy==="fixed"),popper:Vd(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var C=c.orderedModifiers[S],k=C.fn,O=C.options,R=O===void 0?{}:O,I=C.name;typeof k=="function"&&(c=k({state:c,options:R,name:I,instance:g})||c)}}}},update:pb(function(){return new Promise(function(x){g.forceUpdate(),x(c)})}),destroy:function(){y(),h=!0}};if(!Ip(a,l))return g;g.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function p(){c.orderedModifiers.forEach(function(x){var m=x.name,v=x.options,w=v===void 0?{}:v,S=x.effect;if(typeof S=="function"){var C=S({state:c,name:m,instance:g,options:w}),k=function(){};d.push(C||k)}})}function y(){d.forEach(function(x){return x()}),d=[]}return g}}var vb=[z5,ib,F5,R5,nb,G5,ab,A5,J5],yb=gb({defaultModifiers:vb}),wb=typeof Element<"u",xb=typeof Map=="function",Sb=typeof Set=="function",bb=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Bo(e[r],t[r]))return!1;return!0}var s;if(xb&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Bo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Sb&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(bb&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(wb&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Bo(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Eb=function(t,n){try{return Bo(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return!1;throw r}};const Cb=Ps(Eb);var kb=[],Ob=function(t,n,r){r===void 0&&(r={});var i=b.useRef(null),s={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||kb},o=b.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],l=o[1],u=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var p=g.state,y=Object.keys(p.elements);Ls.flushSync(function(){l({styles:Ep(y.map(function(x){return[x,p.styles[x]||{}]})),attributes:Ep(y.map(function(x){return[x,p.attributes[x]]}))})})},requires:["computeStyles"]}},[]),c=b.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Cb(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,u]),d=b.useRef();return Cp(function(){d.current&&d.current.setOptions(c)},[c]),Cp(function(){if(!(t==null||n==null)){var h=r.createPopper||yb,g=h(t,n,c);return d.current=g,function(){g.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Rb=Object.defineProperty,Pb=(e,t)=>{for(var n in t)Rb(e,n,{get:t[n],enumerable:!0})},It={};Pb(It,{assign:()=>Tb,colors:()=>In,createStringInterpolator:()=>ef,skipAnimation:()=>ev,to:()=>J0,willAdvance:()=>tf});var Kd=zs(),V=e=>$s(e,Kd),Zd=zs();V.write=e=>$s(e,Zd);var tl=zs();V.onStart=e=>$s(e,tl);var Xd=zs();V.onFrame=e=>$s(e,Xd);var Gd=zs();V.onFinish=e=>$s(e,Gd);var Dr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const s=Dr.findIndex(o=>o.cancel==r);~s&&Dr.splice(s,1),En-=~s?1:0},i={time:n,handler:e,cancel:r};return Dr.splice(K0(n),0,i),En+=1,Z0(),i};var K0=e=>~(~Dr.findIndex(t=>t.time>e)||~Dr.length);V.cancel=e=>{tl.delete(e),Xd.delete(e),Gd.delete(e),Kd.delete(e),Zd.delete(e)};V.sync=e=>{Ec=!0,V.batchedUpdates(e),Ec=!1};V.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,V.onStart(n)}return r.handler=e,r.cancel=()=>{tl.delete(n),t=null},r};var Yd=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>Yd=e;V.now=typeof performance<"u"?()=>performance.now():Date.now;V.batchedUpdates=e=>e();V.catch=console.error;V.frameLoop="always";V.advance=()=>{V.frameLoop!=="demand"||G0()};var bn=-1,En=0,Ec=!1;function $s(e,t){Ec?(t.delete(e),e(0)):(t.add(e),Z0())}function Z0(){bn<0&&(bn=0,V.frameLoop!=="demand"&&Yd(X0))}function jb(){bn=-1}function X0(){~bn&&(Yd(X0),V.batchedUpdates(G0))}function G0(){const e=bn;bn=V.now();const t=K0(bn);if(t&&(Y0(Dr.splice(0,t),n=>n.handler()),En-=t),!En){jb();return}tl.flush(),Kd.flush(e?Math.min(64,bn-e):16.667),Xd.flush(),Zd.flush(),Gd.flush()}function zs(){let e=new Set,t=e;return{add(n){En+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return En-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,En-=t.size,Y0(t,r=>r(n)&&e.add(r)),En+=e.size,t=e)}}}function Y0(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function Cc(){}var Nb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Gt(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var U=(e,t)=>e.forEach(t);function Qt(e,t,n){if(T.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var _e=e=>T.und(e)?[]:T.arr(e)?e:[e];function Ui(e,t){if(e.size){const n=Array.from(e);e.clear(),U(n,t)}}var Ri=(e,...t)=>Ui(e,n=>n(...t)),Jd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ef,J0,In=null,ev=!1,tf=Cc,Tb=e=>{e.to&&(J0=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(In=e.colors),e.skipAnimation!=null&&(ev=e.skipAnimation),e.createStringInterpolator&&(ef=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(tf=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Vi=new Set,ht=[],Jl=[],Ra=0,nl={get idle(){return!Vi.size&&!ht.length},start(e){Ra>e.priority?(Vi.add(e),V.onStart(_b)):(tv(e),V(kc))},advance:kc,sort(e){if(Ra)V.onFrame(()=>nl.sort(e));else{const t=ht.indexOf(e);~t&&(ht.splice(t,1),nv(e))}},clear(){ht=[],Vi.clear()}};function _b(){Vi.forEach(tv),Vi.clear(),V(kc)}function tv(e){ht.includes(e)||nv(e)}function nv(e){ht.splice(Ib(ht,t=>t.priority>e.priority),0,e)}function kc(e){const t=Jl;for(let n=0;n<ht.length;n++){const r=ht[n];Ra=r.priority,r.idle||(tf(r),r.advance(e),r.idle||t.push(r))}return Ra=0,Jl=ht,Jl.length=0,ht=t,ht.length>0}function Ib(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Ab=(e,t,n)=>Math.min(Math.max(n,e),t),Lb={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},jt="[-+]?\\d*\\.?\\d+",Pa=jt+"%";function rl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Mb=new RegExp("rgb"+rl(jt,jt,jt)),Db=new RegExp("rgba"+rl(jt,jt,jt,jt)),Fb=new RegExp("hsl"+rl(jt,Pa,Pa)),$b=new RegExp("hsla"+rl(jt,Pa,Pa,jt)),zb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ub=/^#([0-9a-fA-F]{6})$/,Vb=/^#([0-9a-fA-F]{8})$/;function Hb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ub.exec(e))?parseInt(t[1]+"ff",16)>>>0:In&&In[e]!==void 0?In[e]:(t=Mb.exec(e))?(gr(t[1])<<24|gr(t[2])<<16|gr(t[3])<<8|255)>>>0:(t=Db.exec(e))?(gr(t[1])<<24|gr(t[2])<<16|gr(t[3])<<8|Mp(t[4]))>>>0:(t=zb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Vb.exec(e))?parseInt(t[1],16)>>>0:(t=Bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Fb.exec(e))?(Ap(Lp(t[1]),go(t[2]),go(t[3]))|255)>>>0:(t=$b.exec(e))?(Ap(Lp(t[1]),go(t[2]),go(t[3]))|Mp(t[4]))>>>0:null}function eu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ap(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=eu(i,r,e+1/3),o=eu(i,r,e),a=eu(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function gr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lp(e){return(parseFloat(e)%360+360)%360/360}function Mp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function go(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dp(e){let t=Hb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var vs=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return vs({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return ef(e);const r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Qb(u,s);return qb(u,s[c],s[c+1],i[c],i[c+1],l,o,a,r.map)}};function qb(e,t,n,r,i,s,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function Qb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Wb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Ab(0,1,i/e)},ja=1.70158,vo=ja*1.525,Fp=ja+1,$p=2*Math.PI/3,zp=2*Math.PI/4.5,yo=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Kb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Fp*e*e*e-ja*e*e,easeOutBack:e=>1+Fp*Math.pow(e-1,3)+ja*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((vo+1)*2*e-vo)/2:(Math.pow(2*e-2,2)*((vo+1)*(e*2-2)+vo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*$p),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*$p)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zp)/2+1,easeInBounce:e=>1-yo(1-e),easeOutBounce:yo,easeInOutBounce:e=>e<.5?(1-yo(1-2*e))/2:(1+yo(2*e-1))/2,steps:Wb},ys=Symbol.for("FluidValue.get"),Gr=Symbol.for("FluidValue.observers"),ft=e=>!!(e&&e[ys]),ze=e=>e&&e[ys]?e[ys]():e,Bp=e=>e[Gr]||null;function Zb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function ws(e,t){const n=e[Gr];n&&n.forEach(r=>{Zb(r,t)})}var rv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Xb(this,e)}},Xb=(e,t)=>iv(e,ys,t);function ri(e,t){if(e[ys]){let n=e[Gr];n||iv(e,Gr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function xs(e,t){const n=e[Gr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Gr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var iv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Uo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gb=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Up=new RegExp(`(${Uo.source})(%|[a-z]+)`,"i"),Yb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,il=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,sv=e=>{const[t,n]=Jb(e);if(!t||Jd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&il.test(n))return sv(n);if(n)return n}return e},Jb=e=>{const t=il.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},tu,eE=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ov=e=>{tu||(tu=In?new RegExp(`(${Object.keys(In).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>ze(s).replace(il,sv).replace(Gb,Dp).replace(tu,Dp)),n=t.map(s=>s.match(Uo).map(Number)),i=n[0].map((s,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(s=>vs({...e,output:s}));return s=>{var l;const o=!Up.test(t[0])&&((l=t.find(u=>Up.test(u)))==null?void 0:l.replace(Uo,""));let a=0;return t[0].replace(Uo,()=>`${i[a++](s)}${o||""}`).replace(Yb,eE)}},nf="react-spring: ",av=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${nf}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},tE=av(console.warn);function nE(){tE(`${nf}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var rE=av(console.warn);function iE(){rE(`${nf}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function sl(e){return T.str(e)&&(e[0]=="#"||/\d/.test(e)||!Jd()&&il.test(e)||e in(In||{}))}var Yn=Jd()?b.useEffect:b.useLayoutEffect,sE=()=>{const e=b.useRef(!1);return Yn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function rf(){const e=b.useState()[1],t=sE();return()=>{t.current&&e(Math.random())}}function oE(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&aE(t,s.inputs)||(s={inputs:t,result:e()}):s=n,b.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function aE(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var sf=e=>b.useEffect(e,lE),lE=[];function Oc(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var Ss=Symbol.for("Animated:node"),uE=e=>!!e&&e[Ss]===e,$t=e=>e&&e[Ss],of=(e,t)=>Nb(e,Ss,t),ol=e=>e&&e[Ss]&&e[Ss].getPayload(),lv=class{constructor(){of(this,this)}getPayload(){return this.payload||[]}},Bs=class extends lv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,T.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Bs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return T.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},bs=class extends Bs{constructor(e){super(0),this._string=null,this._toString=vs({output:[e,e]})}static create(e){return new bs(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(T.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=vs({output:[this.getValue(),e]})),this._value=0,super.reset()}},Na={dependencies:null},al=class extends lv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Qt(this.source,(n,r)=>{uE(n)?t[r]=n.getValue(e):ft(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&U(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Qt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Na.dependencies&&ft(e)&&Na.dependencies.add(e);const t=ol(e);t&&U(t,n=>this.add(n))}},uv=class extends al{constructor(e){super(e)}static create(e){return new uv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(cE)),!0)}};function cE(e){return(sl(e)?bs:Bs).create(e)}function Rc(e){const t=$t(e);return t?t.constructor:T.arr(e)?uv:sl(e)?bs:Bs}var Vp=(e,t)=>{const n=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const s=b.useRef(null),o=n&&b.useCallback(p=>{s.current=hE(i,p)},[i]),[a,l]=fE(r,t),u=rf(),c=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new dE(c,l),h=b.useRef();Yn(()=>(h.current=d,U(l,p=>ri(p,d)),()=>{h.current&&(U(h.current.deps,p=>xs(p,h.current)),V.cancel(h.current.update))})),b.useEffect(c,[]),sf(()=>()=>{const p=h.current;U(p.deps,y=>xs(y,p))});const g=t.getComponentProps(a.getValue());return b.createElement(e,{...g,ref:o})})},dE=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function fE(e,t){const n=new Set;return Na.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new al(e),Na.dependencies=null,[e,n]}function hE(e,t){return e&&(T.fun(e)?e(t):e.current=t),t}var Hp=Symbol.for("AnimatedComponent"),pE=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new al(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const a=qp(o)||"Anonymous";return T.str(o)?o=s[o]||(s[o]=Vp(o,i)):o=o[Hp]||(o[Hp]=Vp(o,i)),o.displayName=`Animated(${a})`,o};return Qt(e,(o,a)=>{T.arr(e)&&(a=qp(o)),s[a]=s(o)}),{animated:s}},qp=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;function Be(e,...t){return T.fun(e)?e(...t):e}var Hi=(e,t)=>e===!0||!!(t&&e&&(T.fun(e)?e(t):_e(e).includes(t))),cv=(e,t)=>T.obj(e)?t&&e[t]:e,dv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,mE=e=>e,ll=(e,t=mE)=>{let n=gE;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);T.und(s)||(r[i]=s)}return r},gE=["config","onProps","onStart","onChange","onPause","onResume","onRest"],vE={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function yE(e){const t={};let n=0;if(Qt(e,(r,i)=>{vE[i]||(t[i]=r,n++)}),n)return t}function af(e){const t=yE(e);if(t){const n={to:t};return Qt(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Es(e){return e=ze(e),T.arr(e)?e.map(Es):sl(e)?It.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function fv(e){for(const t in e)return!0;return!1}function Pc(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function jc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function hv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var wE={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Nc={...wE.default,mass:1,damping:1,easing:Kb.linear,clamp:!1},xE=class{constructor(){this.velocity=0,Object.assign(this,Nc)}};function SE(e,t,n){n&&(n={...n},Qp(n,t),t={...n,...t}),Qp(e,t),Object.assign(e,t);for(const o in Nc)e[o]==null&&(e[o]=Nc[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return T.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function Qp(e,t){if(!T.und(t.decay))e.duration=void 0;else{const n=!T.und(t.tension)||!T.und(t.friction);(n||!T.und(t.frequency)||!T.und(t.damping)||!T.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Wp=[],bE=class{constructor(){this.changed=!1,this.values=Wp,this.toValues=null,this.fromValues=Wp,this.config=new xE,this.immediate=!1}};function pv(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,a)=>{let l,u,c=Hi(n.cancel??(r==null?void 0:r.cancel),t);if(c)g();else{T.und(n.pause)||(i.paused=Hi(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||Hi(p,t)),l=Be(n.delay||0,t),p?(i.resumeQueue.add(h),s.pause()):(s.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(u),u.cancel(),l=u.time-V.now()}function h(){l>0&&!It.skipAnimation?(i.delayed=!0,u=V.setTimeout(g,l),i.pauseQueue.add(d),i.timeouts.add(u)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{s.start({...n,callId:e,cancel:c},o)}catch(p){a(p)}}})}var lf=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Fr(e.get()):t.every(n=>n.noop)?mv(e.get()):Pt(e.get(),t.every(n=>n.finished)),mv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Pt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Fr=e=>({value:e,cancelled:!0,finished:!1});function gv(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=ll(t,(x,m)=>m==="onRest"?void 0:x);let c,d;const h=new Promise((x,m)=>(c=x,d=m)),g=x=>{const m=i<=(n.cancelId||0)&&Fr(r)||i!==n.asyncId&&Pt(r,!1);if(m)throw x.result=m,d(x),x},p=(x,m)=>{const v=new Kp,w=new Zp;return(async()=>{if(It.skipAnimation)throw Cs(n),w.result=Pt(r,!1),d(w),w;g(v);const S=T.obj(x)?{...x}:{...m,to:x};S.parentId=i,Qt(u,(k,O)=>{T.und(S[O])&&(S[O]=k)});const C=await r.start(S);return g(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let y;if(It.skipAnimation)return Cs(n),Pt(r,!1);try{let x;T.arr(e)?x=(async m=>{for(const v of m)await p(v)})(e):x=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([x.then(c),h]),y=Pt(r.get(),!0,!1)}catch(x){if(x instanceof Kp)y=x.result;else if(x instanceof Zp)y=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return T.fun(o)&&V.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function Cs(e,t){Ui(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Kp=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Zp=class extends Error{constructor(){super("SkipAnimationSignal")}},Tc=e=>e instanceof uf,EE=1,uf=class extends rv{constructor(){super(...arguments),this.id=EE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=$t(this);return e&&e.getValue()}to(...e){return It.to(this,e)}interpolate(...e){return nE(),It.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ws(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||nl.sort(this),ws(this,{type:"priority",parent:this,priority:e})}},lr=Symbol.for("SpringPhase"),vv=1,_c=2,Ic=4,nu=e=>(e[lr]&vv)>0,hn=e=>(e[lr]&_c)>0,yi=e=>(e[lr]&Ic)>0,Xp=(e,t)=>t?e[lr]|=_c|vv:e[lr]&=~_c,Gp=(e,t)=>t?e[lr]|=Ic:e[lr]&=~Ic,CE=class extends uf{constructor(e,t){if(super(),this.animation=new bE,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!T.und(e)||!T.und(t)){const n=T.obj(e)?{...e}:{...t,from:e};T.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(hn(this)||this._state.asyncTo)||yi(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=$t(this);return e instanceof Bs?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return nu(this)}get isAnimating(){return hn(this)}get isPaused(){return yi(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=ol(r.to);!o&&ft(r.to)&&(i=_e(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==bs?1:o?o[c].lastPosition:i[c];let h=r.immediate,g=d;if(!h){if(g=u.lastPosition,s.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=T.arr(s.velocity)?s.velocity[c]:s.velocity;let m;const v=s.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(T.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,S=Math.exp(-(1-w)*p);g=y+x/(1-w)*(1-S),h=Math.abs(u.lastPosition-g)<=v,m=x*S}else{m=u.lastVelocity==null?x:u.lastVelocity;const w=s.restVelocity||v/10,S=s.clamp?0:s.bounce,C=!T.und(S),k=y==d?u.v0>0:y<d;let O,R=!1;const I=1,A=Math.ceil(e/I);for(let M=0;M<A&&(O=Math.abs(m)>w,!(!O&&(h=Math.abs(d-g)<=v,h)));++M){C&&(R=g==d||g>d==k,R&&(m=-m*S,g=d));const z=-s.tension*1e-6*(g-d),B=-s.friction*.001*m,E=(z+B)/s.mass;m=m+E*I,g=g+m*I}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,p=u.elapsedTime+=e)),w=(s.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),g=y+s.easing(w)*(d-y),m=(g-u.lastPosition)/e,h=w==1}u.lastVelocity=m,Number.isNaN(g)&&(h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(g,s.round)&&(n=!0)});const a=$t(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!s.decay?(a.setValue(u),this._onChange(u)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(hn(this)){const{to:e,config:t}=this.animation;V.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return T.und(e)?(n=this.queue||[],this.queue=[]):n=[T.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>lf(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Cs(this._state,e&&this._lastCallId),V.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=T.obj(n)?n[t]:n,(n==null||Pc(n))&&(n=void 0),r=T.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return nu(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),T.und(r)?$t(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ll(e,(o,a)=>/^on/.test(a)?cv(o,n):o)),Jp(this,e,"onProps"),xi(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return pv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{yi(this)||(Gp(this,!0),Ri(s.pauseQueue),xi(this,"onPause",Pt(this,wi(this,this.animation.to)),this))},resume:()=>{yi(this)&&(Gp(this,!1),hn(this)&&this._resume(),Ri(s.resumeQueue),xi(this,"onResume",Pt(this,wi(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=yv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Fr(this));const r=!T.und(e.to),i=!T.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Fr(this));const{key:s,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||T.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Gt(d,u);h&&(a.from=d),d=ze(d);const g=!Gt(c,l);g&&this._focus(c);const p=Pc(t.to),{config:y}=a,{decay:x,velocity:m}=y;(r||i)&&(y.velocity=0),t.config&&!p&&SE(y,Be(t.config,s),t.config!==o.config?Be(o.config,s):void 0);let v=$t(this);if(!v||T.und(c))return n(Pt(this,!0));const w=T.und(t.reset)?i&&!t.default:!T.und(d)&&Hi(t.reset,s),S=w?d:this.get(),C=Es(c),k=T.num(C)||T.arr(C)||sl(C),O=!p&&(!k||Hi(o.immediate||t.immediate,s));if(g){const M=Rc(c);if(M!==v.constructor)if(O)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${M.name}, as the "to" prop suggests`)}const R=v.constructor;let I=ft(c),A=!1;if(!I){const M=w||!nu(this)&&h;(g||M)&&(A=Gt(Es(S),C),I=!A),(!Gt(a.immediate,O)&&!O||!Gt(y.decay,x)||!Gt(y.velocity,m))&&(I=!0)}if(A&&hn(this)&&(a.changed&&!w?I=!0:I||this._stop(l)),!p&&((I||ft(l))&&(a.values=v.getPayload(),a.toValues=ft(c)?null:R==bs?[1]:_e(C)),a.immediate!=O&&(a.immediate=O,!O&&!w&&this._set(l)),I)){const{onRest:M}=a;U(OE,B=>Jp(this,t,B));const z=Pt(this,wi(this,l));Ri(this._pendingCalls,z),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var B;a.changed=!w,M==null||M(z,this),w?Be(o.onRest,z):(B=a.onStart)==null||B.call(a,z,this)})}w&&this._set(S),p?n(gv(t.to,t,this._state,this)):I?this._start():hn(this)&&!g?this._pendingCalls.add(n):n(mv(S))}_focus(e){const t=this.animation;e!==t.to&&(Bp(this)&&this._detach(),t.to=e,Bp(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ft(t)&&(ri(t,this),Tc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ft(e)&&xs(e,this)}_set(e,t=!0){const n=ze(e);if(!T.und(n)){const r=$t(this);if(!r||!Gt(n,r.getValue())){const i=Rc(n);!r||r.constructor!=i?of(this,i.create(n)):r.setValue(n),r&&V.batchedUpdates(()=>{this._onChange(n,t)})}}return $t(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,xi(this,"onStart",Pt(this,wi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Be(this.animation.onChange,e,this)),Be(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;$t(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),hn(this)||(Xp(this,!0),yi(this)||this._resume())}_resume(){It.skipAnimation?this.finish():nl.start(this)}_stop(e,t){if(hn(this)){Xp(this,!1);const n=this.animation;U(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),ws(this,{type:"idle",parent:this});const r=t?Fr(this.get()):Pt(this.get(),wi(this,e??n.to));Ri(this._pendingCalls,r),n.changed&&(n.changed=!1,xi(this,"onRest",r,this))}}};function wi(e,t){const n=Es(t),r=Es(e.get());return Gt(r,n)}function yv(e,t=e.loop,n=e.to){const r=Be(t);if(r){const i=r!==!0&&af(r),s=(i||e).reverse,o=!i||i.reset;return ks({...e,loop:t,default:!1,pause:void 0,to:!s||Pc(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function ks(e){const{to:t,from:n}=e=af(e),r=new Set;return T.obj(t)&&Yp(t,r),T.obj(n)&&Yp(n,r),e.keys=r.size?Array.from(r):null,e}function kE(e){const t=ks(e);return T.und(t.default)&&(t.default=ll(t)),t}function Yp(e,t){Qt(e,(n,r)=>n!=null&&t.add(r))}var OE=["onStart","onRest","onChange","onPause","onResume"];function Jp(e,t,n){e.animation[n]=t[n]!==dv(t,n)?cv(t[n],e.key):void 0}function xi(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var RE=["onStart","onChange","onRest"],PE=1,wv=class{constructor(e,t){this.id=PE++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];T.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ks(e)),this}start(e){let{queue:t}=this;return e?t=_e(e).map(ks):this.queue=[],this._flush?this._flush(this,t):(Cv(this,t),Ac(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;U(_e(t),r=>n[r].stop(!!e))}else Cs(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(T.und(e))this.start({pause:!0});else{const t=this.springs;U(_e(e),n=>t[n].pause())}return this}resume(e){if(T.und(e))this.start({pause:!1});else{const t=this.springs;U(_e(e),n=>t[n].resume())}return this}each(e){Qt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ui(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Ui(t,([a,l])=>{l.value=o,a(l,this,this._item)}),s&&(this._started=!1,Ui(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;V.onFrame(this._onFrame)}};function Ac(e,t){return Promise.all(t.map(n=>xv(e,n))).then(n=>lf(e,n))}async function xv(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:a,onResolve:l}=t,u=T.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const c=T.arr(i)||T.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):U(RE,y=>{const x=t[y];if(T.fun(x)){const m=e._events[y];t[y]=({finished:v,cancelled:w})=>{const S=m.get(x);S?(v||(S.finished=!1),w&&(S.cancelled=!0)):m.set(x,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ri(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),g=t.cancel===!0||dv(t,"cancel")===!0;(c||g&&d.asyncId)&&h.push(pv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Cc,resume:Cc,start(y,x){g?(Cs(d,e._lastAsyncId),x(Fr(e))):(y.onRest=a,x(gv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const p=lf(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const y=yv(t,o,i);if(y)return Cv(e,[y]),xv(e,y,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function Lc(e,t){const n={...e.springs};return t&&U(_e(t),r=>{T.und(r.keys)&&(r=ks(r)),T.obj(r.to)||(r={...r,to:void 0}),Ev(n,r,i=>bv(i))}),Sv(e,n),n}function Sv(e,t){Qt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ri(n,e))})}function bv(e,t){const n=new CE;return n.key=e,t&&ri(n,t),n}function Ev(e,t,n){t.keys&&U(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Cv(e,t){U(t,n=>{Ev(e.springs,n,r=>bv(r,e))})}var Us=({children:e,...t})=>{const n=b.useContext(Ta),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=oE(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=Ta;return b.createElement(s,{value:t},e)},Ta=jE(Us,{});Us.Provider=Ta.Provider;Us.Consumer=Ta.Consumer;function jE(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var kv=()=>{const e=[],t=function(r){iE();const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=n(r,s,o);a&&i.push(s.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return U(e,r=>r.pause(...arguments)),this},t.resume=function(){return U(e,r=>r.resume(...arguments)),this},t.set=function(r){U(e,(i,s)=>{const o=T.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=this._getProps(r,s,o);a&&i.push(s.start(a))}}),i},t.stop=function(){return U(e,r=>r.stop(...arguments)),this},t.update=function(r){return U(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return T.fun(r)?r(s,i):r};return t._getProps=n,t};function NE(e,t,n){const r=T.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),s=b.useRef(0),o=rf(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(m,v){const w=Lc(m,v);return s.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!m.springs[C])?Ac(m,v):new Promise(C=>{Sv(m,w),a.queue.push(()=>{C(Ac(m,v))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=Oc(e)||0;b.useMemo(()=>{U(l.current.slice(e,c),m=>{jc(m,i),m.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(m,v){for(let w=m;w<v;w++){const S=l.current[w]||(l.current[w]=new wv(null,a.flush)),C=r?r(w,S):t[w];C&&(u[w]=kE(C))}}const h=l.current.map((m,v)=>Lc(m,u[v])),g=b.useContext(Us),p=Oc(g),y=g!==p&&fv(g);Yn(()=>{s.current++,a.ctrls=l.current;const{queue:m}=a;m.length&&(a.queue=[],U(m,v=>v())),U(l.current,(v,w)=>{i==null||i.add(v),y&&v.start({default:g});const S=u[w];S&&(hv(v,S.ref),v.ref?v.queue.push(S):v.start(S))})}),sf(()=>()=>{U(a.ctrls,m=>m.stop(!0))});const x=h.map(m=>({...m}));return i?[x,i]:x}function Ik(e,t){const n=T.fun(e),[[r],i]=NE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function ul(e,t,n){const r=T.fun(t)&&t,{reset:i,sort:s,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),g=_e(e),p=[],y=b.useRef(null),x=i?null:y.current;Yn(()=>{y.current=p}),sf(()=>(U(p,E=>{h==null||h.add(E.ctrl),E.ctrl.ref=h}),()=>{U(y.current,E=>{E.expired&&clearTimeout(E.expirationId),jc(E.ctrl,h),E.ctrl.stop(!0)})}));const m=_E(g,r?r():t,x),v=i&&y.current||[];Yn(()=>U(v,({ctrl:E,item:P,key:L})=>{jc(E,h),Be(u,P,L)}));const w=[];if(x&&U(x,(E,P)=>{E.expired?(clearTimeout(E.expirationId),v.push(E)):(P=w[P]=m.indexOf(E.key),~P&&(p[P]=E))}),U(g,(E,P)=>{p[P]||(p[P]={key:m[P],item:E,phase:"mount",ctrl:new wv},p[P].ctrl.item=E)}),w.length){let E=-1;const{leave:P}=r?r():t;U(w,(L,F)=>{const j=x[F];~L?(E=p.indexOf(j),p[E]={...j,item:g[L]}):P&&p.splice(++E,0,j)})}T.fun(s)&&p.sort((E,P)=>s(E.item,P.item));let S=-o;const C=rf(),k=ll(t),O=new Map,R=b.useRef(new Map),I=b.useRef(!1);U(p,(E,P)=>{const L=E.key,F=E.phase,j=r?r():t;let N,$;const W=Be(j.delay||0,L);if(F=="mount")N=j.enter,$="enter";else{const J=m.indexOf(L)<0;if(F!="leave")if(J)N=j.leave,$="leave";else if(N=j.update)$="update";else return;else if(!J)N=j.enter,$="enter";else return}if(N=Be(N,E.item,P),N=T.obj(N)?af(N):{to:N},!N.config){const J=d||k.config;N.config=Be(J,E.item,P,$)}S+=o;const H={...k,delay:W+S,ref:c,immediate:j.immediate,reset:!1,...N};if($=="enter"&&T.und(H.from)){const J=r?r():t,Z=T.und(J.initial)||x?J.from:J.initial;H.from=Be(Z,E.item,P)}const{onResolve:Ye}=H;H.onResolve=J=>{Be(Ye,J);const Z=y.current,ie=Z.find(ge=>ge.key===L);if(ie&&!(J.cancelled&&ie.phase!="update")&&ie.ctrl.idle){const ge=Z.every(Fe=>Fe.ctrl.idle);if(ie.phase=="leave"){const Fe=Be(a,ie.item);if(Fe!==!1){const Mt=Fe===!0?0:Fe;if(ie.expired=!0,!ge&&Mt>0){Mt<=2147483647&&(ie.expirationId=setTimeout(C,Mt));return}}}ge&&Z.some(Fe=>Fe.expired)&&(R.current.delete(ie),l&&(I.current=!0),C())}};const he=Lc(E.ctrl,H);$==="leave"&&l?R.current.set(E,{phase:$,springs:he,payload:H}):O.set(E,{phase:$,springs:he,payload:H})});const A=b.useContext(Us),M=Oc(A),z=A!==M&&fv(A);Yn(()=>{z&&U(p,E=>{E.ctrl.start({default:A})})},[A]),U(O,(E,P)=>{if(R.current.size){const L=p.findIndex(F=>F.key===P.key);p.splice(L,1)}}),Yn(()=>{U(R.current.size?R.current:O,({phase:E,payload:P},L)=>{const{ctrl:F}=L;L.phase=E,h==null||h.add(F),z&&E=="enter"&&F.start({default:A}),P&&(hv(F,P.ref),(F.ref||h)&&!I.current?F.update(P):(F.start(P),I.current&&(I.current=!1)))})},i?void 0:n);const B=E=>b.createElement(b.Fragment,null,p.map((P,L)=>{const{springs:F}=O.get(P)||P.ctrl,j=E({...F},P.item,P,L);return j&&j.type?b.createElement(j.type,{...j.props,key:T.str(P.key)||T.num(P.key)?P.key:P.ctrl.id,ref:j.ref}):j}));return h?[B,h]:B}var TE=1;function _E(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(s=>{const o=r&&r.find(a=>a.item===s&&a.phase!=="leave"&&!i.has(a));return o?(i.add(o),o.key):TE++})}return T.und(n)?e:T.fun(n)?e.map(n):_e(n)}var IE=class extends uf{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=vs(...t);const n=this._get(),r=Rc(n);of(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Gt(t,n)||($t(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&em(this._active)&&ru(this)}_get(){const e=T.arr(this.source)?this.source.map(ze):_e(ze(this.source));return this.calc(...e)}_start(){this.idle&&!em(this._active)&&(this.idle=!1,U(ol(this),e=>{e.done=!1}),It.skipAnimation?(V.batchedUpdates(()=>this.advance()),ru(this)):nl.start(this))}_attach(){let e=1;U(_e(this.source),t=>{ft(t)&&ri(t,this),Tc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){U(_e(this.source),e=>{ft(e)&&xs(e,this)}),this._active.clear(),ru(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=_e(this.source).reduce((t,n)=>Math.max(t,(Tc(n)?n.priority:0)+1),0))}};function AE(e){return e.idle!==!1}function em(e){return!e.size||Array.from(e).every(AE)}function ru(e){e.idle||(e.idle=!0,U(ol(e),t=>{t.done=!0}),ws(e,{type:"idle",parent:e}))}It.assign({createStringInterpolator:ov,to:(e,t)=>new IE(e,t)});var Ov=/^--/;function LE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ov.test(e)&&!(qi.hasOwnProperty(e)&&qi[e])?t+"px":(""+t).trim()}var tm={};function ME(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:tm[d]||(tm[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const h=LE(d,r[d]);Ov.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var qi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},DE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),FE=["Webkit","Ms","Moz","O"];qi=Object.keys(qi).reduce((e,t)=>(FE.forEach(n=>e[DE(n,t)]=e[t]),e),qi);var $E=/^(matrix|translate|scale|rotate|skew)/,zE=/^(translate)/,BE=/^(rotate|skew)/,iu=(e,t)=>T.num(e)&&e!==0?e+t:e,Vo=(e,t)=>T.arr(e)?e.every(n=>Vo(n,t)):T.num(e)?e===t:parseFloat(e)===t,UE=class extends al{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(a=>iu(a,"px")).join(",")})`,Vo(o,0)])),Qt(r,(o,a)=>{if(a==="transform")i.push([o||""]),s.push(l=>[l,l===""]);else if($E.test(a)){if(delete r[a],T.und(o))return;const l=zE.test(a)?"px":BE.test(a)?"deg":"";i.push(_e(o)),s.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${iu(h,l)})`,Vo(h,0)]:u=>[`${a}(${u.map(c=>iu(c,l)).join(",")})`,Vo(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new VE(i,s)),super(r)}},VE=class extends rv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return U(this.inputs,(n,r)=>{const i=ze(n[0]),[s,o]=this.transforms[r](T.arr(i)?i:n.map(ze));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&U(this.inputs,t=>U(t,n=>ft(n)&&ri(n,this)))}observerRemoved(e){e==0&&U(this.inputs,t=>U(t,n=>ft(n)&&xs(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),ws(this,e)}},HE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];It.assign({batchedUpdates:Ls.unstable_batchedUpdates,createStringInterpolator:ov,colors:Lb});var qE=pE(HE,{applyAnimatedValues:ME,createAnimatedStyle:e=>new UE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Os=qE.animated;const Rv=({trigger:e,content:t})=>{const[n,r]=b.useState(null),[i,s]=b.useState(null),{styles:o,attributes:a}=Ob(n,i,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,12]}}]}),[l,u]=b.useState(!1),c=ul(l,{from:{opacity:0,y:10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}}),d=()=>{u(g=>!g)},h=Im.cloneElement(e,{ref:r,onClick:d,state:l?"selected":"default"});return b.useEffect(()=>{const g=p=>{i&&!i.contains(p.target)&&n&&!n.contains(p.target)&&u(!1)};return document.addEventListener("mousedown",g,!0),document.addEventListener("touchstart",g,!0),()=>{document.removeEventListener("mousedown",g,!0),document.removeEventListener("touchstart",g,!0)}},[i,n]),f.jsxs(f.Fragment,{children:[h,c((g,p)=>f.jsx(f.Fragment,{children:p&&f.jsx(Os.div,{className:K("bg-white shadow rounded-4 d-block show py-12 px-8","bs-tooltip-auto"),ref:s,style:{...o.popper,...g},...a.popper,children:t})}))]})};Rv.displayName="Dropdown";const QE=Rv,Pv=b.forwardRef(({title:e="",state:t,variant:n,icon:r,size:i="lg",grow:s=!1,badgeContent:o,...a},l)=>{const u=K("dropdown-trigger",t,i,n,s&&"flex-grow-1 justify-content-between");return f.jsxs("button",{ref:l,className:u,...a,type:"button",children:[r&&f.jsx("div",{className:"dropdown-trigger-icon",children:r}),f.jsx("div",{children:e}),o?f.jsx("div",{children:f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:o})}):f.jsx("div",{className:"dropdown-trigger-carret-icon",children:f.jsx(A3,{width:16,height:16})})]})});Pv.displayName="DropdownTrigger";const WE=Pv,jv=({options:e,hideCheckbox:t,isMonoSelection:n,onChange:r,model:i=[]})=>{const[s,o]=b.useState(i),a=l=>{o(n?[l]:u=>{const c=[...u];return u.includes(l)?c.splice(c.indexOf(l),1):c.push(l),c})};return b.useEffect(()=>{r==null||r(s)},[s]),f.jsx(f.Fragment,{children:f.jsx("div",{className:"select-list",children:e==null?void 0:e.map(l=>f.jsxs("div",{className:K("select-list-option",t&&s.includes(l.value)&&"text-secondary fw-bold"),role:"checkbox","aria-checked":s.includes(l.value),onMouseUp:()=>{a(l.value)},tabIndex:0,onKeyDown:u=>{u.key==="Enter"&&a(l.value)},children:[f.jsx("div",{className:"select-list-option-icon",children:l.icon&&Im.createElement(l.icon,{width:"20px",height:"20px"})}),f.jsx("div",{className:"select-list-option-label",children:l.label}),!t&&f.jsx("div",{className:"select-list-option-checkbox",children:f.jsx("input",{readOnly:!0,type:"checkbox",tabIndex:-1,checked:s.includes(l.value),className:"form-check-input c-pointer",id:"option.value"})})]},l.value))})})};jv.displayName="SelectList";const KE=jv,Nv=b.createContext(null),cf=()=>{const e=b.useContext(Nv);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},Tv=({children:e})=>{const{status:t}=cf(),n=K("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};Tv.displayName="Text";const ZE=Tv,_v=b.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:i},s)=>{const{id:o,isOptional:a,isRequired:l}=cf(),u=K("form-label",{"has-icon":e},i),c=a&&!l,d=l&&!a;return b.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:s,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});_v.displayName="Label";const XE=_v,Iv=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:i,...s},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=cf(),d=K({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},i);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...s})});Iv.displayName="Input";const Av=Iv,Lv=b.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:i,isRequired:s,status:o,...a},l)=>{const u=b.useMemo(()=>({id:n,isOptional:r,isRequired:s,isReadOnly:i,status:o}),[n,r,i,s,o]);return f.jsx(Nv.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),GE=Object.assign(Lv,{Label:XE,Input:Av,Text:ZE});Lv.displayName="FormControl";const Mc=GE,Qi=({children:e,className:t,...n})=>{const r=K("grid",t);return f.jsx("div",{className:r,...n,children:e})},Mv=({sm:e,md:t,lg:n,xl:r,children:i,className:s,as:o,...a})=>{const l=o||"div",u=K({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},s);return f.jsx(l,{className:u,...a,children:i})};Qi.displayName="Grid";Mv.displayName="Grid.Col";Qi.Col=Mv;const Dv=b.forwardRef(({position:e=!0},t)=>{const[n]=Ya(),r=`${n}/loading/screen-loading.gif`,i=K("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!e,"position-static":e});return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:t,className:i,children:f.jsx("div",{className:"bg-white rounded-circle mx-auto",children:f.jsx("img",{src:r,alt:"loading"})})}),!e&&f.jsx("div",{className:"modal-backdrop fade show"})]})});Dv.displayName="LoadingScreen";const Ve=Dv,Fv=b.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const i=K("navbar-brand d-none d-md-block"),s=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:i,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:s,width:"300",height:"52"})})});Fv.displayName="Logo";const nm=Fv,df=b.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});df.displayName="ModalContext";const $v=()=>{const e=b.useContext(df);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},zv=e=>{const{ariaDescriptionId:t}=$v(),{children:n,className:r}=e,i=K("modal-body",r);return f.jsx("div",{id:t,className:i,children:n})};zv.displayName="Modal.Body";const YE=zv,Bv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Bv.displayName="Modal.Footer";const JE=Bv,Uv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:i}=$v(),s=b.useRef(null);return b.useEffect(()=>{var o;i||(o=s.current)==null||o.focus()},[i]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx("button",{ref:s,type:"button",className:"btn btn-close","aria-label":"Close",onClick:t})]})};Uv.displayName="Modal.Header";const eC=Uv,Vv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Vv.displayName="Modal.Subtitle";const tC=Vv,Hv=b.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:i,size:s="md",scrollable:o,focusId:a,children:l}=e,u=`aria_label_${n}`,c=`aria_desc_${n}`,d=r4(i),h=Y4();Z4(i,["Escape"]),b.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const x=document.getElementById(a);x==null||x.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const g=K("modal-dialog",{[`modal-${s}`]:s,"modal-dialog-scrollable":o}),p={ariaLabelId:u,ariaDescriptionId:c,focusId:a},y=ul(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(df.Provider,{value:p,children:y((x,m)=>f.jsxs(f.Fragment,{children:[m&&f.jsx(Os.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":c,className:`modal fade ${m?"show d-block":""}`,style:x,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:v=>{d.current=v,m&&(h.current=v)},className:g,children:f.jsx("div",{className:"modal-content",children:l})})}),m&&f.jsx(Os.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),nC=Object.assign(Hv,{Header:eC,Subtitle:tC,Body:YE,Footer:JE});Hv.displayName="Modal";const Cn=nC,rC=({children:e,className:t})=>{const n=K("popover-body",t);return f.jsx("div",{className:n,children:e})},iC=({children:e,className:t})=>{const n=K("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},ff=b.forwardRef(({children:e,className:t,id:n,isVisible:r,...i},s)=>{const o=K("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return ul(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(Os.div,{ref:s,"aria-labelledby":n,className:o,role:"tooltip",style:l,...i,children:e}))});ff.displayName="Popover";function sC(e,t,n,r,i,s,o,a,l){const u=x=>{x.preventDefault(),i==null||i(e),x.stopPropagation()},c=x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),i==null||i(e),x.stopPropagation())},d=()=>{r(!n),n?s==null||s(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:x=>{x.preventDefault(),d(),x.stopPropagation()},handleItemFoldUnfoldKeyDown:x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),d(),x.stopPropagation())},handleItemFocus:x=>{x.preventDefault(),a==null||a(e)},handleItemBlur:x=>{x.preventDefault(),l==null||l(e)}}}const qv=e=>{const{nodeId:t,label:n,children:r,section:i,selected:s,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,g]=b.useState(!1),{handleItemClick:p,handleItemKeyDown:y,handleItemFoldUnfoldClick:x,handleItemFoldUnfoldKeyDown:m,handleItemFocus:v,handleItemBlur:w}=sC(t,n,h,g,o,a,l,u,c);b.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const k=d[d.length-1];d.some(O=>O===t&&t!==k?(g(!0),O===t):(g(!1),!1))}else g(!1)},[t,d]);const S=i?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":s,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:x,onKeyDown:m,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(yp,{title:"RafterRight",width:S,height:S}),Array.isArray(r)&&h&&f.jsx(wc,{title:"RafterDown",width:S,height:S}),!Array.isArray(r)&&f.jsx(yp,{title:"RafterRight",width:S,height:S,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:p,onKeyDown:y,onFocus:v,onBlur:w,children:[i&&f.jsx(x3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return i?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};qv.displayName="TreeItem";const oC=qv,Qv=b.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:i,onTreeItemUnfold:s,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=b.useState("default");b.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=m=>{c(m),r==null||r(m)},h=m=>{i==null||i(m)},g=m=>{s==null||s(m)},p=m=>{o==null||o(m)},y=m=>{a==null||a(m)},x=m=>f.jsx(oC,{nodeId:m.id,label:m.name,section:m.section,selectedNodesIds:l,selected:u===m.id,onItemSelect:d,onItemFold:h,onItemUnfold:g,onItemFocus:p,onItemBlur:y,children:Array.isArray(m.children)?m.children.map(v=>x(v)):null},m.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:x(n)})});Qv.displayName="TreeView";const aC=Qv,Wv=b.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Wv.displayName="VisuallyHidden";const Pi=Wv,lC=()=>{const e=$i("fr.openent.zimbra.controllers.ZimbraController|view"),t=$i("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=b.useState(0),[i,s]=b.useState(""),o=b.useCallback(async()=>{if(e)try{const l=await G.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{r(0)}else try{const l=await G.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{r(0)}},[e]),a=b.useCallback(()=>{let l="";G.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),s(l)},[t]);return b.useEffect(()=>{(async()=>{try{await o()}catch{}})(),a()},[a,o]),{messages:n,msgLink:i,zimbraWorkflow:e}},uC=lC;function su({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ou({children:e,className:t,...n}){const r=K("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function rm({children:e,className:t,...n}){const r=K("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const de=b.forwardRef(({children:e,className:t,...n},r)=>{const i=K("nav-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});de.displayName="NavItem";function Si({link:e,className:t,children:n,translate:r,...i}){const s=K("nav-link",t);return f.jsxs("a",{href:e,className:s,...i,children:[n,r&&f.jsx(Pi,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const cC=()=>{const{t:e}=xe();return f.jsx("div",{className:"widget-footer",children:f.jsx("div",{className:"widget-footer-action",children:f.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},dC=({bookmarkedApps:e})=>{const{t}=xe();return f.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&f.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>f.jsx("a",{href:n.address,className:"bookmarked-app",children:f.jsx(xc,{app:n,size:"32"})},r))]})};var hf={},pf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(pf);var q={},Bn=He&&He.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wi=He&&He.__assign||function(){return Wi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Wi.apply(this,arguments)};Object.defineProperty(q,"__esModule",{value:!0});q.cloneNode=q.hasChildren=q.isDocument=q.isDirective=q.isComment=q.isText=q.isCDATA=q.isTag=q.Element=q.Document=q.CDATA=q.NodeWithChildren=q.ProcessingInstruction=q.Comment=q.Text=q.DataNode=q.Node=void 0;var Ge=pf,mf=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),gf(this,t)},e}();q.Node=mf;var cl=function(e){Bn(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(mf);q.DataNode=cl;var Kv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(cl);q.Text=Kv;var Zv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(cl);q.Comment=Zv;var Xv=function(e){Bn(t,e);function t(n,r){var i=e.call(this,r)||this;return i.name=n,i.type=Ge.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(cl);q.ProcessingInstruction=Xv;var dl=function(e){Bn(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(mf);q.NodeWithChildren=dl;var Gv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(dl);q.CDATA=Gv;var Yv=function(e){Bn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(dl);q.Document=Yv;var Jv=function(e){Bn(t,e);function t(n,r,i,s){i===void 0&&(i=[]),s===void 0&&(s=n==="script"?Ge.ElementType.Script:n==="style"?Ge.ElementType.Style:Ge.ElementType.Tag);var o=e.call(this,i)||this;return o.name=n,o.attribs=r,o.type=s,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,s;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),t}(dl);q.Element=Jv;function ey(e){return(0,Ge.isTag)(e)}q.isTag=ey;function ty(e){return e.type===Ge.ElementType.CDATA}q.isCDATA=ty;function ny(e){return e.type===Ge.ElementType.Text}q.isText=ny;function ry(e){return e.type===Ge.ElementType.Comment}q.isComment=ry;function iy(e){return e.type===Ge.ElementType.Directive}q.isDirective=iy;function sy(e){return e.type===Ge.ElementType.Root}q.isDocument=sy;function fC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=fC;function gf(e,t){t===void 0&&(t=!1);var n;if(ny(e))n=new Kv(e.data);else if(ry(e))n=new Zv(e.data);else if(ey(e)){var r=t?au(e.children):[],i=new Jv(e.name,Wi({},e.attribs),r);r.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Wi({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Wi({},e["x-attribsPrefix"])),n=i}else if(ty(e)){var r=t?au(e.children):[],s=new Gv(r);r.forEach(function(u){return u.parent=s}),n=s}else if(sy(e)){var r=t?au(e.children):[],o=new Yv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(iy(e)){var a=new Xv(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}q.cloneNode=gf;function au(e){for(var t=e.map(function(r){return gf(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=He&&He.__createBinding||(Object.create?function(a,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,c,d)}:function(a,l,u,c){c===void 0&&(c=u),a[c]=l[u]}),n=He&&He.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=pf,i=q;n(q,e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=s),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??s,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new i.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(l);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var c=new i.ProcessingInstruction(l,u);this.addNode(c)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(hf);var im="html",sm="head",wo="body",hC=/<([a-zA-Z]+[0-9]?)/,om=/<head[^]*>/i,am=/<body[^]*>/i,_a=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Dc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},lm=typeof window=="object"&&window.DOMParser;if(typeof lm=="function"){var pC=new lm,mC="text/html";Dc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),pC.parseFromString(e,mC)},_a=Dc}if(typeof document=="object"&&document.implementation){var xo=document.implementation.createHTMLDocument();_a=function(e,t){if(t){var n=xo.documentElement.querySelector(t);return n.innerHTML=e,xo}return xo.documentElement.innerHTML=e,xo}}var lu=typeof document=="object"?document.createElement("template"):{},Fc;lu.content&&(Fc=function(e){return lu.innerHTML=e,lu.content.childNodes});function gC(e){var t,n=e.match(hC);n&&n[1]&&(t=n[1].toLowerCase());var r,i,s;switch(t){case im:return r=Dc(e),om.test(e)||(i=r.querySelector(sm),i&&i.parentNode.removeChild(i)),am.test(e)||(i=r.querySelector(wo),i&&i.parentNode.removeChild(i)),r.querySelectorAll(im);case sm:case wo:return r=_a(e),s=r.querySelectorAll(t),am.test(e)&&om.test(e)?s[0].parentNode.childNodes:s;default:return Fc?Fc(e):(i=_a(e,wo).querySelector(wo),i.childNodes)}}var vC=gC,vf={},oy={};oy.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var fl=hf,yC=oy,um=yC.CASE_SENSITIVE_TAG_NAMES,wC=fl.Comment,xC=fl.Element,SC=fl.ProcessingInstruction,bC=fl.Text,ay={},uu;for(var cu=0,EC=um.length;cu<EC;cu++)uu=um[cu],ay[uu.toLowerCase()]=uu;function CC(e){return ay[e]}function ly(e){for(var t={},n,r=0,i=e.length;r<i;r++)n=e[r],t[n.name]=n.value;return t}function kC(e){e=e.toLowerCase();var t=CC(e);return t||e}function uy(e,t,n){t=t||null;for(var r=[],i,s=0,o=e.length;s<o;s++){var a=e[s],l;switch(a.nodeType){case 1:i=kC(a.nodeName),l=new xC(i,ly(a.attributes)),l.children=uy(i==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new bC(a.nodeValue);break;case 8:l=new wC(a.nodeValue);break;default:continue}var u=r[s-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new SC(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}vf.formatAttributes=ly;vf.formatDOM=uy;var OC=vC,RC=vf,PC=RC.formatDOM,jC=/<(![a-zA-Z\s]+)>/;function NC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(jC),n;return t&&t[1]&&(n=t[1]),PC(OC(e),null,n)}var TC=NC,bt={},hl={},_C=0;hl.SAME=_C;var IC=1;hl.CAMELCASE=IC;hl.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(bt,"__esModule",{value:!0});function AC(e,t){return LC(e)||MC(e,t)||DC(e,t)||FC()}function LC(e){if(Array.isArray(e))return e}function MC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function DC(e,t){if(e){if(typeof e=="string")return cm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cm(e,t)}}function cm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
225
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var cy=0,Un=1,pl=2,ml=3,yf=4,dy=5,fy=6;function $C(e){return Ce.hasOwnProperty(e)?Ce[e]:null}function Me(e,t,n,r,i,s,o){this.acceptsBooleans=t===pl||t===ml||t===yf,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ce={},zC=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];zC.forEach(function(e){Ce[e]=new Me(e,cy,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=AC(e,2),n=t[0],r=t[1];Ce[n]=new Me(n,Un,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Me(e,pl,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Me(e,pl,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){Ce[e]=new Me(e,ml,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Me(e,ml,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Me(e,yf,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Me(e,fy,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Me(e,dy,!1,e.toLowerCase(),null,!1,!1)});var wf=/[\-\:]([a-z])/g,xf=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Un,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Un,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Un,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Me(e,Un,!1,e.toLowerCase(),null,!1,!1)});var BC="xlinkHref";Ce[BC]=new Me("xlinkHref",Un,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Me(e,Un,!1,e.toLowerCase(),null,!0,!0)});var Sf=hl,UC=Sf.CAMELCASE,VC=Sf.SAME,dm=Sf.possibleStandardNames,HC=":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",qC=HC+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",QC=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+qC+"]*$")),WC=Object.keys(dm).reduce(function(e,t){var n=dm[t];return n===VC?e[t]=t:n===UC?e[t.toLowerCase()]=t:e[t]=n,e},{});bt.BOOLEAN=ml;bt.BOOLEANISH_STRING=pl;bt.NUMERIC=dy;bt.OVERLOADED_BOOLEAN=yf;bt.POSITIVE_NUMERIC=fy;bt.RESERVED=cy;bt.STRING=Un;bt.getPropertyInfo=$C;bt.isCustomAttribute=QC;bt.possibleStandardNames=WC;var hy={},bf={exports:{}},fm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,KC=/\n/g,ZC=/^\s*/,XC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GC=/^:\s*/,YC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,JC=/^[;\s]*/,e8=/^\s+|\s+$/g,t8=`
226
- `,hm="/",pm="*",Wn="",n8="comment",r8="declaration",i8=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(p){var y=p.match(KC);y&&(n+=y.length);var x=p.lastIndexOf(t8);r=~x?p.length-x:r+p.length}function s(){var p={line:n,column:r};return function(y){return y.position=new o(p),u(),y}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var y=new Error(t.source+":"+n+":"+r+": "+p);if(y.reason=p,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(p){var y=p.exec(e);if(y){var x=y[0];return i(x),e=e.slice(x.length),y}}function u(){l(ZC)}function c(p){var y;for(p=p||[];y=d();)y!==!1&&p.push(y);return p}function d(){var p=s();if(!(hm!=e.charAt(0)||pm!=e.charAt(1))){for(var y=2;Wn!=e.charAt(y)&&(pm!=e.charAt(y)||hm!=e.charAt(y+1));)++y;if(y+=2,Wn===e.charAt(y-1))return a("End of comment missing");var x=e.slice(2,y-2);return r+=2,i(x),e=e.slice(y),r+=2,p({type:n8,comment:x})}}function h(){var p=s(),y=l(XC);if(y){if(d(),!l(GC))return a("property missing ':'");var x=l(YC),m=p({type:r8,property:mm(y[0].replace(fm,Wn)),value:x?mm(x[0].replace(fm,Wn)):Wn});return l(JC),m}}function g(){var p=[];c(p);for(var y;y=h();)y!==!1&&(p.push(y),c(p));return p}return u(),g()};function mm(e){return e?e.replace(e8,Wn):Wn}var s8=i8;function py(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=s8(e),s=typeof t=="function",o,a,l=0,u=i.length;l<u;l++)r=i[l],o=r.property,a=r.value,s?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}bf.exports=py;bf.exports.default=py;var o8=bf.exports,gl={};gl.__esModule=!0;gl.camelCase=void 0;var a8=/^--[a-zA-Z0-9-]+$/,l8=/-([a-z])/g,u8=/^[^-]+$/,c8=/^-(webkit|moz|ms|o|khtml)-/,d8=/^-(ms)-/,f8=function(e){return!e||u8.test(e)||a8.test(e)},h8=function(e,t){return t.toUpperCase()},gm=function(e,t){return"".concat(t,"-")},p8=function(e,t){return t===void 0&&(t={}),f8(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(d8,gm):e=e.replace(c8,gm),e.replace(l8,h8))};gl.camelCase=p8;(function(e){var t=He&&He.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};e.__esModule=!0;var n=t(o8),r=gl;function i(s,o){var a={};return!s||typeof s!="string"||(0,n.default)(s,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=i})(hy);var m8=b,g8=hy.default;function v8(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,i=typeof t=="function",s={},o={};for(n in e){if(r=e[n],i&&(s=t(n,r),s&&s.length===2)){o[s[0]]=s[1];continue}typeof r=="string"&&(o[r]=n)}return o}function y8(e,t){if(e.indexOf("-")===-1)return t&&typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var w8={reactCompat:!0};function x8(e,t){if(e!=null)try{t.style=g8(e,w8)}catch{t.style={}}}var S8=m8.version.split(".")[0]>=16,my=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function b8(e){return!my.has(e.name)}var gy={PRESERVE_CUSTOM_ATTRIBUTES:S8,invertObject:v8,isCustomComponent:y8,setStyleProp:x8,canTextBeChildOfNode:b8,elementsWithNoTextChildren:my},ji=bt,vm=gy,E8=["checked","value"],C8=["input","select","textarea"],k8={reset:!0,submit:!0},vy=function(t,n){t=t||{};var r,i,s,o,a,l={},u=t.type&&k8[t.type];for(r in t){if(s=t[r],ji.isCustomAttribute(r)){l[r]=s;continue}if(i=r.toLowerCase(),o=ym(i),o){switch(a=ji.getPropertyInfo(o),E8.indexOf(o)!==-1&&C8.indexOf(n)!==-1&&!u&&(o=ym("default"+i)),l[o]=s,a&&a.type){case ji.BOOLEAN:l[o]=!0;break;case ji.OVERLOADED_BOOLEAN:s===""&&(l[o]=!0);break}continue}vm.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=s)}return vm.setStyleProp(t.style,l),l};function ym(e){return ji.possibleStandardNames[e]}var O8=b,R8=vy,Ia=gy,P8=Ia.setStyleProp,j8=Ia.canTextBeChildOfNode;function yy(e,t){t=t||{};for(var n=t.library||O8,r=n.cloneElement,i=n.createElement,s=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,g=t.trim,p=0,y=e.length;p<y;p++){if(a=e[p],u&&(c=t.replace(a),s(c))){y>1&&(c=r(c,{key:c.key||p})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!j8(a.parent)||g&&l)continue;o.push(a.data);continue}switch(d=a.attribs,N8(a)?P8(d.style,d):d&&(d=R8(d,a.name)),h=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(h=yy(a.children,t));break;default:continue}y>1&&(d.key=p),o.push(i(a.name,d,h))}return o.length===1?o[0]:o}function N8(e){return Ia.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Ia.isCustomComponent(e.name,e.attribs)}var T8=yy,vl=hf,Nr=TC,_8=vy,wy=T8;Nr=typeof Nr.default=="function"?Nr.default:Nr;var I8={lowerCaseAttributeNames:!1};function Wt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},wy(Nr(e,t.htmlparser2||I8),t))}Wt.domToReact=wy;Wt.htmlToDOM=Nr;Wt.attributesToProps=_8;Wt.Comment=vl.Comment;Wt.Element=vl.Element;Wt.ProcessingInstruction=vl.ProcessingInstruction;Wt.Text=vl.Text;var A8=Wt;Wt.default=Wt;const Vn=Ps(A8);var So=Vn.domToReact;Vn.htmlToDOM;var du=Vn.attributesToProps;Vn.Comment;Vn.Element;Vn.ProcessingInstruction;Vn.Text;function L8(){var y;const{appCode:e}=St(),{theme:t}=Fd(),[n,r]=b.useState(""),[i,s]=b.useState(!0),[o,a]=b.useState(!1),[l,u]=b.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";b.useEffect(()=>{(async()=>{let x="";x=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?x=c+"/application/portal/":window.location.pathname==="/adapter"?x=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?x=c+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(x=c+"/application/userbook/");try{const m=await fetch(x),v=await m.text();if(m.status===404){u(!0);return}r(v),u(!1)}catch{u(!0)}})()},[e,c]);const h=Vn(n,{replace:x=>{const m=x;if(m.attribs&&m.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(ni,{onClick:()=>{s(!i)},children:f.jsx(l3,{})}),So(m.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:So(w.children,{replace:S=>{const C=S;if(C.attribs&&C.name==="a")return f.jsx("a",{...du(C.attribs),children:f.jsx("span",{onClick:()=>{s(!1)},children:So(C.children)})})}})})}})]});if(m.attribs&&m.attribs.class==="section level2"){const v=du(x.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:m.attribs.id!=="présentation"?"none":"block"},children:So(m.children,{replace:w=>{const S=w;if(S.attribs&&S.name==="p")return f.jsx(f.Fragment,{});if(S.attribs&&S.name==="img"){const C=w.attribs.src;return f.jsx("img",{...du(S.attribs),src:`${c}/${C}`,alt:""})}}})})}}}),g=(y=h==null?void 0:h.props)==null?void 0:y.children.find(x=>x.type==="body").props.children,p=g==null?void 0:g.find(x=>x.type==="p").props.children;return{html:n,visibility:i,isModalOpen:o,setIsModalOpen:a,parsedContent:g,parsedHeadline:p,error:l}}const xy=()=>{const[e,t]=g0(),n=b.useRef(null),r=b.useId(),{t:i}=xe();function s(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(de,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[f.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[f.jsx(c5,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:i("navbar.search")})]}),f.jsx(ff,{id:r,isVisible:t,children:f.jsxs(Mc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(Mc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(F0,{type:"submit",size:"sm",onClick:s,"aria-label":i("navbar.search")})]})})]})};xy.displayName="SearchEngine";const M8=xy;function wm({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:i}){const{t:s}=xe(),o=()=>{t(!1)};return e?Ls.createPortal(f.jsxs(Cn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"xl",children:[f.jsx(Cn.Header,{onModalClose:o,children:s("navbar.help")}),f.jsx(Cn.Subtitle,{children:i?s("help.notfound.title"):n}),f.jsx(Cn.Body,{className:i?"d-flex":null,children:i?s("help.notfound.text"):r})]}),document.getElementById("portal")):null}const Sy=({is1d:e=!1,src:t=""})=>{const{t:n}=xe(),{messages:r,msgLink:i,zimbraWorkflow:s}=uC(),{user:o,avatar:a}=$d(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=L8(),g=K("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:y,appsRef:x,isAppsHovered:m,popoverAppsId:v,userAvatar:w,userName:S,welcomeUser:C,communityWorkflow:k,conversationWorflow:O,searchWorkflow:R,isCollapsed:I,toggleCollapsedNav:A,handleLogout:M}=e4({user:o,avatar:a}),z=r>0;return f.jsx("header",{className:g,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(ou,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:p}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(wp,{alt:S,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:C})]}),f.jsxs(rm,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[O&&f.jsx(de,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(o5,{className:"icon notification"}),z&&f.jsx(su,{children:r}),f.jsx(Pi,{children:n("navbar.messages")})]})}),f.jsx(de,{children:f.jsx(Si,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(l5,{className:"icon user"})})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(i5,{className:"icon help"}),f.jsx(Pi,{children:n("navbar.help")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{children:f.jsxs("button",{className:"nav-link",onClick:M,children:[f.jsx(xp,{className:"icon logout"}),f.jsx(Pi,{children:n("navbar.disconnect")})]})}),f.jsx(de,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!I,"aria-label":n("navbar.secondary.navigation"),onClick:A,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(ou,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:f.jsx("div",{className:"container-fluid",children:f.jsxs("div",{className:`collapse navbar-collapse ${I?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(nm,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(rm,{className:"gap-8",children:[f.jsx(de,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(n5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(f5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(Sp,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(ou,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(nm,{src:`${t}/img/illustrations/logo.png`}),f.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:p}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(de,{children:f.jsx(Si,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx(X3,{color:"#fff"})})}),f.jsxs(de,{className:"position-relative",ref:x,id:v,"aria-haspopup":"true","aria-expanded":m,children:[f.jsx(Si,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(Sp,{color:"#fff"})}),f.jsxs(ff,{className:"top-100 widget",id:v,isVisible:m,children:[f.jsx(rC,{children:f.jsx(dC,{bookmarkedApps:y})}),f.jsx(iC,{className:"widget-footer border-top border-ghost",children:f.jsx(cC,{})})]})]}),O&&f.jsx(de,{children:f.jsxs(Si,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),s&&f.jsx(de,{children:f.jsxs(Si,{className:"position-relative",link:i,translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(J3,{color:"#fff"}),f.jsx(Pi,{children:n("support")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{children:f.jsxs("div",{className:"dropdown",children:[f.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!I,"aria-label":n("navbar.open.menu"),onClick:A,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${I?"":"show"}`,id:"dropdown-navbar",children:[k&&f.jsx(de,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(W3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),R?f.jsx(M8,{}):null,f.jsx(de,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(wp,{alt:S,size:"sm",src:w,variant:"circle",className:"bg-white",width:"32",height:"32"}),f.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),f.jsx(de,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(de,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(xp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};Sy.displayName="Header";const D8=Sy;function by({children:e,className:t,...n}){const r=K("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}by.displayName="Main";const Ey=({children:e,...t})=>{const{theme:n}=Fd();return f.jsxs(f.Fragment,{children:[f.jsx(D8,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(by,{className:K("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),f.jsx(W4,{toastOptions:{position:"top-right"}})]})};Ey.displayName="Layout";const F8=Ey,$8=function(){return null};var Cy,xm=Ls;Cy=xm.createRoot,xm.hydrateRoot;const bo=document.querySelector("[data-ode-app]");let bi;function Vs(){var e;if(bi)return bi;if(bi={app:Eo.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=bo==null?void 0:bo.dataset)!=null&&e.odeApp){const{odeApp:t}=bo.dataset;try{const n=JSON.parse(t);Object.assign(bi,n)}catch{}}return bi}const Sm=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},i=()=>t,a={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,i,a),a},z8=e=>e?Sm(e):Sm;var ky={exports:{}},Oy={};/**
224
+ `,mo=16,W4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:s,containerClassName:o})=>{let{toasts:a,handlers:l}=S4(n);return b.createElement("div",{style:{position:"fixed",zIndex:9999,top:mo,left:mo,right:mo,bottom:mo,pointerEvents:"none",...s},className:o,onMouseEnter:l.startPause,onMouseLeave:l.endPause},a.map(u=>{let c=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),h=q4(c,d);return b.createElement(H4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?Q4:"",style:h},u.type==="custom"?ka(u.message,u):i?i(u):b.createElement(V4,{toast:u,position:c}))}))},vi=nt;function At(e){return{hotToast:{success:(n,r)=>vi.custom(f.jsx(e,{type:"success",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),error:(n,r)=>vi.custom(f.jsx(e,{type:"danger",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),info:(n,r)=>vi.custom(f.jsx(e,{type:"info",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),warning:(n,r)=>vi.custom(f.jsx(e,{type:"warning",isToast:!0,isDismissible:r==null?void 0:r.isDismissible,className:"mb-12",children:n}),{duration:r==null?void 0:r.duration}),loading:vi.loading}}}function K4({src:e,placeholder:t}){const[n,r]=b.useState(e||t),i=b.useCallback(()=>{r(t)},[t]);return b.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:i}}function Z4(e,t){const n=b.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);b.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function X4(e=!1){const[t,n]=b.useState(e),r=b.useCallback(()=>{n(i=>!i)},[]);return[t,r]}function G4(e,t){const[n,r]=b.useState(e);return b.useEffect(()=>{const i=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(i)}},[e,t]),n}function Y4(){const e=b.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return b.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],i=n.querySelectorAll(t),s=e&&(i==null?void 0:i[i.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(s.focus(),a.preventDefault()):document.activeElement===s&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function J4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const b0=b.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));b0.displayName="ActionBar";const e3=b0,t3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 6a1 1 0 0 1 1 1v5a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1ZM11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z",clipRule:"evenodd"})]}),n3=t3,r3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.707 4.293a1 1 0 0 1 0 1.414L6.414 12l6.293 6.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z",clipRule:"evenodd"})]}),i3=r3,s3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 12a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H5a1 1 0 0 1-1-1Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L17.586 12l-6.293-6.293a1 1 0 0 1 0-1.414Z",clipRule:"evenodd"})]}),Ek=s3,o3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M7 4a1 1 0 0 0-1 1v14.06l5.42-3.87a1 1 0 0 1 1.16 0L18 19.06V5a1 1 0 0 0-1-1H7zM4.88 2.88A3 3 0 0 1 7 2h10a3 3 0 0 1 3 3v16a1 1 0 0 1-1.58.81L12 17.23 5.58 21.8A1 1 0 0 1 4 21V5a3 3 0 0 1 .88-2.12z"})]}),Ck=o3,a3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5ZM21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5ZM21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5Z",clipRule:"evenodd"})]}),l3=a3,u3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.222 4.222a1.1 1.1 0 0 1 1.556 0l14 14a1.1 1.1 0 1 1-1.556 1.556l-14-14a1.1 1.1 0 0 1 0-1.556Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.778 4.222a1.1 1.1 0 0 1 0 1.556l-14 14a1.1 1.1 0 1 1-1.556-1.556l14-14a1.1 1.1 0 0 1 1.556 0Z",clipRule:"evenodd"})]}),kk=u3,c3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.676 3c.284-.672.853-1 1.263-1h11.423c.566 0 1.438.628 1.438 1.923v13.154c0 1.056-.58 1.668-1.1 1.858V6.923C19.7 4.99 18.3 3 16.061 3H6.676Zm-2.272.007C4.765 1.41 6.056 0 7.939 0h11.423C21.599 0 23 1.99 23 3.923v13.154c0 1.865-1.303 3.782-3.403 3.916C19.235 22.59 17.944 24 16.06 24H4.638C2.401 24 1 22.01 1 20.077V6.923c0-1.865 1.303-3.782 3.404-3.916ZM3.2 6.923C3.2 5.628 4.072 5 4.638 5h11.423c.567 0 1.439.628 1.439 1.923v13.154c0 1.295-.872 1.923-1.439 1.923H4.638c-.566 0-1.438-.628-1.438-1.923V6.923Z",clipRule:"evenodd"})]}),Ok=c3,d3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.461 3.689a.955.955 0 0 1 .675-.28h3.819a.955.955 0 0 1 .954.955v.954H9.182v-.954c0-.254.1-.496.28-.675Zm7.357.675v.954H20.636a.955.955 0 0 1 0 1.91h-.954v12.408a2.864 2.864 0 0 1-2.864 2.864H7.273a2.864 2.864 0 0 1-2.864-2.864V7.227h-.954a.955.955 0 1 1 0-1.909H7.273v-.954A2.864 2.864 0 0 1 10.136 1.5h3.819a2.864 2.864 0 0 1 2.863 2.864Zm-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227H6.318Zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955Zm4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0Z",clipRule:"evenodd"})]}),f3=d3,h3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.879 3.879A3 3 0 0 1 4 3h7a1 1 0 1 1 0 2H4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7a1 1 0 1 1 2 0v7a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V6a3 3 0 0 1 .879-2.121Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20 2.879c-.297 0-.583.118-.793.328l-9.304 9.304-.529 2.115 2.115-.529 9.304-9.304A1.121 1.121 0 0 0 20 2.879Zm-2.207-1.086a3.121 3.121 0 0 1 4.414 4.414l-9.5 9.5a1 1 0 0 1-.464.263l-4 1a1 1 0 0 1-1.213-1.212l1-4a1 1 0 0 1 .263-.465l9.5-9.5Z",clipRule:"evenodd"})]}),Rk=h3,p3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0Zm9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1ZM8.293 15.707a1 1 0 0 1 0-1.414L10.586 12 8.293 9.707a1 1 0 0 1 1.414-1.414L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414 0Z",clipRule:"evenodd"})]}),m3=p3,g3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77.13.29.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32Z",clipRule:"evenodd"})]}),Pk=g3,v3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.093 2.58A1 1 0 0 1 2 2h20a1 1 0 0 1 .764 1.646L15 12.826V21a1 1 0 0 1-1.447.894l-4-2A1 1 0 0 1 9 19v-6.174l-7.764-9.18a1 1 0 0 1-.143-1.067ZM4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155Z",clipRule:"evenodd"})]}),y3=v3,w3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3.057 5.5A.057.057 0 0 0 3 5.557v13.03h18V7.875h-8.697a1 1 0 0 1-1-1c0-.759-.615-1.374-1.374-1.374H3.057ZM1 5.557C1 4.42 1.92 3.5 3.057 3.5h6.872c1.515 0 2.797.999 3.223 2.374H21a2 2 0 0 1 2 2v10.714a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V5.557Z",clipRule:"evenodd"})]}),x3=w3,S3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.726 3.29A9.008 9.008 0 0 0 3.055 11H7.05a16.3 16.3 0 0 1 2.676-7.71Zm4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71Zm.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11h5.884Zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13ZM7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13Zm7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71ZM12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11Z",clipRule:"evenodd"})]}),jk=S3,b3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.01 17a1 1 0 0 1-1-1v-5a1 1 0 1 1 2 0v5a1 1 0 0 1-1 1ZM13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z",clipRule:"evenodd"})]}),E3=b3,C3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.672 5.558a7.96 7.96 0 0 0-9.841.397 7.95 7.95 0 0 0-1.908 9.66 7.964 7.964 0 0 0 8.949 4.12A7.948 7.948 0 0 0 19.962 12a1.021 1.021 0 1 1 2.045 0A9.994 9.994 0 0 1 7.83 21.083a10.01 10.01 0 0 1-5.634-11.027 9.991 9.991 0 0 1 9.402-8.048c2.244-.09 4.453.577 6.272 1.895a1.022 1.022 0 1 1-1.198 1.655Z",clipRule:"evenodd"})]}),k3=C3,O3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),f.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),Nk=O3,R3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13 4a1 1 0 1 0-2 0v7H4a1 1 0 1 0 0 2h7v7a1 1 0 1 0 2 0v-7h7a1 1 0 1 0 0-2h-7V4Z",clipRule:"evenodd"})]}),P3=R3,j3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.012 7.871a1.5 1.5 0 0 1 2.117.141L12 14.722l5.871-6.71a1.5 1.5 0 1 1 2.258 1.976l-7 8a1.5 1.5 0 0 1-2.258 0l-7-8a1.5 1.5 0 0 1 .141-2.117Z",clipRule:"evenodd"})]}),wc=j3,N3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.129 4.012a1.5 1.5 0 0 1-.141 2.117L9.278 12l6.71 5.871a1.5 1.5 0 0 1-1.976 2.258l-8-7a1.5 1.5 0 0 1 0-2.258l8-7a1.5 1.5 0 0 1 2.117.141Z",clipRule:"evenodd"})]}),T3=N3,_3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.871 19.988a1.5 1.5 0 0 1 .141-2.117L14.722 12l-6.71-5.871A1.5 1.5 0 0 1 9.988 3.87l8 7a1.5 1.5 0 0 1 0 2.258l-8 7a1.5 1.5 0 0 1-2.117-.141Z",clipRule:"evenodd"})]}),yp=_3,I3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.988 17.129a1.5 1.5 0 0 1-2.117-.141L12 10.278l-5.871 6.71a1.5 1.5 0 0 1-2.258-1.976l7-8a1.5 1.5 0 0 1 2.258 0l7 8a1.5 1.5 0 0 1-.141 2.117Z",clipRule:"evenodd"})]}),A3=I3,L3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5 4a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h1v-7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7h1a1 1 0 0 0 1-1V8.414L15.586 4H8v3h7a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1V4H5Zm2-2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a1 1 0 0 0-.293-.707l-5-5A1 1 0 0 0 16 2H7Zm1 12v6h8v-6H8Z",clipRule:"evenodd"})]}),Tk=L3,M3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0Zm7-9a9 9 0 1 0 5.7 15.96 1 1 0 0 0 .24.4l4.35 4.35a1 1 0 0 0 1.42-1.42l-4.35-4.35a1 1 0 0 0-.4-.24A9 9 0 0 0 11 1Z",clipRule:"evenodd"})]}),D3=M3,F3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Z",clipRule:"evenodd"}),f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.59 8.192a1 1 0 0 1 .218 1.397l-4.375 6a1 1 0 0 1-1.584.042L8.224 12.4a1 1 0 0 1 1.552-1.261l1.806 2.223 3.61-4.951a1 1 0 0 1 1.397-.219Z",clipRule:"evenodd"})]}),$3=F3,z3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:f.jsx("path",{d:"M19.055 12.803a1 1 0 0 1 1.272-.618c1.128.39 2.061 1.247 2.7 2.351.64 1.106.972 2.435.973 3.782V21a1 1 0 1 1-2 0v-2.681c0-1.03-.258-2.009-.704-2.782-.448-.773-1.034-1.258-1.623-1.462a1 1 0 0 1-.618-1.272ZM15.187 1.384a1 1 0 0 1 1.036-.962 5.129 5.129 0 0 1 2.11 9.71 1 1 0 1 1-.896-1.788 3.129 3.129 0 0 0-1.288-5.924 1 1 0 0 1-.962-1.036ZM1.505 15.694C2.481 14.622 3.825 14 5.25 14h8.5c1.424 0 2.769.622 3.744 1.694.974 1.068 1.506 2.498 1.506 3.973V22a1 1 0 1 1-2 0v-2.333c0-1.001-.363-1.945-.984-2.627-.618-.679-1.436-1.04-2.266-1.04h-8.5c-.83 0-1.648.361-2.266 1.04-.621.682-.984 1.626-.984 2.627V22a1 1 0 1 1-2 0v-2.333c0-1.475.533-2.905 1.505-3.974ZM9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7ZM4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),_k=z3;function E0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=E0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Z(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=E0(e))&&(r&&(r+=" "),r+=t);return r}const C0=b.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:i=!1,isToast:s=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=b.useState(!0),g=b.useRef(null),p=b.useCallback(()=>{h(!1),l==null||l()},[l]);b.useImperativeHandle(c,()=>({show:y,hide:p,...g.current})),b.useLayoutEffect(()=>{u==null||u(d)},[d,u]),b.useEffect(()=>{o&&d&&setTimeout(()=>{p()},a)},[o,a,p,d]);const y=()=>{h(!0)},x={success:{icon:f.jsx($3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(n3,{}),classModifier:"alert-warning"},info:{icon:f.jsx(E3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(m3,{}),classModifier:"alert-danger"}},m={"is-dismissible":i,"is-toast ":s},v=Z("alert gap-12",x[e].classModifier,m,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:g,className:v,role:"alert",children:[x[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),i&&f.jsx("div",{className:"btn-close-container",children:f.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:p})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});C0.displayName="Alert";const Lt=C0,k0=b.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const i=Z("d-flex p-16 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return f.jsxs("div",{ref:r,className:i,children:[e,t?f.jsx("div",{className:"d-flex align-items-center gap-8",children:t()}):null]})});k0.displayName="AppHeader";const B3=k0,O0=b.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:i,className:s,...o},a)=>{const[l]=Ya(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=K4({src:e,placeholder:u}),h={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},g={"object-fit-contain":i==="contain","object-fit-cover":i==="cover","object-fit-fill":i==="fill","object-fit-scale":i==="scale","object-fit-none":i==="none"},p=Z({...h}),y=Z({...g},s),x=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:p,children:x}):x});O0.displayName="Image";const R0=O0,P0=b.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},i)=>{const{isIconUrl:s,getIconCode:o}=v0(),[,a]=Ya(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",g={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},p={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},x=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",m=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=s(x),S=v||"placeholder",C=Z("app-icon",{...g,...p,...y,[`bg-light-${S}`]:S&&!d,[`color-app-${S}`]:S});return w?f.jsx(R0,{src:x,alt:m,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:i,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:f.jsx("use",{xlinkHref:`${a}/apps.svg#${S}`})})})});P0.displayName="AppIcon";const xc=P0,j0=b.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:i,className:s,...o},a)=>{const[l]=Ya(),u=i||`${l}/avatar/no-avatar.svg`,y=Z("avatar",{...{"avatar-xs":t==="xs","avatar-sm":t==="sm","avatar-md":t==="md","avatar-lg":t==="lg","avatar-xl":t==="xl"},...{square:e==="square",rounded:e==="rounded","rounded-circle":e==="circle"}},s);return f.jsx("div",{ref:a,className:y,children:f.jsx(R0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});j0.displayName="Avatar";const wp=j0,N0=b.forwardRef(({children:e,className:t,...n},r)=>{const i=Z("breadcrumb-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});N0.displayName="BreadcrumbItem";const Yl=N0,T0=b.forwardRef(({children:e,className:t},n)=>{const r=Z("breadcrumb d-flex align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});T0.displayName="BreadcrumbList";const U3=T0,_0=b.forwardRef(({children:e,app:t,className:n},r)=>{const{t:i}=xe(),{getIconClass:s}=v0(),o=Z("d-flex align-items-center mb-0",s(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":i("breadcrumb"),style:a,children:e})});_0.displayName="BreadcrumbNav";const V3=_0,I0=b.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:i="left",children:s,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(k3,{...o,"aria-label":"Loading"}),u},l=Z("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!i||i==="left")&&a(),s,i==="right"&&a()]})});I0.displayName="Loading";const H3=I0,A0=b.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:i,loadingIcon:s,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const g=Z("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":i,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:g,type:t,...d,children:i?f.jsx(H3,{isLoading:!0,loadingIcon:s,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});A0.displayName="Button";const ri=A0,L0=b.forwardRef(({icon:e,className:t,...n},r)=>{const i={...n,className:Z("btn-icon",t)};return f.jsx(ri,{ref:r,...i,children:e})});L0.displayName="IconButton";const zd=L0,M0=b.forwardRef(({app:e,name:t},n)=>{const{t:r}=xe();return f.jsx(V3,{app:e,ref:n,children:f.jsx(U3,{className:"gap-12",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Yl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(zd,{variant:"ghost",color:"tertiary",icon:f.jsx(T3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(xc,{app:e,size:"40"})]})}),f.jsx(Yl,{className:"h3","aria-current":"page",children:f.jsx("h1",{className:"h3",children:t})})]}):f.jsxs(Yl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(xc,{app:e,size:"40"}),f.jsx("h1",{className:"h3",children:r(e==null?void 0:e.displayName)})]})})})});M0.displayName="Breadcrumb";const q3=M0,D0=b.forwardRef(({icon:e=f.jsx(D3,{}),onClick:t,...n},r)=>{const i=Z("btn-search btn-sm");return f.jsx(zd,{ref:r,className:i,icon:e,...n,onClick:t})});D0.displayName="SearchButton";const F0=D0,Q3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M19.935 17.51c.725 0 1.348.264 1.868.792.52.529.78 1.162.78 1.898 0 .737-.26 1.37-.78 1.898-.52.529-1.135.793-1.844.793-.71 0-1.333-.264-1.869-.793a2.52 2.52 0 0 1-.78-1.922c0-.288.063-.6.19-.936l-3.997-2.931c-.773.8-1.703 1.2-2.79 1.2-1.089 0-2.019-.392-2.791-1.176-.773-.785-1.167-1.738-1.183-2.86 0-.143.024-.352.071-.624l-3.168-1.057a1.248 1.248 0 0 1-.852.337c-.378 0-.693-.129-.946-.385a1.315 1.315 0 0 1-.378-.96c0-.385.126-.698.378-.938.253-.24.568-.368.946-.384.316 0 .584.104.804.312.221.208.37.457.45.745l3.192 1.08a3.798 3.798 0 0 1 1.443-1.56 3.839 3.839 0 0 1 2.033-.577c.82 0 1.577.248 2.27.745l4.706-4.781c-.252-.48-.378-.921-.378-1.321 0-.737.26-1.37.78-1.898.52-.529 1.143-.793 1.869-.793.725 0 1.34.264 1.844.793.505.528.765 1.16.78 1.898a2.417 2.417 0 0 1-.78 1.873c-.536.513-1.159.777-1.868.793-.41 0-.844-.136-1.3-.408l-4.707 4.804c.49.705.733 1.474.733 2.307 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624Z"})]}),W3=Q3,K3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M22.995 13.153c0 1.393-.29 2.722-.872 3.987a10.627 10.627 0 0 1-2.336 3.292c-.975.929-2.147 1.665-3.516 2.21-1.369.544-2.79.817-4.26.817-1.472 0-2.9-.273-4.287-.817-1.386-.545-2.55-1.281-3.49-2.21a12.338 12.338 0 0 1-2.362-3.291A8.11 8.11 0 0 1 1 13.152c0-1.634.385-3.164 1.155-4.589.77-1.425 1.848-2.634 3.234-3.627.411-.289.873-.4 1.386-.337.514.064.907.289 1.181.673.308.368.428.793.36 1.273-.07.48-.309.857-.72 1.13a6.993 6.993 0 0 0-2.155 2.426 6.383 6.383 0 0 0-.18 5.717 6.98 6.98 0 0 0 1.566 2.186c.65.609 1.428 1.097 2.335 1.466a7.498 7.498 0 0 0 2.85.552 7.31 7.31 0 0 0 2.823-.552 8.296 8.296 0 0 0 2.36-1.466 6.04 6.04 0 0 0 1.567-2.186c.359-.849.547-1.738.564-2.666 0-1.09-.256-2.107-.77-3.051-.513-.945-1.232-1.754-2.156-2.427a1.752 1.752 0 0 1-.719-1.129c-.085-.464.035-.889.36-1.273.29-.384.693-.609 1.206-.673.514-.064.967.048 1.36.337 1.386.977 2.464 2.186 3.234 3.627a9.599 9.599 0 0 1 1.155 4.589ZM13.833 2.846v8.6c0 .465-.18.866-.54 1.202-.359.336-.786.505-1.283.505-.496 0-.932-.169-1.309-.505-.376-.336-.556-.737-.539-1.201v-8.6c0-.465.18-.865.54-1.202.359-.336.795-.504 1.308-.504.514 0 .941.168 1.284.504.342.337.521.737.539 1.201Z"})]}),xp=K3,Z3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M20.584 13.536v7.458c0 .28-.098.512-.294.699a1.062 1.062 0 0 1-.667.307H13.91v-5.978h-3.817V22H4.383a.848.848 0 0 1-.668-.307 1.162 1.162 0 0 1-.293-.699v-7.569l8.567-7.375 8.568 7.375c.018.018.027.055.027.111Zm3.31-1.09-.908 1.146a.543.543 0 0 1-.32.168h-.054a.59.59 0 0 1-.32-.084L11.989 4.682 1.687 13.676a.505.505 0 0 1-.347.084.544.544 0 0 1-.32-.168l-.935-1.145a.524.524 0 0 1-.08-.363.589.589 0 0 1 .16-.335l10.703-9.33c.32-.28.694-.419 1.121-.419.427 0 .81.14 1.148.419l3.63 3.156V2.56c0-.15.044-.27.133-.363a.458.458 0 0 1 .347-.14h2.856c.143 0 .258.046.347.14a.504.504 0 0 1 .134.363v6.34l3.256 2.85c.107.074.16.186.16.335 0 .149-.036.27-.107.363Z"})]}),X3=Z3,G3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.898 22.555c-.072-.145-.096-1.37-.048-2.691l.048-2.402h5.261v5.26l-2.595.049c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.049-.145-.073-1.37-.049-2.691l.072-2.402h5.238v5.26l-2.571.049c-2.018.048-2.595 0-2.69-.216Zm7.759 0c-.048-.145-.072-1.37-.048-2.691l.072-2.402h5.237v5.26l-2.57.049c-1.994.048-2.595 0-2.691-.216Zm-15.52-7.76c-.071-.168-.095-1.37-.047-2.69l.048-2.403h5.261v5.261l-2.595.048c-1.994.048-2.594 0-2.666-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.238v5.261l-2.571.048c-2.018.048-2.595 0-2.69-.216Zm7.76 0c-.048-.168-.072-1.37-.048-2.69l.072-2.403h5.237v5.261l-2.57.048c-1.994.048-2.595 0-2.691-.216ZM1.897 7.011c-.071-.144-.095-1.345-.047-2.666l.048-2.402h5.261V7.18l-2.595.072c-1.994.048-2.594 0-2.666-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.238V7.18l-2.571.072c-2.018.048-2.595 0-2.69-.24Zm7.76 0c-.048-.144-.072-1.345-.048-2.666l.072-2.402h5.237V7.18l-2.57.072c-1.994.048-2.595 0-2.691-.24Z"})]}),Sp=G3,Y3=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12ZM7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.668.668 0 0 1-.945.121L7.27 8.63a.718.718 0 0 1-.147-.963ZM9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03 0 1.119-.883 2.029-1.968 2.029-1.086 0-1.969-.91-1.969-2.03Z",clipRule:"evenodd"})]}),J3=Y3,e5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5Zm0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.023v3.387l-11.511 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415Z"})]}),bp=e5,t5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53h2.14zm0 4.4v-2.2h-2.14v2.2h2.14zM24 12l-2.65 3.01.35 4.04-3.93.86-2.04 3.48L12 21.8l-3.73 1.6-2.04-3.42-3.93-.92.35-4.04L0 12l2.65-3.06-.35-3.99 3.93-.86L8.27.6 12 2.2 15.73.6l2.04 3.48 3.93.86L21.34 9z"})]}),n5=t5,r5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M11.684 2C8.66 2 6.702 3.277 5.165 5.556A.958.958 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6Zm-.38 14.588c-1.446 0-2.624 1.214-2.624 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706Z"})]}),i5=r5,s5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.051 12.366a455.802 455.802 0 0 1-2.746-1.822A6.543 6.543 0 0 1 .74 9.067C.248 8.44.002 7.859.002 7.322a2.7 2.7 0 0 1 .141-.905c.098-.286.242-.542.424-.752C.935 5.222 1.462 5 2.15 5h19.7c.541-.016 1.071.195 1.507.6.424.4.636.882.636 1.446 0 .673-.218 1.317-.657 1.93a6.217 6.217 0 0 1-1.632 1.567c-3.358 2.226-5.447 3.61-6.267 4.156l-.242.167-.323.222a15.448 15.448 0 0 1-1.42.902 4.052 4.052 0 0 1-.77.345 2.215 2.215 0 0 1-.67.115h-.026a2.222 2.222 0 0 1-.67-.116 4.052 4.052 0 0 1-.77-.344c-.272-.154-.506-.29-.697-.415a30.199 30.199 0 0 1-.723-.487c-.288-.2-.477-.33-.565-.389-.81-.545-1.98-1.323-3.51-2.334Zm10.943 3.962c1.517-1.052 3.74-2.524 6.667-4.416.478-.306.927-.68 1.339-1.113v10.16c0 .564-.209 1.044-.63 1.446-.437.405-.97.614-1.512.594H2.149c-.545.02-1.08-.192-1.52-.601C.21 21.995 0 21.52 0 20.95V10.8c.416.437.871.81 1.356 1.113 3.232 2.099 5.45 3.571 6.656 4.416.512.358.926.637 1.243.837a7.7 7.7 0 0 0 1.265.614c.475.198.97.303 1.47.313h.026c.5-.01.995-.115 1.47-.313a7.647 7.647 0 0 0 1.265-.614c.32-.2.735-.479 1.243-.837Z",clipRule:"evenodd"})]}),o5=s5,a5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:f.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51Zm0 16.64a9.27 9.27 0 0 1-7.09-3.3 5.4 5.4 0 0 1 4.77-2.9c.11 0 .23.03.34.06.63.2 1.29.33 1.98.33.7 0 1.35-.13 1.98-.33.11-.03.23-.05.34-.05a5.4 5.4 0 0 1 4.77 2.89 9.27 9.27 0 0 1-7.09 3.3Z"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),l5=a5,u5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M1.27 11.552a7.745 7.745 0 0 1 0-4.156c.38-1.377 1.095-2.579 2.149-3.604a7.928 7.928 0 0 1 2.716-1.777c1.02-.4 2.074-.6 3.161-.6 1.07 0 2.115.2 3.136.6 1.02.4 1.926.993 2.716 1.777a7.904 7.904 0 0 1 1.902 2.86 7.812 7.812 0 0 1 .518 3.29 7.647 7.647 0 0 1-.889 3.171c.461.129.865.36 1.21.697l4.297 4.156c.576.56.864 1.241.864 2.042 0 .801-.288 1.482-.864 2.042-.576.56-1.276.841-2.099.841-.823 0-1.523-.28-2.099-.84l-4.272-4.18a2.423 2.423 0 0 1-.74-1.178 8.302 8.302 0 0 1-3.68.84c-1.087 0-2.14-.2-3.16-.6a8.102 8.102 0 0 1-2.717-1.753 7.854 7.854 0 0 1-2.149-3.628Zm2.495-2.066c0 1.49.535 2.755 1.605 3.796 1.086 1.04 2.395 1.561 3.926 1.561 1.515 0 2.807-.52 3.877-1.561 1.07-1.041 1.613-2.307 1.63-3.796.016-1.49-.527-2.755-1.63-3.796-1.087-1.057-2.379-1.585-3.877-1.585-1.515 0-2.823.528-3.926 1.585C4.3 6.731 3.765 7.996 3.765 9.486Z"})]}),c5=u5,d5=({title:e,titleId:t,...n})=>f.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true","aria-labelledby":t,...n,children:[e?f.jsx("title",{id:t,children:e}):null,f.jsx("path",{fill:"currentColor",d:"M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z"})]}),f5=d5;var Ep=function(t){return t.reduce(function(n,r){var i=r[0],s=r[1];return n[i]=s,n},{})},Cp=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect,Ze="top",xt="bottom",St="right",Xe="left",Bd="auto",Fs=[Ze,xt,St,Xe],Kr="start",gs="end",h5="clippingParents",$0="viewport",yi="popper",p5="reference",kp=Fs.reduce(function(e,t){return e.concat([t+"-"+Kr,t+"-"+gs])},[]),z0=[].concat(Fs,[Bd]).reduce(function(e,t){return e.concat([t,t+"-"+Kr,t+"-"+gs])},[]),m5="beforeRead",g5="read",v5="afterRead",y5="beforeMain",w5="main",x5="afterMain",S5="beforeWrite",b5="write",E5="afterWrite",C5=[m5,g5,v5,y5,w5,x5,S5,b5,E5];function Qt(e){return e?(e.nodeName||"").toLowerCase():null}function st(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lr(e){var t=st(e).Element;return e instanceof t||e instanceof Element}function vt(e){var t=st(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ud(e){if(typeof ShadowRoot>"u")return!1;var t=st(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function k5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!vt(s)||!Qt(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function O5(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!vt(i)||!Qt(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const R5={name:"applyStyles",enabled:!0,phase:"write",fn:k5,effect:O5,requires:["computeStyles"]};function qt(e){return e.split("-")[0]}var nr=Math.max,Oa=Math.min,Zr=Math.round;function Sc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B0(){return!/^((?!chrome|android).)*safari/i.test(Sc())}function Xr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&vt(e)&&(i=e.offsetWidth>0&&Zr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Zr(r.height)/e.offsetHeight||1);var o=lr(e)?st(e):window,a=o.visualViewport,l=!B0()&&n,u=(r.left+(l&&a?a.offsetLeft:0))/i,c=(r.top+(l&&a?a.offsetTop:0))/s,d=r.width/i,h=r.height/s;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function Vd(e){var t=Xr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function U0(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ud(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cn(e){return st(e).getComputedStyle(e)}function P5(e){return["table","td","th"].indexOf(Qt(e))>=0}function Bn(e){return((lr(e)?e.ownerDocument:e.document)||window.document).documentElement}function el(e){return Qt(e)==="html"?e:e.assignedSlot||e.parentNode||(Ud(e)?e.host:null)||Bn(e)}function Op(e){return!vt(e)||cn(e).position==="fixed"?null:e.offsetParent}function j5(e){var t=/firefox/i.test(Sc()),n=/Trident/i.test(Sc());if(n&&vt(e)){var r=cn(e);if(r.position==="fixed")return null}var i=el(e);for(Ud(i)&&(i=i.host);vt(i)&&["html","body"].indexOf(Qt(i))<0;){var s=cn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function $s(e){for(var t=st(e),n=Op(e);n&&P5(n)&&cn(n).position==="static";)n=Op(n);return n&&(Qt(n)==="html"||Qt(n)==="body"&&cn(n).position==="static")?t:n||j5(e)||t}function Hd(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bi(e,t,n){return nr(e,Oa(t,n))}function N5(e,t,n){var r=Bi(e,t,n);return r>n?n:r}function V0(){return{top:0,right:0,bottom:0,left:0}}function H0(e){return Object.assign({},V0(),e)}function q0(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var T5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,H0(typeof t!="number"?t:q0(t,Fs))};function _5(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,o=n.modifiersData.popperOffsets,a=qt(n.placement),l=Hd(a),u=[Xe,St].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var d=T5(i.padding,n),h=Vd(s),g=l==="y"?Ze:Xe,p=l==="y"?xt:St,y=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],x=o[l]-n.rects.reference[l],m=$s(s),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=y/2-x/2,S=d[g],C=v-h[c]-d[p],k=v/2-h[c]/2+w,O=Bi(S,k,C),R=l;n.modifiersData[r]=(t={},t[R]=O,t.centerOffset=O-k,t)}}function I5(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||U0(t.elements.popper,i)&&(t.elements.arrow=i))}const A5={name:"arrow",enabled:!0,phase:"main",fn:_5,effect:I5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gr(e){return e.split("-")[1]}var L5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M5(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zr(n*i)/i||0,y:Zr(r*i)/i||0}}function Rp(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=o.x,g=h===void 0?0:h,p=o.y,y=p===void 0?0:p,x=typeof c=="function"?c({x:g,y}):{x:g,y};g=x.x,y=x.y;var m=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),w=Xe,S=Ze,C=window;if(u){var k=$s(n),O="clientHeight",R="clientWidth";if(k===st(n)&&(k=Bn(n),cn(k).position!=="static"&&a==="absolute"&&(O="scrollHeight",R="scrollWidth")),k=k,i===Ze||(i===Xe||i===St)&&s===gs){S=xt;var I=d&&k===C&&C.visualViewport?C.visualViewport.height:k[O];y-=I-r.height,y*=l?1:-1}if(i===Xe||(i===Ze||i===xt)&&s===gs){w=St;var A=d&&k===C&&C.visualViewport?C.visualViewport.width:k[R];g-=A-r.width,g*=l?1:-1}}var M=Object.assign({position:a},u&&L5),z=c===!0?M5({x:g,y},st(n)):{x:g,y};if(g=z.x,y=z.y,l){var B;return Object.assign({},M,(B={},B[S]=v?"0":"",B[w]=m?"0":"",B.transform=(C.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",B))}return Object.assign({},M,(t={},t[S]=v?y+"px":"",t[w]=m?g+"px":"",t.transform="",t))}function D5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,o=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,u={placement:qt(t.placement),variation:Gr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Rp(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rp(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const F5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:D5,data:{}};var go={passive:!0};function $5(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=st(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",n.update,go)}),a&&l.addEventListener("resize",n.update,go),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",n.update,go)}),a&&l.removeEventListener("resize",n.update,go)}}const z5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$5,data:{}};var B5={left:"right",right:"left",bottom:"top",top:"bottom"};function zo(e){return e.replace(/left|right|bottom|top/g,function(t){return B5[t]})}var U5={start:"end",end:"start"};function Pp(e){return e.replace(/start|end/g,function(t){return U5[t]})}function qd(e){var t=st(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Qd(e){return Xr(Bn(e)).left+qd(e).scrollLeft}function V5(e,t){var n=st(e),r=Bn(e),i=n.visualViewport,s=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var u=B0();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+Qd(e),y:l}}function H5(e){var t,n=Bn(e),r=qd(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=nr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=nr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Qd(e),l=-r.scrollTop;return cn(i||n).direction==="rtl"&&(a+=nr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Wd(e){var t=cn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Q0(e){return["html","body","#document"].indexOf(Qt(e))>=0?e.ownerDocument.body:vt(e)&&Wd(e)?e:Q0(el(e))}function Ui(e,t){var n;t===void 0&&(t=[]);var r=Q0(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=st(r),o=i?[s].concat(s.visualViewport||[],Wd(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Ui(el(o)))}function bc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q5(e,t){var n=Xr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function jp(e,t,n){return t===$0?bc(V5(e,n)):lr(t)?q5(t,n):bc(H5(Bn(e)))}function Q5(e){var t=Ui(el(e)),n=["absolute","fixed"].indexOf(cn(e).position)>=0,r=n&&vt(e)?$s(e):e;return lr(r)?t.filter(function(i){return lr(i)&&U0(i,r)&&Qt(i)!=="body"}):[]}function W5(e,t,n,r){var i=t==="clippingParents"?Q5(e):[].concat(t),s=[].concat(i,[n]),o=s[0],a=s.reduce(function(l,u){var c=jp(e,u,r);return l.top=nr(c.top,l.top),l.right=Oa(c.right,l.right),l.bottom=Oa(c.bottom,l.bottom),l.left=nr(c.left,l.left),l},jp(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function W0(e){var t=e.reference,n=e.element,r=e.placement,i=r?qt(r):null,s=r?Gr(r):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Ze:l={x:o,y:t.y-n.height};break;case xt:l={x:o,y:t.y+t.height};break;case St:l={x:t.x+t.width,y:a};break;case Xe:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?Hd(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Kr:l[u]=l[u]-(t[c]/2-n[c]/2);break;case gs:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function vs(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,o=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?h5:a,u=n.rootBoundary,c=u===void 0?$0:u,d=n.elementContext,h=d===void 0?yi:d,g=n.altBoundary,p=g===void 0?!1:g,y=n.padding,x=y===void 0?0:y,m=H0(typeof x!="number"?x:q0(x,Fs)),v=h===yi?p5:yi,w=e.rects.popper,S=e.elements[p?v:h],C=W5(lr(S)?S:S.contextElement||Bn(e.elements.popper),l,c,o),k=Xr(e.elements.reference),O=W0({reference:k,element:w,strategy:"absolute",placement:i}),R=bc(Object.assign({},w,O)),I=h===yi?R:k,A={top:C.top-I.top+m.top,bottom:I.bottom-C.bottom+m.bottom,left:C.left-I.left+m.left,right:I.right-C.right+m.right},M=e.modifiersData.offset;if(h===yi&&M){var z=M[i];Object.keys(A).forEach(function(B){var E=[St,xt].indexOf(B)>=0?1:-1,P=[Ze,xt].indexOf(B)>=0?"y":"x";A[B]+=z[P]*E})}return A}function K5(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?z0:l,c=Gr(r),d=c?a?kp:kp.filter(function(p){return Gr(p)===c}):Fs,h=d.filter(function(p){return u.indexOf(p)>=0});h.length===0&&(h=d);var g=h.reduce(function(p,y){return p[y]=vs(e,{placement:y,boundary:i,rootBoundary:s,padding:o})[qt(y)],p},{});return Object.keys(g).sort(function(p,y){return g[p]-g[y]})}function Z5(e){if(qt(e)===Bd)return[];var t=zo(e);return[Pp(e),t,Pp(t)]}function X5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,y=n.allowedAutoPlacements,x=t.options.placement,m=qt(x),v=m===x,w=l||(v||!p?[zo(x)]:Z5(x)),S=[x].concat(w).reduce(function(he,J){return he.concat(qt(J)===Bd?K5(t,{placement:J,boundary:c,rootBoundary:d,padding:u,flipVariations:p,allowedAutoPlacements:y}):J)},[]),C=t.rects.reference,k=t.rects.popper,O=new Map,R=!0,I=S[0],A=0;A<S.length;A++){var M=S[A],z=qt(M),B=Gr(M)===Kr,E=[Ze,xt].indexOf(z)>=0,P=E?"width":"height",L=vs(t,{placement:M,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),F=E?B?St:Xe:B?xt:Ze;C[P]>k[P]&&(F=zo(F));var j=zo(F),N=[];if(s&&N.push(L[z]<=0),a&&N.push(L[F]<=0,L[j]<=0),N.every(function(he){return he})){I=M,R=!1;break}O.set(M,N)}if(R)for(var $=p?3:1,W=function(J){var K=S.find(function(ie){var ge=O.get(ie);if(ge)return ge.slice(0,J).every(function(Fe){return Fe})});if(K)return I=K,"break"},H=$;H>0;H--){var Ye=W(H);if(Ye==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}const G5={name:"flip",enabled:!0,phase:"main",fn:X5,requiresIfExists:["offset"],data:{_skip:!1}};function Np(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Tp(e){return[Ze,St,xt,Xe].some(function(t){return e[t]>=0})}function Y5(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,o=vs(t,{elementContext:"reference"}),a=vs(t,{altBoundary:!0}),l=Np(o,r),u=Np(a,i,s),c=Tp(l),d=Tp(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const J5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Y5};function eb(e,t,n){var r=qt(e),i=[Xe,Ze].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[Xe,St].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function tb(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,o=z0.reduce(function(c,d){return c[d]=eb(d,t.rects,s),c},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const nb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tb};function rb(e){var t=e.state,n=e.name;t.modifiersData[n]=W0({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ib={name:"popperOffsets",enabled:!0,phase:"read",fn:rb,data:{}};function sb(e){return e==="x"?"y":"x"}function ob(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,y=p===void 0?0:p,x=vs(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=qt(t.placement),v=Gr(t.placement),w=!v,S=Hd(m),C=sb(S),k=t.modifiersData.popperOffsets,O=t.rects.reference,R=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,A=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(k){if(s){var B,E=S==="y"?Ze:Xe,P=S==="y"?xt:St,L=S==="y"?"height":"width",F=k[S],j=F+x[E],N=F-x[P],$=g?-R[L]/2:0,W=v===Kr?O[L]:R[L],H=v===Kr?-R[L]:-O[L],Ye=t.elements.arrow,he=g&&Ye?Vd(Ye):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V0(),K=J[E],ie=J[P],ge=Bi(0,O[L],he[L]),Fe=w?O[L]/2-$-ge-K-A.mainAxis:W-ge-K-A.mainAxis,Mt=w?-O[L]/2+$+ge+ie+A.mainAxis:H+ge+ie+A.mainAxis,bl=t.elements.arrow&&$s(t.elements.arrow),Ay=bl?S==="y"?bl.clientTop||0:bl.clientLeft||0:0,kf=(B=M==null?void 0:M[S])!=null?B:0,Ly=F+Fe-kf-Ay,My=F+Mt-kf,Of=Bi(g?Oa(j,Ly):j,F,g?nr(N,My):N);k[S]=Of,z[S]=Of-F}if(a){var Rf,Dy=S==="x"?Ze:Xe,Fy=S==="x"?xt:St,qn=k[C],Ks=C==="y"?"height":"width",Pf=qn+x[Dy],jf=qn-x[Fy],El=[Ze,Xe].indexOf(m)!==-1,Nf=(Rf=M==null?void 0:M[C])!=null?Rf:0,Tf=El?Pf:qn-O[Ks]-R[Ks]-Nf+A.altAxis,_f=El?qn+O[Ks]+R[Ks]-Nf-A.altAxis:jf,If=g&&El?N5(Tf,qn,_f):Bi(g?Tf:Pf,qn,g?_f:jf);k[C]=If,z[C]=If-qn}t.modifiersData[r]=z}}const ab={name:"preventOverflow",enabled:!0,phase:"main",fn:ob,requiresIfExists:["offset"]};function lb(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ub(e){return e===st(e)||!vt(e)?qd(e):lb(e)}function cb(e){var t=e.getBoundingClientRect(),n=Zr(t.width)/e.offsetWidth||1,r=Zr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function db(e,t,n){n===void 0&&(n=!1);var r=vt(t),i=vt(t)&&cb(t),s=Bn(t),o=Xr(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Qt(t)!=="body"||Wd(s))&&(a=ub(t)),vt(t)?(l=Xr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=Qd(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function fb(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function hb(e){var t=fb(e);return C5.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function pb(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function mb(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var _p={placement:"bottom",modifiers:[],strategy:"absolute"};function Ip(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function gb(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?_p:i;return function(a,l,u){u===void 0&&(u=s);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},_p,s),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],h=!1,g={state:c,setOptions:function(m){var v=typeof m=="function"?m(c.options):m;y(),c.options=Object.assign({},s,c.options,v),c.scrollParents={reference:lr(a)?Ui(a):a.contextElement?Ui(a.contextElement):[],popper:Ui(l)};var w=hb(mb([].concat(r,c.options.modifiers)));return c.orderedModifiers=w.filter(function(S){return S.enabled}),p(),g.update()},forceUpdate:function(){if(!h){var m=c.elements,v=m.reference,w=m.popper;if(Ip(v,w)){c.rects={reference:db(v,$s(w),c.options.strategy==="fixed"),popper:Vd(w)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(A){return c.modifiersData[A.name]=Object.assign({},A.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var C=c.orderedModifiers[S],k=C.fn,O=C.options,R=O===void 0?{}:O,I=C.name;typeof k=="function"&&(c=k({state:c,options:R,name:I,instance:g})||c)}}}},update:pb(function(){return new Promise(function(x){g.forceUpdate(),x(c)})}),destroy:function(){y(),h=!0}};if(!Ip(a,l))return g;g.setOptions(u).then(function(x){!h&&u.onFirstUpdate&&u.onFirstUpdate(x)});function p(){c.orderedModifiers.forEach(function(x){var m=x.name,v=x.options,w=v===void 0?{}:v,S=x.effect;if(typeof S=="function"){var C=S({state:c,name:m,instance:g,options:w}),k=function(){};d.push(C||k)}})}function y(){d.forEach(function(x){return x()}),d=[]}return g}}var vb=[z5,ib,F5,R5,nb,G5,ab,A5,J5],yb=gb({defaultModifiers:vb}),wb=typeof Element<"u",xb=typeof Map=="function",Sb=typeof Set=="function",bb=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Bo(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Bo(e[r],t[r]))return!1;return!0}var s;if(xb&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;for(s=e.entries();!(r=s.next()).done;)if(!Bo(r.value[1],t.get(r.value[0])))return!1;return!0}if(Sb&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(s=e.entries();!(r=s.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(bb&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(wb&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!Bo(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var Eb=function(t,n){try{return Bo(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Cb=js(Eb);var kb=[],Ob=function(t,n,r){r===void 0&&(r={});var i=b.useRef(null),s={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||kb},o=b.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),a=o[0],l=o[1],u=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(g){var p=g.state,y=Object.keys(p.elements);Ms.flushSync(function(){l({styles:Ep(y.map(function(x){return[x,p.styles[x]||{}]})),attributes:Ep(y.map(function(x){return[x,p.attributes[x]]}))})})},requires:["computeStyles"]}},[]),c=b.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Cb(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,u]),d=b.useRef();return Cp(function(){d.current&&d.current.setOptions(c)},[c]),Cp(function(){if(!(t==null||n==null)){var h=r.createPopper||yb,g=h(t,n,c);return d.current=g,function(){g.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},Rb=Object.defineProperty,Pb=(e,t)=>{for(var n in t)Rb(e,n,{get:t[n],enumerable:!0})},It={};Pb(It,{assign:()=>Tb,colors:()=>An,createStringInterpolator:()=>ef,skipAnimation:()=>ev,to:()=>J0,willAdvance:()=>tf});var Kd=Bs(),V=e=>zs(e,Kd),Zd=Bs();V.write=e=>zs(e,Zd);var tl=Bs();V.onStart=e=>zs(e,tl);var Xd=Bs();V.onFrame=e=>zs(e,Xd);var Gd=Bs();V.onFinish=e=>zs(e,Gd);var Fr=[];V.setTimeout=(e,t)=>{const n=V.now()+t,r=()=>{const s=Fr.findIndex(o=>o.cancel==r);~s&&Fr.splice(s,1),Cn-=~s?1:0},i={time:n,handler:e,cancel:r};return Fr.splice(K0(n),0,i),Cn+=1,Z0(),i};var K0=e=>~(~Fr.findIndex(t=>t.time>e)||~Fr.length);V.cancel=e=>{tl.delete(e),Xd.delete(e),Gd.delete(e),Kd.delete(e),Zd.delete(e)};V.sync=e=>{Ec=!0,V.batchedUpdates(e),Ec=!1};V.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...i){t=i,V.onStart(n)}return r.handler=e,r.cancel=()=>{tl.delete(n),t=null},r};var Yd=typeof window<"u"?window.requestAnimationFrame:()=>{};V.use=e=>Yd=e;V.now=typeof performance<"u"?()=>performance.now():Date.now;V.batchedUpdates=e=>e();V.catch=console.error;V.frameLoop="always";V.advance=()=>{V.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):G0()};var En=-1,Cn=0,Ec=!1;function zs(e,t){Ec?(t.delete(e),e(0)):(t.add(e),Z0())}function Z0(){En<0&&(En=0,V.frameLoop!=="demand"&&Yd(X0))}function jb(){En=-1}function X0(){~En&&(Yd(X0),V.batchedUpdates(G0))}function G0(){const e=En;En=V.now();const t=K0(En);if(t&&(Y0(Fr.splice(0,t),n=>n.handler()),Cn-=t),!Cn){jb();return}tl.flush(),Kd.flush(e?Math.min(64,En-e):16.667),Xd.flush(),Zd.flush(),Gd.flush()}function Bs(){let e=new Set,t=e;return{add(n){Cn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Cn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Cn-=t.size,Y0(t,r=>r(n)&&e.add(r)),Cn+=e.size,t=e)}}}function Y0(e,t){e.forEach(n=>{try{t(n)}catch(r){V.catch(r)}})}function Cc(){}var Nb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),T={arr:Array.isArray,obj:e=>!!e&&e.constructor.name==="Object",fun:e=>typeof e=="function",str:e=>typeof e=="string",num:e=>typeof e=="number",und:e=>e===void 0};function Yt(e,t){if(T.arr(e)){if(!T.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var U=(e,t)=>e.forEach(t);function Wt(e,t,n){if(T.arr(e)){for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);return}for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var _e=e=>T.und(e)?[]:T.arr(e)?e:[e];function Vi(e,t){if(e.size){const n=Array.from(e);e.clear(),U(n,t)}}var Pi=(e,...t)=>Vi(e,n=>n(...t)),Jd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ef,J0,An=null,ev=!1,tf=Cc,Tb=e=>{e.to&&(J0=e.to),e.now&&(V.now=e.now),e.colors!==void 0&&(An=e.colors),e.skipAnimation!=null&&(ev=e.skipAnimation),e.createStringInterpolator&&(ef=e.createStringInterpolator),e.requestAnimationFrame&&V.use(e.requestAnimationFrame),e.batchedUpdates&&(V.batchedUpdates=e.batchedUpdates),e.willAdvance&&(tf=e.willAdvance),e.frameLoop&&(V.frameLoop=e.frameLoop)},Hi=new Set,pt=[],Jl=[],Ra=0,nl={get idle(){return!Hi.size&&!pt.length},start(e){Ra>e.priority?(Hi.add(e),V.onStart(_b)):(tv(e),V(kc))},advance:kc,sort(e){if(Ra)V.onFrame(()=>nl.sort(e));else{const t=pt.indexOf(e);~t&&(pt.splice(t,1),nv(e))}},clear(){pt=[],Hi.clear()}};function _b(){Hi.forEach(tv),Hi.clear(),V(kc)}function tv(e){pt.includes(e)||nv(e)}function nv(e){pt.splice(Ib(pt,t=>t.priority>e.priority),0,e)}function kc(e){const t=Jl;for(let n=0;n<pt.length;n++){const r=pt[n];Ra=r.priority,r.idle||(tf(r),r.advance(e),r.idle||t.push(r))}return Ra=0,Jl=pt,Jl.length=0,pt=t,pt.length>0}function Ib(e,t){const n=e.findIndex(t);return n<0?e.length:n}var Ab=(e,t,n)=>Math.min(Math.max(n,e),t),Lb={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},jt="[-+]?\\d*\\.?\\d+",Pa=jt+"%";function rl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Mb=new RegExp("rgb"+rl(jt,jt,jt)),Db=new RegExp("rgba"+rl(jt,jt,jt,jt)),Fb=new RegExp("hsl"+rl(jt,Pa,Pa)),$b=new RegExp("hsla"+rl(jt,Pa,Pa,jt)),zb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ub=/^#([0-9a-fA-F]{6})$/,Vb=/^#([0-9a-fA-F]{8})$/;function Hb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ub.exec(e))?parseInt(t[1]+"ff",16)>>>0:An&&An[e]!==void 0?An[e]:(t=Mb.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|255)>>>0:(t=Db.exec(e))?(vr(t[1])<<24|vr(t[2])<<16|vr(t[3])<<8|Mp(t[4]))>>>0:(t=zb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Vb.exec(e))?parseInt(t[1],16)>>>0:(t=Bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Fb.exec(e))?(Ap(Lp(t[1]),vo(t[2]),vo(t[3]))|255)>>>0:(t=$b.exec(e))?(Ap(Lp(t[1]),vo(t[2]),vo(t[3]))|Mp(t[4]))>>>0:null}function eu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Ap(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,s=eu(i,r,e+1/3),o=eu(i,r,e),a=eu(i,r,e-1/3);return Math.round(s*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function vr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lp(e){return(parseFloat(e)%360+360)%360/360}function Mp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function vo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dp(e){let t=Hb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,i=(t&65280)>>>8,s=(t&255)/255;return`rgba(${n}, ${r}, ${i}, ${s})`}var ys=(e,t,n)=>{if(T.fun(e))return e;if(T.arr(e))return ys({range:e,output:t,extrapolate:n});if(T.str(e.output[0]))return ef(e);const r=e,i=r.output,s=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(u=>u);return u=>{const c=Qb(u,s);return qb(u,s[c],s[c+1],i[c],i[c+1],l,o,a,r.map)}};function qb(e,t,n,r,i,s,o,a,l){let u=l?l(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(a==="identity")return u;a==="clamp"&&(u=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=s(u),r===-1/0?u=-u:i===1/0?u=u+r:u=u*(i-r)+r,u)}function Qb(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Wb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,i=t==="end"?Math.floor(r):Math.ceil(r);return Ab(0,1,i/e)},ja=1.70158,yo=ja*1.525,Fp=ja+1,$p=2*Math.PI/3,zp=2*Math.PI/4.5,wo=e=>e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,Kb={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:Math.pow(2,10*e-10),easeOutExpo:e=>e===1?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Fp*e*e*e-ja*e*e,easeOutBack:e=>1+Fp*Math.pow(e-1,3)+ja*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((yo+1)*2*e-yo)/2:(Math.pow(2*e-2,2)*((yo+1)*(e*2-2)+yo)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*$p),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*$p)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zp)/2+1,easeInBounce:e=>1-wo(1-e),easeOutBounce:wo,easeInOutBounce:e=>e<.5?(1-wo(1-2*e))/2:(1+wo(2*e-1))/2,steps:Wb},ws=Symbol.for("FluidValue.get"),Yr=Symbol.for("FluidValue.observers"),ht=e=>!!(e&&e[ws]),ze=e=>e&&e[ws]?e[ws]():e,Bp=e=>e[Yr]||null;function Zb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function xs(e,t){const n=e[Yr];n&&n.forEach(r=>{Zb(r,t)})}var rv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Xb(this,e)}},Xb=(e,t)=>iv(e,ws,t);function ii(e,t){if(e[ws]){let n=e[Yr];n||iv(e,Yr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ss(e,t){const n=e[Yr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Yr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var iv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Uo=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Gb=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Up=new RegExp(`(${Uo.source})(%|[a-z]+)`,"i"),Yb=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,il=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,sv=e=>{const[t,n]=Jb(e);if(!t||Jd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||e}else{if(n&&il.test(n))return sv(n);if(n)return n}return e},Jb=e=>{const t=il.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},tu,eE=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,ov=e=>{tu||(tu=An?new RegExp(`(${Object.keys(An).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(s=>ze(s).replace(il,sv).replace(Gb,Dp).replace(tu,Dp)),n=t.map(s=>s.match(Uo).map(Number)),i=n[0].map((s,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(s=>ys({...e,output:s}));return s=>{var l;const o=!Up.test(t[0])&&((l=t.find(u=>Up.test(u)))==null?void 0:l.replace(Uo,""));let a=0;return t[0].replace(Uo,()=>`${i[a++](s)}${o||""}`).replace(Yb,eE)}},nf="react-spring: ",av=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${nf}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},tE=av(console.warn);function nE(){tE(`${nf}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var rE=av(console.warn);function iE(){rE(`${nf}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function sl(e){return T.str(e)&&(e[0]=="#"||/\d/.test(e)||!Jd()&&il.test(e)||e in(An||{}))}var Jn=Jd()?b.useEffect:b.useLayoutEffect,sE=()=>{const e=b.useRef(!1);return Jn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function rf(){const e=b.useState()[1],t=sE();return()=>{t.current&&e(Math.random())}}function oE(e,t){const[n]=b.useState(()=>({inputs:t,result:e()})),r=b.useRef(),i=r.current;let s=i;return s?t&&s.inputs&&aE(t,s.inputs)||(s={inputs:t,result:e()}):s=n,b.useEffect(()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)},[s]),s.result}function aE(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var sf=e=>b.useEffect(e,lE),lE=[];function Oc(e){const t=b.useRef();return b.useEffect(()=>{t.current=e}),t.current}var bs=Symbol.for("Animated:node"),uE=e=>!!e&&e[bs]===e,zt=e=>e&&e[bs],of=(e,t)=>Nb(e,bs,t),ol=e=>e&&e[bs]&&e[bs].getPayload(),lv=class{constructor(){of(this,this)}getPayload(){return this.payload||[]}},Us=class extends lv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,T.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Us(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return T.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,T.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Es=class extends Us{constructor(e){super(0),this._string=null,this._toString=ys({output:[e,e]})}static create(e){return new Es(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(T.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=ys({output:[this.getValue(),e]})),this._value=0,super.reset()}},Na={dependencies:null},al=class extends lv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Wt(this.source,(n,r)=>{uE(n)?t[r]=n.getValue(e):ht(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&U(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Wt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Na.dependencies&&ht(e)&&Na.dependencies.add(e);const t=ol(e);t&&U(t,n=>this.add(n))}},uv=class extends al{constructor(e){super(e)}static create(e){return new uv(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const t=this.getPayload();return e.length==t.length?t.map((n,r)=>n.setValue(e[r])).some(Boolean):(super.setValue(e.map(cE)),!0)}};function cE(e){return(sl(e)?Es:Us).create(e)}function Rc(e){const t=zt(e);return t?t.constructor:T.arr(e)?uv:sl(e)?Es:Us}var Vp=(e,t)=>{const n=!T.fun(e)||e.prototype&&e.prototype.isReactComponent;return b.forwardRef((r,i)=>{const s=b.useRef(null),o=n&&b.useCallback(p=>{s.current=hE(i,p)},[i]),[a,l]=fE(r,t),u=rf(),c=()=>{const p=s.current;if(n&&!p)return;(p?t.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&u()},d=new dE(c,l),h=b.useRef();Jn(()=>(h.current=d,U(l,p=>ii(p,d)),()=>{h.current&&(U(h.current.deps,p=>Ss(p,h.current)),V.cancel(h.current.update))})),b.useEffect(c,[]),sf(()=>()=>{const p=h.current;U(p.deps,y=>Ss(y,p))});const g=t.getComponentProps(a.getValue());return b.createElement(e,{...g,ref:o})})},dE=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&V.write(this.update)}};function fE(e,t){const n=new Set;return Na.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new al(e),Na.dependencies=null,[e,n]}function hE(e,t){return e&&(T.fun(e)?e(t):e.current=t),t}var Hp=Symbol.for("AnimatedComponent"),pE=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=i=>new al(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},s=o=>{const a=qp(o)||"Anonymous";return T.str(o)?o=s[o]||(s[o]=Vp(o,i)):o=o[Hp]||(o[Hp]=Vp(o,i)),o.displayName=`Animated(${a})`,o};return Wt(e,(o,a)=>{T.arr(e)&&(a=qp(o)),s[a]=s(o)}),{animated:s}},qp=e=>T.str(e)?e:e&&T.str(e.displayName)?e.displayName:T.fun(e)&&e.name||null;function Be(e,...t){return T.fun(e)?e(...t):e}var qi=(e,t)=>e===!0||!!(t&&e&&(T.fun(e)?e(t):_e(e).includes(t))),cv=(e,t)=>T.obj(e)?t&&e[t]:e,dv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,mE=e=>e,ll=(e,t=mE)=>{let n=gE;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const s=t(e[i],i);T.und(s)||(r[i]=s)}return r},gE=["config","onProps","onStart","onChange","onPause","onResume","onRest"],vE={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function yE(e){const t={};let n=0;if(Wt(e,(r,i)=>{vE[i]||(t[i]=r,n++)}),n)return t}function af(e){const t=yE(e);if(t){const n={to:t};return Wt(e,(r,i)=>i in t||(n[i]=r)),n}return{...e}}function Cs(e){return e=ze(e),T.arr(e)?e.map(Cs):sl(e)?It.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function fv(e){for(const t in e)return!0;return!1}function Pc(e){return T.fun(e)||T.arr(e)&&T.obj(e[0])}function jc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function hv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var wE={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},Nc={...wE.default,mass:1,damping:1,easing:Kb.linear,clamp:!1},xE=class{constructor(){this.velocity=0,Object.assign(this,Nc)}};function SE(e,t,n){n&&(n={...n},Qp(n,t),t={...n,...t}),Qp(e,t),Object.assign(e,t);for(const o in Nc)e[o]==null&&(e[o]=Nc[o]);let{frequency:r,damping:i}=e;const{mass:s}=e;return T.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/r,2)*s,e.friction=4*Math.PI*i*s/r),e}function Qp(e,t){if(!T.und(t.decay))e.duration=void 0;else{const n=!T.und(t.tension)||!T.und(t.friction);(n||!T.und(t.frequency)||!T.und(t.damping)||!T.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Wp=[],bE=class{constructor(){this.changed=!1,this.values=Wp,this.toValues=null,this.fromValues=Wp,this.config=new xE,this.immediate=!1}};function pv(e,{key:t,props:n,defaultProps:r,state:i,actions:s}){return new Promise((o,a)=>{let l,u,c=qi(n.cancel??(r==null?void 0:r.cancel),t);if(c)g();else{T.und(n.pause)||(i.paused=qi(n.pause,t));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||qi(p,t)),l=Be(n.delay||0,t),p?(i.resumeQueue.add(h),s.pause()):(s.resume(),h())}function d(){i.resumeQueue.add(h),i.timeouts.delete(u),u.cancel(),l=u.time-V.now()}function h(){l>0&&!It.skipAnimation?(i.delayed=!0,u=V.setTimeout(g,l),i.pauseQueue.add(d),i.timeouts.add(u)):g()}function g(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(u),e<=(i.cancelId||0)&&(c=!0);try{s.start({...n,callId:e,cancel:c},o)}catch(p){a(p)}}})}var lf=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?$r(e.get()):t.every(n=>n.noop)?mv(e.get()):Pt(e.get(),t.every(n=>n.finished)),mv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Pt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),$r=e=>({value:e,cancelled:!0,finished:!1});function gv(e,t,n,r){const{callId:i,parentId:s,onRest:o}=t,{asyncTo:a,promise:l}=n;return!s&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=ll(t,(x,m)=>m==="onRest"?void 0:x);let c,d;const h=new Promise((x,m)=>(c=x,d=m)),g=x=>{const m=i<=(n.cancelId||0)&&$r(r)||i!==n.asyncId&&Pt(r,!1);if(m)throw x.result=m,d(x),x},p=(x,m)=>{const v=new Kp,w=new Zp;return(async()=>{if(It.skipAnimation)throw ks(n),w.result=Pt(r,!1),d(w),w;g(v);const S=T.obj(x)?{...x}:{...m,to:x};S.parentId=i,Wt(u,(k,O)=>{T.und(S[O])&&(S[O]=k)});const C=await r.start(S);return g(v),n.paused&&await new Promise(k=>{n.resumeQueue.add(k)}),C})()};let y;if(It.skipAnimation)return ks(n),Pt(r,!1);try{let x;T.arr(e)?x=(async m=>{for(const v of m)await p(v)})(e):x=Promise.resolve(e(p,r.stop.bind(r))),await Promise.all([x.then(c),h]),y=Pt(r.get(),!0,!1)}catch(x){if(x instanceof Kp)y=x.result;else if(x instanceof Zp)y=x.result;else throw x}finally{i==n.asyncId&&(n.asyncId=s,n.asyncTo=s?a:void 0,n.promise=s?l:void 0)}return T.fun(o)&&V.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function ks(e,t){Vi(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Kp=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Zp=class extends Error{constructor(){super("SkipAnimationSignal")}},Tc=e=>e instanceof uf,EE=1,uf=class extends rv{constructor(){super(...arguments),this.id=EE++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=zt(this);return e&&e.getValue()}to(...e){return It.to(this,e)}interpolate(...e){return nE(),It.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){xs(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||nl.sort(this),xs(this,{type:"priority",parent:this,priority:e})}},ur=Symbol.for("SpringPhase"),vv=1,_c=2,Ic=4,nu=e=>(e[ur]&vv)>0,pn=e=>(e[ur]&_c)>0,wi=e=>(e[ur]&Ic)>0,Xp=(e,t)=>t?e[ur]|=_c|vv:e[ur]&=~_c,Gp=(e,t)=>t?e[ur]|=Ic:e[ur]&=~Ic,CE=class extends uf{constructor(e,t){if(super(),this.animation=new bE,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!T.und(e)||!T.und(t)){const n=T.obj(e)?{...e}:{...t,from:e};T.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(pn(this)||this._state.asyncTo)||wi(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=zt(this);return e instanceof Us?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return nu(this)}get isAnimating(){return pn(this)}get isPaused(){return wi(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:s}=r,o=ol(r.to);!o&&ht(r.to)&&(i=_e(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==Es?1:o?o[c].lastPosition:i[c];let h=r.immediate,g=d;if(!h){if(g=u.lastPosition,s.tension<=0){u.done=!0;return}let p=u.elapsedTime+=e;const y=r.fromValues[c],x=u.v0!=null?u.v0:u.v0=T.arr(s.velocity)?s.velocity[c]:s.velocity;let m;const v=s.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(T.und(s.duration))if(s.decay){const w=s.decay===!0?.998:s.decay,S=Math.exp(-(1-w)*p);g=y+x/(1-w)*(1-S),h=Math.abs(u.lastPosition-g)<=v,m=x*S}else{m=u.lastVelocity==null?x:u.lastVelocity;const w=s.restVelocity||v/10,S=s.clamp?0:s.bounce,C=!T.und(S),k=y==d?u.v0>0:y<d;let O,R=!1;const I=1,A=Math.ceil(e/I);for(let M=0;M<A&&(O=Math.abs(m)>w,!(!O&&(h=Math.abs(d-g)<=v,h)));++M){C&&(R=g==d||g>d==k,R&&(m=-m*S,g=d));const z=-s.tension*1e-6*(g-d),B=-s.friction*.001*m,E=(z+B)/s.mass;m=m+E*I,g=g+m*I}}else{let w=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,u.durationProgress>0&&(u.elapsedTime=s.duration*u.durationProgress,p=u.elapsedTime+=e)),w=(s.progress||0)+p/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),g=y+s.easing(w)*(d-y),m=(g-u.lastPosition)/e,h=w==1}u.lastVelocity=m,Number.isNaN(g)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(g,s.round)&&(n=!0)});const a=zt(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!s.decay?(a.setValue(u),this._onChange(u)):n&&s.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return V.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(pn(this)){const{to:e,config:t}=this.animation;V.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return T.und(e)?(n=this.queue||[],this.queue=[]):n=[T.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>lf(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ks(this._state,e&&this._lastCallId),V.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type=="change"?this._start():e.type=="priority"&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=T.obj(n)?n[t]:n,(n==null||Pc(n))&&(n=void 0),r=T.obj(r)?r[t]:r,r==null&&(r=void 0);const i={to:n,from:r};return nu(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),T.und(r)?zt(this)||this._set(n):this._set(r)),i}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ll(e,(o,a)=>/^on/.test(a)?cv(o,n):o)),Jp(this,e,"onProps"),Si(this,"onProps",e,this);const i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return pv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:s,actions:{pause:()=>{wi(this)||(Gp(this,!0),Pi(s.pauseQueue),Si(this,"onPause",Pt(this,xi(this,this.animation.to)),this))},resume:()=>{wi(this)&&(Gp(this,!1),pn(this)&&this._resume(),Pi(s.resumeQueue),Si(this,"onResume",Pt(this,xi(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=yv(e);if(a)return this._update(a,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n($r(this));const r=!T.und(e.to),i=!T.und(e.from);if(r||i)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n($r(this));const{key:s,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;i&&!r&&(!t.default||T.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Yt(d,u);h&&(a.from=d),d=ze(d);const g=!Yt(c,l);g&&this._focus(c);const p=Pc(t.to),{config:y}=a,{decay:x,velocity:m}=y;(r||i)&&(y.velocity=0),t.config&&!p&&SE(y,Be(t.config,s),t.config!==o.config?Be(o.config,s):void 0);let v=zt(this);if(!v||T.und(c))return n(Pt(this,!0));const w=T.und(t.reset)?i&&!t.default:!T.und(d)&&qi(t.reset,s),S=w?d:this.get(),C=Cs(c),k=T.num(C)||T.arr(C)||sl(C),O=!p&&(!k||qi(o.immediate||t.immediate,s));if(g){const M=Rc(c);if(M!==v.constructor)if(O)v=this._set(C);else throw Error(`Cannot animate between ${v.constructor.name} and ${M.name}, as the "to" prop suggests`)}const R=v.constructor;let I=ht(c),A=!1;if(!I){const M=w||!nu(this)&&h;(g||M)&&(A=Yt(Cs(S),C),I=!A),(!Yt(a.immediate,O)&&!O||!Yt(y.decay,x)||!Yt(y.velocity,m))&&(I=!0)}if(A&&pn(this)&&(a.changed&&!w?I=!0:I||this._stop(l)),!p&&((I||ht(l))&&(a.values=v.getPayload(),a.toValues=ht(c)?null:R==Es?[1]:_e(C)),a.immediate!=O&&(a.immediate=O,!O&&!w&&this._set(l)),I)){const{onRest:M}=a;U(OE,B=>Jp(this,t,B));const z=Pt(this,xi(this,l));Pi(this._pendingCalls,z),this._pendingCalls.add(n),a.changed&&V.batchedUpdates(()=>{var B;a.changed=!w,M==null||M(z,this),w?Be(o.onRest,z):(B=a.onStart)==null||B.call(a,z,this)})}w&&this._set(S),p?n(gv(t.to,t,this._state,this)):I?this._start():pn(this)&&!g?this._pendingCalls.add(n):n(mv(S))}_focus(e){const t=this.animation;e!==t.to&&(Bp(this)&&this._detach(),t.to=e,Bp(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ht(t)&&(ii(t,this),Tc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ht(e)&&Ss(e,this)}_set(e,t=!0){const n=ze(e);if(!T.und(n)){const r=zt(this);if(!r||!Yt(n,r.getValue())){const i=Rc(n);!r||r.constructor!=i?of(this,i.create(n)):r.setValue(n),r&&V.batchedUpdates(()=>{this._onChange(n,t)})}}return zt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Si(this,"onStart",Pt(this,xi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Be(this.animation.onChange,e,this)),Be(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;zt(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),pn(this)||(Xp(this,!0),wi(this)||this._resume())}_resume(){It.skipAnimation?this.finish():nl.start(this)}_stop(e,t){if(pn(this)){Xp(this,!1);const n=this.animation;U(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),xs(this,{type:"idle",parent:this});const r=t?$r(this.get()):Pt(this.get(),xi(this,e??n.to));Pi(this._pendingCalls,r),n.changed&&(n.changed=!1,Si(this,"onRest",r,this))}}};function xi(e,t){const n=Cs(t),r=Cs(e.get());return Yt(r,n)}function yv(e,t=e.loop,n=e.to){const r=Be(t);if(r){const i=r!==!0&&af(r),s=(i||e).reverse,o=!i||i.reset;return Os({...e,loop:t,default:!1,pause:void 0,to:!s||Pc(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function Os(e){const{to:t,from:n}=e=af(e),r=new Set;return T.obj(t)&&Yp(t,r),T.obj(n)&&Yp(n,r),e.keys=r.size?Array.from(r):null,e}function kE(e){const t=Os(e);return T.und(t.default)&&(t.default=ll(t)),t}function Yp(e,t){Wt(e,(n,r)=>n!=null&&t.add(r))}var OE=["onStart","onRest","onChange","onPause","onResume"];function Jp(e,t,n){e.animation[n]=t[n]!==dv(t,n)?cv(t[n],e.key):void 0}function Si(e,t,...n){var r,i,s,o;(i=(r=e.animation)[t])==null||i.call(r,...n),(o=(s=e.defaultProps)[t])==null||o.call(s,...n)}var RE=["onStart","onChange","onRest"],PE=1,wv=class{constructor(e,t){this.id=PE++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(const t in e){const n=e[t];T.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Os(e)),this}start(e){let{queue:t}=this;return e?t=_e(e).map(Os):this.queue=[],this._flush?this._flush(this,t):(Cv(this,t),Ac(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;U(_e(t),r=>n[r].stop(!!e))}else ks(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(T.und(e))this.start({pause:!0});else{const t=this.springs;U(_e(e),n=>t[n].pause())}return this}resume(e){if(T.und(e))this.start({pause:!1});else{const t=this.springs;U(_e(e),n=>t[n].resume())}return this}each(e){Wt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Vi(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const s=!r&&this._started,o=i||s&&n.size?this.get():null;i&&t.size&&Vi(t,([a,l])=>{l.value=o,a(l,this,this._item)}),s&&(this._started=!1,Vi(n,([a,l])=>{l.value=o,a(l,this,this._item)}))}eventObserved(e){if(e.type=="change")this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type=="idle")this._active.delete(e.parent);else return;V.onFrame(this._onFrame)}};function Ac(e,t){return Promise.all(t.map(n=>xv(e,n))).then(n=>lf(e,n))}async function xv(e,t,n){const{keys:r,to:i,from:s,loop:o,onRest:a,onResolve:l}=t,u=T.obj(t.default)&&t.default;o&&(t.loop=!1),i===!1&&(t.to=null),s===!1&&(t.from=null);const c=T.arr(i)||T.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):U(RE,y=>{const x=t[y];if(T.fun(x)){const m=e._events[y];t[y]=({finished:v,cancelled:w})=>{const S=m.get(x);S?(v||(S.finished=!1),w&&(S.cancelled=!0)):m.set(x,{value:null,finished:v||!1,cancelled:w||!1})},u&&(u[y]=t[y])}});const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Pi(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map(y=>e.springs[y].start(t)),g=t.cancel===!0||dv(t,"cancel")===!0;(c||g&&d.asyncId)&&h.push(pv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Cc,resume:Cc,start(y,x){g?(ks(d,e._lastAsyncId),x($r(e))):(y.onRest=a,x(gv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const p=lf(e,await Promise.all(h));if(o&&p.finished&&!(n&&p.noop)){const y=yv(t,o,i);if(y)return Cv(e,[y]),xv(e,y,!0)}return l&&V.batchedUpdates(()=>l(p,e,e.item)),p}function Lc(e,t){const n={...e.springs};return t&&U(_e(t),r=>{T.und(r.keys)&&(r=Os(r)),T.obj(r.to)||(r={...r,to:void 0}),Ev(n,r,i=>bv(i))}),Sv(e,n),n}function Sv(e,t){Wt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,ii(n,e))})}function bv(e,t){const n=new CE;return n.key=e,t&&ii(n,t),n}function Ev(e,t,n){t.keys&&U(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Cv(e,t){U(t,n=>{Ev(e.springs,n,r=>bv(r,e))})}var Vs=({children:e,...t})=>{const n=b.useContext(Ta),r=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=oE(()=>({pause:r,immediate:i}),[r,i]);const{Provider:s}=Ta;return b.createElement(s,{value:t},e)},Ta=jE(Vs,{});Vs.Provider=Ta.Provider;Vs.Consumer=Ta.Consumer;function jE(e,t){return Object.assign(e,b.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var kv=()=>{const e=[],t=function(r){iE();const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=n(r,s,o);a&&i.push(s.start(a))}}),i};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const i=e.indexOf(r);~i&&e.splice(i,1)},t.pause=function(){return U(e,r=>r.pause(...arguments)),this},t.resume=function(){return U(e,r=>r.resume(...arguments)),this},t.set=function(r){U(e,(i,s)=>{const o=T.fun(r)?r(s,i):r;o&&i.set(o)})},t.start=function(r){const i=[];return U(e,(s,o)=>{if(T.und(r))i.push(s.start());else{const a=this._getProps(r,s,o);a&&i.push(s.start(a))}}),i},t.stop=function(){return U(e,r=>r.stop(...arguments)),this},t.update=function(r){return U(e,(i,s)=>i.update(this._getProps(r,i,s))),this};const n=function(r,i,s){return T.fun(r)?r(s,i):r};return t._getProps=n,t};function NE(e,t,n){const r=T.fun(t)&&t;r&&!n&&(n=[]);const i=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),s=b.useRef(0),o=rf(),a=b.useMemo(()=>({ctrls:[],queue:[],flush(m,v){const w=Lc(m,v);return s.current>0&&!a.queue.length&&!Object.keys(w).some(C=>!m.springs[C])?Ac(m,v):new Promise(C=>{Sv(m,w),a.queue.push(()=>{C(Ac(m,v))}),o()})}}),[]),l=b.useRef([...a.ctrls]),u=[],c=Oc(e)||0;b.useMemo(()=>{U(l.current.slice(e,c),m=>{jc(m,i),m.stop(!0)}),l.current.length=e,d(c,e)},[e]),b.useMemo(()=>{d(0,Math.min(c,e))},n);function d(m,v){for(let w=m;w<v;w++){const S=l.current[w]||(l.current[w]=new wv(null,a.flush)),C=r?r(w,S):t[w];C&&(u[w]=kE(C))}}const h=l.current.map((m,v)=>Lc(m,u[v])),g=b.useContext(Vs),p=Oc(g),y=g!==p&&fv(g);Jn(()=>{s.current++,a.ctrls=l.current;const{queue:m}=a;m.length&&(a.queue=[],U(m,v=>v())),U(l.current,(v,w)=>{i==null||i.add(v),y&&v.start({default:g});const S=u[w];S&&(hv(v,S.ref),v.ref?v.queue.push(S):v.start(S))})}),sf(()=>()=>{U(a.ctrls,m=>m.stop(!0))});const x=h.map(m=>({...m}));return i?[x,i]:x}function Ik(e,t){const n=T.fun(e),[[r],i]=NE(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}function ul(e,t,n){const r=T.fun(t)&&t,{reset:i,sort:s,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=b.useMemo(()=>r||arguments.length==3?kv():void 0,[]),g=_e(e),p=[],y=b.useRef(null),x=i?null:y.current;Jn(()=>{y.current=p}),sf(()=>(U(p,E=>{h==null||h.add(E.ctrl),E.ctrl.ref=h}),()=>{U(y.current,E=>{E.expired&&clearTimeout(E.expirationId),jc(E.ctrl,h),E.ctrl.stop(!0)})}));const m=_E(g,r?r():t,x),v=i&&y.current||[];Jn(()=>U(v,({ctrl:E,item:P,key:L})=>{jc(E,h),Be(u,P,L)}));const w=[];if(x&&U(x,(E,P)=>{E.expired?(clearTimeout(E.expirationId),v.push(E)):(P=w[P]=m.indexOf(E.key),~P&&(p[P]=E))}),U(g,(E,P)=>{p[P]||(p[P]={key:m[P],item:E,phase:"mount",ctrl:new wv},p[P].ctrl.item=E)}),w.length){let E=-1;const{leave:P}=r?r():t;U(w,(L,F)=>{const j=x[F];~L?(E=p.indexOf(j),p[E]={...j,item:g[L]}):P&&p.splice(++E,0,j)})}T.fun(s)&&p.sort((E,P)=>s(E.item,P.item));let S=-o;const C=rf(),k=ll(t),O=new Map,R=b.useRef(new Map),I=b.useRef(!1);U(p,(E,P)=>{const L=E.key,F=E.phase,j=r?r():t;let N,$;const W=Be(j.delay||0,L);if(F=="mount")N=j.enter,$="enter";else{const J=m.indexOf(L)<0;if(F!="leave")if(J)N=j.leave,$="leave";else if(N=j.update)$="update";else return;else if(!J)N=j.enter,$="enter";else return}if(N=Be(N,E.item,P),N=T.obj(N)?af(N):{to:N},!N.config){const J=d||k.config;N.config=Be(J,E.item,P,$)}S+=o;const H={...k,delay:W+S,ref:c,immediate:j.immediate,reset:!1,...N};if($=="enter"&&T.und(H.from)){const J=r?r():t,K=T.und(J.initial)||x?J.from:J.initial;H.from=Be(K,E.item,P)}const{onResolve:Ye}=H;H.onResolve=J=>{Be(Ye,J);const K=y.current,ie=K.find(ge=>ge.key===L);if(ie&&!(J.cancelled&&ie.phase!="update")&&ie.ctrl.idle){const ge=K.every(Fe=>Fe.ctrl.idle);if(ie.phase=="leave"){const Fe=Be(a,ie.item);if(Fe!==!1){const Mt=Fe===!0?0:Fe;if(ie.expired=!0,!ge&&Mt>0){Mt<=2147483647&&(ie.expirationId=setTimeout(C,Mt));return}}}ge&&K.some(Fe=>Fe.expired)&&(R.current.delete(ie),l&&(I.current=!0),C())}};const he=Lc(E.ctrl,H);$==="leave"&&l?R.current.set(E,{phase:$,springs:he,payload:H}):O.set(E,{phase:$,springs:he,payload:H})});const A=b.useContext(Vs),M=Oc(A),z=A!==M&&fv(A);Jn(()=>{z&&U(p,E=>{E.ctrl.start({default:A})})},[A]),U(O,(E,P)=>{if(R.current.size){const L=p.findIndex(F=>F.key===P.key);p.splice(L,1)}}),Jn(()=>{U(R.current.size?R.current:O,({phase:E,payload:P},L)=>{const{ctrl:F}=L;L.phase=E,h==null||h.add(F),z&&E=="enter"&&F.start({default:A}),P&&(hv(F,P.ref),(F.ref||h)&&!I.current?F.update(P):(F.start(P),I.current&&(I.current=!1)))})},i?void 0:n);const B=E=>b.createElement(b.Fragment,null,p.map((P,L)=>{const{springs:F}=O.get(P)||P.ctrl,j=E({...F},P.item,P,L);return j&&j.type?b.createElement(j.type,{...j.props,key:T.str(P.key)||T.num(P.key)?P.key:P.ctrl.id,ref:j.ref}):j}));return h?[B,h]:B}var TE=1;function _E(e,{key:t,keys:n=t},r){if(n===null){const i=new Set;return e.map(s=>{const o=r&&r.find(a=>a.item===s&&a.phase!=="leave"&&!i.has(a));return o?(i.add(o),o.key):TE++})}return T.und(n)?e:T.fun(n)?e.map(n):_e(n)}var IE=class extends uf{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ys(...t);const n=this._get(),r=Rc(n);of(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Yt(t,n)||(zt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&em(this._active)&&ru(this)}_get(){const e=T.arr(this.source)?this.source.map(ze):_e(ze(this.source));return this.calc(...e)}_start(){this.idle&&!em(this._active)&&(this.idle=!1,U(ol(this),e=>{e.done=!1}),It.skipAnimation?(V.batchedUpdates(()=>this.advance()),ru(this)):nl.start(this))}_attach(){let e=1;U(_e(this.source),t=>{ht(t)&&ii(t,this),Tc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){U(_e(this.source),e=>{ht(e)&&Ss(e,this)}),this._active.clear(),ru(this)}eventObserved(e){e.type=="change"?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type=="idle"?this._active.delete(e.parent):e.type=="priority"&&(this.priority=_e(this.source).reduce((t,n)=>Math.max(t,(Tc(n)?n.priority:0)+1),0))}};function AE(e){return e.idle!==!1}function em(e){return!e.size||Array.from(e).every(AE)}function ru(e){e.idle||(e.idle=!0,U(ol(e),t=>{t.done=!0}),xs(e,{type:"idle",parent:e}))}It.assign({createStringInterpolator:ov,to:(e,t)=>new IE(e,t)});var Ov=/^--/;function LE(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Ov.test(e)&&!(Qi.hasOwnProperty(e)&&Qi[e])?t+"px":(""+t).trim()}var tm={};function ME(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:i,scrollTop:s,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:tm[d]||(tm[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));i!==void 0&&(e.textContent=i);for(const d in r)if(r.hasOwnProperty(d)){const h=LE(d,r[d]);Ov.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),s!==void 0&&(e.scrollTop=s),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var Qi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},DE=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),FE=["Webkit","Ms","Moz","O"];Qi=Object.keys(Qi).reduce((e,t)=>(FE.forEach(n=>e[DE(n,t)]=e[t]),e),Qi);var $E=/^(matrix|translate|scale|rotate|skew)/,zE=/^(translate)/,BE=/^(rotate|skew)/,iu=(e,t)=>T.num(e)&&e!==0?e+t:e,Vo=(e,t)=>T.arr(e)?e.every(n=>Vo(n,t)):T.num(e)?e===t:parseFloat(e)===t,UE=class extends al{constructor({x:e,y:t,z:n,...r}){const i=[],s=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),s.push(o=>[`translate3d(${o.map(a=>iu(a,"px")).join(",")})`,Vo(o,0)])),Wt(r,(o,a)=>{if(a==="transform")i.push([o||""]),s.push(l=>[l,l===""]);else if($E.test(a)){if(delete r[a],T.und(o))return;const l=zE.test(a)?"px":BE.test(a)?"deg":"";i.push(_e(o)),s.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${iu(h,l)})`,Vo(h,0)]:u=>[`${a}(${u.map(c=>iu(c,l)).join(",")})`,Vo(u,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new VE(i,s)),super(r)}},VE=class extends rv{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return U(this.inputs,(n,r)=>{const i=ze(n[0]),[s,o]=this.transforms[r](T.arr(i)?i:n.map(ze));e+=" "+s,t=t&&o}),t?"none":e}observerAdded(e){e==1&&U(this.inputs,t=>U(t,n=>ht(n)&&ii(n,this)))}observerRemoved(e){e==0&&U(this.inputs,t=>U(t,n=>ht(n)&&Ss(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),xs(this,e)}},HE=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"];It.assign({batchedUpdates:Ms.unstable_batchedUpdates,createStringInterpolator:ov,colors:Lb});var qE=pE(HE,{applyAnimatedValues:ME,createAnimatedStyle:e=>new UE(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Rs=qE.animated;const Rv=({trigger:e,content:t})=>{const[n,r]=b.useState(null),[i,s]=b.useState(null),{styles:o,attributes:a}=Ob(n,i,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,12]}}]}),[l,u]=b.useState(!1),c=ul(l,{from:{opacity:0,y:10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}}),d=()=>{u(g=>!g)},h=Im.cloneElement(e,{ref:r,onClick:d,state:l?"selected":"default"});return b.useEffect(()=>{const g=p=>{i&&!i.contains(p.target)&&n&&!n.contains(p.target)&&u(!1)};return document.addEventListener("mousedown",g,!0),document.addEventListener("touchstart",g,!0),()=>{document.removeEventListener("mousedown",g,!0),document.removeEventListener("touchstart",g,!0)}},[i,n]),f.jsxs(f.Fragment,{children:[h,c((g,p)=>f.jsx(f.Fragment,{children:p&&f.jsx(Rs.div,{className:Z("bg-white shadow rounded-4 d-block show py-12 px-8","bs-tooltip-auto"),ref:s,style:{...o.popper,...g},...a.popper,children:t})}))]})};Rv.displayName="Dropdown";const QE=Rv,Pv=b.forwardRef(({title:e="",state:t,variant:n,icon:r,size:i="lg",grow:s=!1,badgeContent:o,...a},l)=>{const u=Z("dropdown-trigger",t,i,n,s&&"flex-grow-1 justify-content-between");return f.jsxs("button",{ref:l,className:u,...a,type:"button",children:[r&&f.jsx("div",{className:"dropdown-trigger-icon",children:r}),f.jsx("div",{children:e}),o?f.jsx("div",{children:f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:o})}):f.jsx("div",{className:"dropdown-trigger-carret-icon",children:f.jsx(A3,{width:16,height:16})})]})});Pv.displayName="DropdownTrigger";const WE=Pv,jv=({options:e,hideCheckbox:t,isMonoSelection:n,onChange:r,model:i=[]})=>{const[s,o]=b.useState(i),a=l=>{o(n?[l]:u=>{const c=[...u];return u.includes(l)?c.splice(c.indexOf(l),1):c.push(l),c})};return b.useEffect(()=>{r==null||r(s)},[s]),f.jsx(f.Fragment,{children:f.jsx("div",{className:"select-list",children:e==null?void 0:e.map(l=>f.jsxs("div",{className:Z("select-list-option",t&&s.includes(l.value)&&"text-secondary fw-bold"),role:"checkbox","aria-checked":s.includes(l.value),onMouseUp:()=>{a(l.value)},tabIndex:0,onKeyDown:u=>{u.key==="Enter"&&a(l.value)},children:[f.jsx("div",{className:"select-list-option-icon",children:l.icon&&Im.createElement(l.icon,{width:"20px",height:"20px"})}),f.jsx("div",{className:"select-list-option-label",children:l.label}),!t&&f.jsx("div",{className:"select-list-option-checkbox",children:f.jsx("input",{readOnly:!0,type:"checkbox",tabIndex:-1,checked:s.includes(l.value),className:"form-check-input c-pointer",id:"option.value"})})]},l.value))})})};jv.displayName="SelectList";const KE=jv,Nv=b.createContext(null),cf=()=>{const e=b.useContext(Nv);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},Tv=({children:e})=>{const{status:t}=cf(),n=Z("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};Tv.displayName="Text";const ZE=Tv,_v=b.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:i},s)=>{const{id:o,isOptional:a,isRequired:l}=cf(),u=Z("form-label",{"has-icon":e},i),c=a&&!l,d=l&&!a;return b.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:s,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});_v.displayName="Label";const XE=_v,Iv=b.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:i,...s},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=cf(),d=Z({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},i);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...s})});Iv.displayName="Input";const Av=Iv,Lv=b.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:i,isRequired:s,status:o,...a},l)=>{const u=b.useMemo(()=>({id:n,isOptional:r,isRequired:s,isReadOnly:i,status:o}),[n,r,i,s,o]);return f.jsx(Nv.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),GE=Object.assign(Lv,{Label:XE,Input:Av,Text:ZE});Lv.displayName="FormControl";const Mc=GE,Wi=({children:e,className:t,...n})=>{const r=Z("grid",t);return f.jsx("div",{className:r,...n,children:e})},Mv=({sm:e,md:t,lg:n,xl:r,children:i,className:s,as:o,...a})=>{const l=o||"div",u=Z({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},s);return f.jsx(l,{className:u,...a,children:i})};Wi.displayName="Grid";Mv.displayName="Grid.Col";Wi.Col=Mv;const Dv=b.forwardRef(({position:e=!0},t)=>{const[n]=Ya(),r=`${n}/loading/screen-loading.gif`,i=Z("loading-screen top-0 end-0 start-0 bottom-0 d-grid justify-content-center align-items-center z-2000",{"position-fixed":!e,"position-static":e});return f.jsxs(f.Fragment,{children:[f.jsx("div",{ref:t,className:i,children:f.jsx("div",{className:"bg-white rounded-circle mx-auto",children:f.jsx("img",{src:r,alt:"loading"})})}),!e&&f.jsx("div",{className:"modal-backdrop fade show"})]})});Dv.displayName="LoadingScreen";const Ve=Dv,Fv=b.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const i=Z("navbar-brand d-none d-md-block"),s=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:i,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:s,width:"300",height:"52"})})});Fv.displayName="Logo";const nm=Fv,df=b.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});df.displayName="ModalContext";const $v=()=>{const e=b.useContext(df);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},zv=e=>{const{ariaDescriptionId:t}=$v(),{children:n,className:r}=e,i=Z("modal-body",r);return f.jsx("div",{id:t,className:i,children:n})};zv.displayName="Modal.Body";const YE=zv,Bv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Bv.displayName="Modal.Footer";const JE=Bv,Uv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:i}=$v(),s=b.useRef(null);return b.useEffect(()=>{var o;i||(o=s.current)==null||o.focus()},[i]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx("button",{ref:s,type:"button",className:"btn btn-close","aria-label":"Close",onClick:t})]})};Uv.displayName="Modal.Header";const eC=Uv,Vv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Vv.displayName="Modal.Subtitle";const tC=Vv,Hv=b.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:i,size:s="md",scrollable:o,focusId:a,children:l}=e,u=`aria_label_${n}`,c=`aria_desc_${n}`,d=r4(i),h=Y4();Z4(i,["Escape"]),b.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const x=document.getElementById(a);x==null||x.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const g=Z("modal-dialog",{[`modal-${s}`]:s,"modal-dialog-scrollable":o}),p={ariaLabelId:u,ariaDescriptionId:c,focusId:a},y=ul(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(df.Provider,{value:p,children:y((x,m)=>f.jsxs(f.Fragment,{children:[m&&f.jsx(Rs.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":c,className:`modal fade ${m?"show d-block":""}`,style:x,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:v=>{d.current=v,m&&(h.current=v)},className:g,children:f.jsx("div",{className:"modal-content",children:l})})}),m&&f.jsx(Rs.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),nC=Object.assign(Hv,{Header:eC,Subtitle:tC,Body:YE,Footer:JE});Hv.displayName="Modal";const kn=nC,rC=({children:e,className:t})=>{const n=Z("popover-body",t);return f.jsx("div",{className:n,children:e})},iC=({children:e,className:t})=>{const n=Z("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},ff=b.forwardRef(({children:e,className:t,id:n,isVisible:r,...i},s)=>{const o=Z("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return ul(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0}})((l,u)=>u&&f.jsx(Rs.div,{ref:s,"aria-labelledby":n,className:o,role:"tooltip",style:l,...i,children:e}))});ff.displayName="Popover";function sC(e,t,n,r,i,s,o,a,l){const u=x=>{x.preventDefault(),i==null||i(e),x.stopPropagation()},c=x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),i==null||i(e),x.stopPropagation())},d=()=>{r(!n),n?s==null||s(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:x=>{x.preventDefault(),d(),x.stopPropagation()},handleItemFoldUnfoldKeyDown:x=>{(x.code==="Enter"||x.code==="Space")&&(x.preventDefault(),d(),x.stopPropagation())},handleItemFocus:x=>{x.preventDefault(),a==null||a(e)},handleItemBlur:x=>{x.preventDefault(),l==null||l(e)}}}const qv=e=>{const{nodeId:t,label:n,children:r,section:i,selected:s,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,g]=b.useState(!1),{handleItemClick:p,handleItemKeyDown:y,handleItemFoldUnfoldClick:x,handleItemFoldUnfoldKeyDown:m,handleItemFocus:v,handleItemBlur:w}=sC(t,n,h,g,o,a,l,u,c);b.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const k=d[d.length-1];d.some(O=>O===t&&t!==k?(g(!0),O===t):(g(!1),!1))}else g(!1)},[t,d]);const S=i?16:12,C=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":s,"aria-expanded":h,children:f.jsxs("div",{children:[f.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[f.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:x,onKeyDown:m,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(yp,{title:"RafterRight",width:S,height:S}),Array.isArray(r)&&h&&f.jsx(wc,{title:"RafterDown",width:S,height:S}),!Array.isArray(r)&&f.jsx(yp,{title:"RafterRight",width:S,height:S,"aria-hidden":"true",className:"opacity-0"})]}),f.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:p,onKeyDown:y,onFocus:v,onBlur:w,children:[i&&f.jsx(x3,{title:"Folder",width:20,height:20}),f.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&f.jsx("ul",{role:"group",children:r})]})},t);return i?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};qv.displayName="TreeItem";const oC=qv,Qv=b.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:i,onTreeItemUnfold:s,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=b.useState("default");b.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=m=>{c(m),r==null||r(m)},h=m=>{i==null||i(m)},g=m=>{s==null||s(m)},p=m=>{o==null||o(m)},y=m=>{a==null||a(m)},x=m=>f.jsx(oC,{nodeId:m.id,label:m.name,section:m.section,selectedNodesIds:l,selected:u===m.id,onItemSelect:d,onItemFold:h,onItemUnfold:g,onItemFocus:p,onItemBlur:y,children:Array.isArray(m.children)?m.children.map(v=>x(v)):null},m.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:x(n)})});Qv.displayName="TreeView";const aC=Qv,Wv=b.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Wv.displayName="VisuallyHidden";const ji=Wv,lC=()=>{const e=zi("fr.openent.zimbra.controllers.ZimbraController|view"),t=zi("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=b.useState(0),[i,s]=b.useState(""),o=b.useCallback(async()=>{if(e)try{const l=await G.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});l.status!==200&&r(0),r(l.count)}catch{console.error("error"),r(0)}else try{const l=await G.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=b.useCallback(()=>{let l="";G.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?l="/zimbra/preauth":l=window.location.origin+"/zimbra/zimbra"}catch{l="/zimbra/zimbra"}}),s(l)},[t]);return b.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:i,zimbraWorkflow:e}},uC=lC;function su({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ou({children:e,className:t,...n}){const r=Z("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function rm({children:e,className:t,...n}){const r=Z("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const de=b.forwardRef(({children:e,className:t,...n},r)=>{const i=Z("nav-item",t);return f.jsx("li",{ref:r,className:i,...n,children:e})});de.displayName="NavItem";function bi({link:e,className:t,children:n,translate:r,...i}){const s=Z("nav-link",t);return f.jsxs("a",{href:e,className:s,...i,children:[n,r&&f.jsx(ji,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const cC=()=>{const{t:e}=xe();return f.jsx("div",{className:"widget-footer",children:f.jsx("div",{className:"widget-footer-action",children:f.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},dC=({bookmarkedApps:e})=>{const{t}=xe();return f.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&f.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>f.jsx("a",{href:n.address,className:"bookmarked-app",children:f.jsx(xc,{app:n,size:"32"})},r))]})};var hf={},pf={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(r){return r.type===t.Tag||r.type===t.Script||r.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(pf);var q={},Un=He&&He.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ki=He&&He.__assign||function(){return Ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ki.apply(this,arguments)};Object.defineProperty(q,"__esModule",{value:!0});q.cloneNode=q.hasChildren=q.isDocument=q.isDirective=q.isComment=q.isText=q.isCDATA=q.isTag=q.Element=q.Document=q.CDATA=q.NodeWithChildren=q.ProcessingInstruction=q.Comment=q.Text=q.DataNode=q.Node=void 0;var Ge=pf,mf=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(t){this.parent=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(t){this.prev=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(t){this.next=t},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(t){return t===void 0&&(t=!1),gf(this,t)},e}();q.Node=mf;var cl=function(e){Un(t,e);function t(n){var r=e.call(this)||this;return r.data=n,r}return Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),t}(mf);q.DataNode=cl;var Kv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(cl);q.Text=Kv;var Zv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(cl);q.Comment=Zv;var Xv=function(e){Un(t,e);function t(n,r){var i=e.call(this,r)||this;return i.name=n,i.type=Ge.ElementType.Directive,i}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(cl);q.ProcessingInstruction=Xv;var dl=function(e){Un(t,e);function t(n){var r=e.call(this)||this;return r.children=n,r}return Object.defineProperty(t.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),t}(mf);q.NodeWithChildren=dl;var Gv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(dl);q.CDATA=Gv;var Yv=function(e){Un(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ge.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(dl);q.Document=Yv;var Jv=function(e){Un(t,e);function t(n,r,i,s){i===void 0&&(i=[]),s===void 0&&(s=n==="script"?Ge.ElementType.Script:n==="style"?Ge.ElementType.Style:Ge.ElementType.Tag);var o=e.call(this,i)||this;return o.name=n,o.attribs=r,o.type=s,o}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,s;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(s=n["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),t}(dl);q.Element=Jv;function ey(e){return(0,Ge.isTag)(e)}q.isTag=ey;function ty(e){return e.type===Ge.ElementType.CDATA}q.isCDATA=ty;function ny(e){return e.type===Ge.ElementType.Text}q.isText=ny;function ry(e){return e.type===Ge.ElementType.Comment}q.isComment=ry;function iy(e){return e.type===Ge.ElementType.Directive}q.isDirective=iy;function sy(e){return e.type===Ge.ElementType.Root}q.isDocument=sy;function fC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=fC;function gf(e,t){t===void 0&&(t=!1);var n;if(ny(e))n=new Kv(e.data);else if(ry(e))n=new Zv(e.data);else if(ey(e)){var r=t?au(e.children):[],i=new Jv(e.name,Ki({},e.attribs),r);r.forEach(function(l){return l.parent=i}),e.namespace!=null&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Ki({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Ki({},e["x-attribsPrefix"])),n=i}else if(ty(e)){var r=t?au(e.children):[],s=new Gv(r);r.forEach(function(u){return u.parent=s}),n=s}else if(sy(e)){var r=t?au(e.children):[],o=new Yv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(iy(e)){var a=new Xv(e.name,e.data);e["x-name"]!=null&&(a["x-name"]=e["x-name"],a["x-publicId"]=e["x-publicId"],a["x-systemId"]=e["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}q.cloneNode=gf;function au(e){for(var t=e.map(function(r){return gf(r,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}(function(e){var t=He&&He.__createBinding||(Object.create?function(a,l,u,c){c===void 0&&(c=u);var d=Object.getOwnPropertyDescriptor(l,u);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[u]}}),Object.defineProperty(a,c,d)}:function(a,l,u,c){c===void 0&&(c=u),a[c]=l[u]}),n=He&&He.__exportStar||function(a,l){for(var u in a)u!=="default"&&!Object.prototype.hasOwnProperty.call(l,u)&&t(l,a,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=pf,i=q;n(q,e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=s),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??s,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,d=new i.Element(l,u,void 0,c);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=l,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new i.Text(l);this.addNode(c),this.lastNode=c}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var u=new i.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new i.Text(""),u=new i.CDATA([l]);this.addNode(u),l.parent=u,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,u){var c=new i.ProcessingInstruction(l,u);this.addNode(c)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),u.children.push(l),c&&(l.prev=c,c.next=l),l.parent=u,this.lastNode=null},a}();e.DomHandler=o,e.default=o})(hf);var im="html",sm="head",xo="body",hC=/<([a-zA-Z]+[0-9]?)/,om=/<head[^]*>/i,am=/<body[^]*>/i,_a=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Dc=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},lm=typeof window=="object"&&window.DOMParser;if(typeof lm=="function"){var pC=new lm,mC="text/html";Dc=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),pC.parseFromString(e,mC)},_a=Dc}if(typeof document=="object"&&document.implementation){var So=document.implementation.createHTMLDocument();_a=function(e,t){if(t){var n=So.documentElement.querySelector(t);return n.innerHTML=e,So}return So.documentElement.innerHTML=e,So}}var lu=typeof document=="object"?document.createElement("template"):{},Fc;lu.content&&(Fc=function(e){return lu.innerHTML=e,lu.content.childNodes});function gC(e){var t,n=e.match(hC);n&&n[1]&&(t=n[1].toLowerCase());var r,i,s;switch(t){case im:return r=Dc(e),om.test(e)||(i=r.querySelector(sm),i&&i.parentNode.removeChild(i)),am.test(e)||(i=r.querySelector(xo),i&&i.parentNode.removeChild(i)),r.querySelectorAll(im);case sm:case xo:return r=_a(e),s=r.querySelectorAll(t),am.test(e)&&om.test(e)?s[0].parentNode.childNodes:s;default:return Fc?Fc(e):(i=_a(e,xo).querySelector(xo),i.childNodes)}}var vC=gC,vf={},oy={};oy.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var fl=hf,yC=oy,um=yC.CASE_SENSITIVE_TAG_NAMES,wC=fl.Comment,xC=fl.Element,SC=fl.ProcessingInstruction,bC=fl.Text,ay={},uu;for(var cu=0,EC=um.length;cu<EC;cu++)uu=um[cu],ay[uu.toLowerCase()]=uu;function CC(e){return ay[e]}function ly(e){for(var t={},n,r=0,i=e.length;r<i;r++)n=e[r],t[n.name]=n.value;return t}function kC(e){e=e.toLowerCase();var t=CC(e);return t||e}function uy(e,t,n){t=t||null;for(var r=[],i,s=0,o=e.length;s<o;s++){var a=e[s],l;switch(a.nodeType){case 1:i=kC(a.nodeName),l=new xC(i,ly(a.attributes)),l.children=uy(i==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new bC(a.nodeValue);break;case 8:l=new wC(a.nodeValue);break;default:continue}var u=r[s-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new SC(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=t,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}vf.formatAttributes=ly;vf.formatDOM=uy;var OC=vC,RC=vf,PC=RC.formatDOM,jC=/<(![a-zA-Z\s]+)>/;function NC(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(jC),n;return t&&t[1]&&(n=t[1]),PC(OC(e),null,n)}var TC=NC,Et={},hl={},_C=0;hl.SAME=_C;var IC=1;hl.CAMELCASE=IC;hl.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1};Object.defineProperty(Et,"__esModule",{value:!0});function AC(e,t){return LC(e)||MC(e,t)||DC(e,t)||FC()}function LC(e){if(Array.isArray(e))return e}function MC(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function DC(e,t){if(e){if(typeof e=="string")return cm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cm(e,t)}}function cm(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
225
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var cy=0,Vn=1,pl=2,ml=3,yf=4,dy=5,fy=6;function $C(e){return Ce.hasOwnProperty(e)?Ce[e]:null}function Me(e,t,n,r,i,s,o){this.acceptsBooleans=t===pl||t===ml||t===yf,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Ce={},zC=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];zC.forEach(function(e){Ce[e]=new Me(e,cy,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=AC(e,2),n=t[0],r=t[1];Ce[n]=new Me(n,Vn,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ce[e]=new Me(e,pl,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ce[e]=new Me(e,pl,!1,e,null,!1,!1)});["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){Ce[e]=new Me(e,ml,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ce[e]=new Me(e,ml,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ce[e]=new Me(e,yf,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ce[e]=new Me(e,fy,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ce[e]=new Me(e,dy,!1,e.toLowerCase(),null,!1,!1)});var wf=/[\-\:]([a-z])/g,xf=function(t){return t[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Vn,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Vn,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wf,xf);Ce[t]=new Me(t,Vn,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ce[e]=new Me(e,Vn,!1,e.toLowerCase(),null,!1,!1)});var BC="xlinkHref";Ce[BC]=new Me("xlinkHref",Vn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ce[e]=new Me(e,Vn,!1,e.toLowerCase(),null,!0,!0)});var Sf=hl,UC=Sf.CAMELCASE,VC=Sf.SAME,dm=Sf.possibleStandardNames,HC=":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",qC=HC+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",QC=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+qC+"]*$")),WC=Object.keys(dm).reduce(function(e,t){var n=dm[t];return n===VC?e[t]=t:n===UC?e[t.toLowerCase()]=t:e[t]=n,e},{});Et.BOOLEAN=ml;Et.BOOLEANISH_STRING=pl;Et.NUMERIC=dy;Et.OVERLOADED_BOOLEAN=yf;Et.POSITIVE_NUMERIC=fy;Et.RESERVED=cy;Et.STRING=Vn;Et.getPropertyInfo=$C;Et.isCustomAttribute=QC;Et.possibleStandardNames=WC;var hy={},bf={exports:{}},fm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,KC=/\n/g,ZC=/^\s*/,XC=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,GC=/^:\s*/,YC=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,JC=/^[;\s]*/,e8=/^\s+|\s+$/g,t8=`
226
+ `,hm="/",pm="*",Kn="",n8="comment",r8="declaration",i8=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(p){var y=p.match(KC);y&&(n+=y.length);var x=p.lastIndexOf(t8);r=~x?p.length-x:r+p.length}function s(){var p={line:n,column:r};return function(y){return y.position=new o(p),u(),y}}function o(p){this.start=p,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(p){var y=new Error(t.source+":"+n+":"+r+": "+p);if(y.reason=p,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(p){var y=p.exec(e);if(y){var x=y[0];return i(x),e=e.slice(x.length),y}}function u(){l(ZC)}function c(p){var y;for(p=p||[];y=d();)y!==!1&&p.push(y);return p}function d(){var p=s();if(!(hm!=e.charAt(0)||pm!=e.charAt(1))){for(var y=2;Kn!=e.charAt(y)&&(pm!=e.charAt(y)||hm!=e.charAt(y+1));)++y;if(y+=2,Kn===e.charAt(y-1))return a("End of comment missing");var x=e.slice(2,y-2);return r+=2,i(x),e=e.slice(y),r+=2,p({type:n8,comment:x})}}function h(){var p=s(),y=l(XC);if(y){if(d(),!l(GC))return a("property missing ':'");var x=l(YC),m=p({type:r8,property:mm(y[0].replace(fm,Kn)),value:x?mm(x[0].replace(fm,Kn)):Kn});return l(JC),m}}function g(){var p=[];c(p);for(var y;y=h();)y!==!1&&(p.push(y),c(p));return p}return u(),g()};function mm(e){return e?e.replace(e8,Kn):Kn}var s8=i8;function py(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=s8(e),s=typeof t=="function",o,a,l=0,u=i.length;l<u;l++)r=i[l],o=r.property,a=r.value,s?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}bf.exports=py;bf.exports.default=py;var o8=bf.exports,gl={};gl.__esModule=!0;gl.camelCase=void 0;var a8=/^--[a-zA-Z0-9-]+$/,l8=/-([a-z])/g,u8=/^[^-]+$/,c8=/^-(webkit|moz|ms|o|khtml)-/,d8=/^-(ms)-/,f8=function(e){return!e||u8.test(e)||a8.test(e)},h8=function(e,t){return t.toUpperCase()},gm=function(e,t){return"".concat(t,"-")},p8=function(e,t){return t===void 0&&(t={}),f8(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(d8,gm):e=e.replace(c8,gm),e.replace(l8,h8))};gl.camelCase=p8;(function(e){var t=He&&He.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};e.__esModule=!0;var n=t(o8),r=gl;function i(s,o){var a={};return!s||typeof s!="string"||(0,n.default)(s,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=i})(hy);var m8=b,g8=hy.default;function v8(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,i=typeof t=="function",s={},o={};for(n in e){if(r=e[n],i&&(s=t(n,r),s&&s.length===2)){o[s[0]]=s[1];continue}typeof r=="string"&&(o[r]=n)}return o}function y8(e,t){if(e.indexOf("-")===-1)return t&&typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var w8={reactCompat:!0};function x8(e,t){if(e!=null)try{t.style=g8(e,w8)}catch{t.style={}}}var S8=m8.version.split(".")[0]>=16,my=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function b8(e){return!my.has(e.name)}var gy={PRESERVE_CUSTOM_ATTRIBUTES:S8,invertObject:v8,isCustomComponent:y8,setStyleProp:x8,canTextBeChildOfNode:b8,elementsWithNoTextChildren:my},Ni=Et,vm=gy,E8=["checked","value"],C8=["input","select","textarea"],k8={reset:!0,submit:!0},vy=function(t,n){t=t||{};var r,i,s,o,a,l={},u=t.type&&k8[t.type];for(r in t){if(s=t[r],Ni.isCustomAttribute(r)){l[r]=s;continue}if(i=r.toLowerCase(),o=ym(i),o){switch(a=Ni.getPropertyInfo(o),E8.indexOf(o)!==-1&&C8.indexOf(n)!==-1&&!u&&(o=ym("default"+i)),l[o]=s,a&&a.type){case Ni.BOOLEAN:l[o]=!0;break;case Ni.OVERLOADED_BOOLEAN:s===""&&(l[o]=!0);break}continue}vm.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=s)}return vm.setStyleProp(t.style,l),l};function ym(e){return Ni.possibleStandardNames[e]}var O8=b,R8=vy,Ia=gy,P8=Ia.setStyleProp,j8=Ia.canTextBeChildOfNode;function yy(e,t){t=t||{};for(var n=t.library||O8,r=n.cloneElement,i=n.createElement,s=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,g=t.trim,p=0,y=e.length;p<y;p++){if(a=e[p],u&&(c=t.replace(a),s(c))){y>1&&(c=r(c,{key:c.key||p})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!j8(a.parent)||g&&l)continue;o.push(a.data);continue}switch(d=a.attribs,N8(a)?P8(d.style,d):d&&(d=R8(d,a.name)),h=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(h=yy(a.children,t));break;default:continue}y>1&&(d.key=p),o.push(i(a.name,d,h))}return o.length===1?o[0]:o}function N8(e){return Ia.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Ia.isCustomComponent(e.name,e.attribs)}var T8=yy,vl=hf,Tr=TC,_8=vy,wy=T8;Tr=typeof Tr.default=="function"?Tr.default:Tr;var I8={lowerCaseAttributeNames:!1};function Kt(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},wy(Tr(e,t.htmlparser2||I8),t))}Kt.domToReact=wy;Kt.htmlToDOM=Tr;Kt.attributesToProps=_8;Kt.Comment=vl.Comment;Kt.Element=vl.Element;Kt.ProcessingInstruction=vl.ProcessingInstruction;Kt.Text=vl.Text;var A8=Kt;Kt.default=Kt;const Hn=js(A8);var bo=Hn.domToReact;Hn.htmlToDOM;var du=Hn.attributesToProps;Hn.Comment;Hn.Element;Hn.ProcessingInstruction;Hn.Text;function L8(){var y;const{appCode:e}=bt(),{theme:t}=Fd(),[n,r]=b.useState(""),[i,s]=b.useState(!0),[o,a]=b.useState(!1),[l,u]=b.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";b.useEffect(()=>{(async()=>{let x="";x=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?x=c+"/application/portal/":window.location.pathname==="/adapter"?x=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?x=c+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(x=c+"/application/userbook/");try{const m=await fetch(x),v=await m.text();if(m.status===404){u(!0);return}r(v),u(!1)}catch(m){u(!0),console.error(m)}})()},[e,c]);const h=Hn(n,{replace:x=>{const m=x;if(m.attribs&&m.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(ri,{onClick:()=>{s(!i)},children:f.jsx(l3,{})}),bo(m.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:bo(w.children,{replace:S=>{const C=S;if(C.attribs&&C.name==="a")return f.jsx("a",{...du(C.attribs),children:f.jsx("span",{onClick:()=>{s(!1)},children:bo(C.children)})})}})})}})]});if(m.attribs&&m.attribs.class==="section level2"){const v=du(x.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:m.attribs.id!=="présentation"?"none":"block"},children:bo(m.children,{replace:w=>{const S=w;if(S.attribs&&S.name==="p")return f.jsx(f.Fragment,{});if(S.attribs&&S.name==="img"){const C=w.attribs.src;return f.jsx("img",{...du(S.attribs),src:`${c}/${C}`,alt:""})}}})})}}}),g=(y=h==null?void 0:h.props)==null?void 0:y.children.find(x=>x.type==="body").props.children,p=g==null?void 0:g.find(x=>x.type==="p").props.children;return{html:n,visibility:i,isModalOpen:o,setIsModalOpen:a,parsedContent:g,parsedHeadline:p,error:l}}const xy=()=>{const[e,t]=g0(),n=b.useRef(null),r=b.useId(),{t:i}=xe();function s(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(de,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[f.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[f.jsx(c5,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:i("navbar.search")})]}),f.jsx(ff,{id:r,isVisible:t,children:f.jsxs(Mc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(Mc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(F0,{type:"submit",size:"sm",onClick:s,"aria-label":i("navbar.search")})]})})]})};xy.displayName="SearchEngine";const M8=xy;function wm({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:i}){const{t:s}=xe(),o=()=>{t(!1)};return e?Ms.createPortal(f.jsxs(kn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"xl",children:[f.jsx(kn.Header,{onModalClose:o,children:s("navbar.help")}),f.jsx(kn.Subtitle,{children:i?s("help.notfound.title"):n}),f.jsx(kn.Body,{className:i?"d-flex":null,children:i?s("help.notfound.text"):r})]}),document.getElementById("portal")):null}const Sy=({is1d:e=!1,src:t=""})=>{const{t:n}=xe(),{messages:r,msgLink:i,zimbraWorkflow:s}=uC(),{user:o,avatar:a}=$d(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=L8(),g=Z("header",{"no-2d":e,"no-1d":!e}),{title:p,bookmarkedApps:y,appsRef:x,isAppsHovered:m,popoverAppsId:v,userAvatar:w,userName:S,welcomeUser:C,communityWorkflow:k,conversationWorflow:O,searchWorkflow:R,isCollapsed:I,toggleCollapsedNav:A,handleLogout:M}=e4({user:o,avatar:a}),z=r>0;return f.jsx("header",{className:g,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(ou,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:p}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(wp,{alt:S,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:C})]}),f.jsxs(rm,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[O&&f.jsx(de,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(o5,{className:"icon notification"}),z&&f.jsx(su,{children:r}),f.jsx(ji,{children:n("navbar.messages")})]})}),f.jsx(de,{children:f.jsx(bi,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(l5,{className:"icon user"})})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(i5,{className:"icon help"}),f.jsx(ji,{children:n("navbar.help")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{children:f.jsxs("button",{className:"nav-link",onClick:M,children:[f.jsx(xp,{className:"icon logout"}),f.jsx(ji,{children:n("navbar.disconnect")})]})}),f.jsx(de,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!I,"aria-label":n("navbar.secondary.navigation"),onClick:A,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(ou,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:f.jsx("div",{className:"container-fluid",children:f.jsxs("div",{className:`collapse navbar-collapse ${I?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(nm,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(rm,{className:"gap-8",children:[f.jsx(de,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(n5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(f5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(de,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(Sp,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(ou,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(nm,{src:`${t}/img/illustrations/logo.png`}),f.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:p}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(de,{children:f.jsx(bi,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx(X3,{color:"#fff"})})}),f.jsxs(de,{className:"position-relative",ref:x,id:v,"aria-haspopup":"true","aria-expanded":m,children:[f.jsx(bi,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(Sp,{color:"#fff"})}),f.jsxs(ff,{className:"top-100 widget",id:v,isVisible:m,children:[f.jsx(rC,{children:f.jsx(dC,{bookmarkedApps:y})}),f.jsx(iC,{className:"widget-footer border-top border-ghost",children:f.jsx(cC,{})})]})]}),O&&f.jsx(de,{children:f.jsxs(bi,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),s&&f.jsx(de,{children:f.jsxs(bi,{className:"position-relative",link:i,translate:n("conversation"),children:[f.jsx(bp,{color:"#fff"}),z&&f.jsx(su,{children:r})]})}),f.jsxs(de,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(J3,{color:"#fff"}),f.jsx(ji,{children:n("support")})]}),f.jsx(wm,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(de,{children:f.jsxs("div",{className:"dropdown",children:[f.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!I,"aria-label":n("navbar.open.menu"),onClick:A,children:f.jsx(wc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${I?"":"show"}`,id:"dropdown-navbar",children:[k&&f.jsx(de,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(W3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),R?f.jsx(M8,{}):null,f.jsx(de,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(wp,{alt:S,size:"sm",src:w,variant:"circle",className:"bg-white",width:"32",height:"32"}),f.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),f.jsx(de,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(de,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(xp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};Sy.displayName="Header";const D8=Sy;function by({children:e,className:t,...n}){const r=Z("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}by.displayName="Main";const Ey=({children:e,...t})=>{const{theme:n}=Fd();return f.jsxs(f.Fragment,{children:[f.jsx(D8,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(by,{className:Z("d-flex flex-column bg-white",{"rounded-4 border":n==null?void 0:n.is1d,"mt-24":n==null?void 0:n.is1d}),...t,children:e}),f.jsx(W4,{toastOptions:{position:"top-right"}})]})};Ey.displayName="Layout";const F8=Ey,$8=function(){return null};var Cy,xm=Ms;Cy=xm.createRoot,xm.hydrateRoot;const Ft=document.querySelector("[data-ode-app]");let Ei;function Hs(){var e;if(Ei)return Ei;if(Ei={app:Eo.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=Ft==null?void 0:Ft.dataset)!=null&&e.odeApp){const{odeApp:t}=Ft.dataset;try{const n=JSON.parse(t);Object.assign(Ei,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",Ft==null?void 0:Ft.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",Ft==null?void 0:Ft.dataset);return Ei}const Sm=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const d=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(h=>h(t,d))}},i=()=>t,a={setState:r,getState:i,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,i,a),a},z8=e=>e?Sm(e):Sm;var ky={exports:{}},Oy={};/**
227
227
  * @license React
228
228
  * use-sync-external-store-shim/with-selector.production.min.js
229
229
  *
@@ -231,4 +231,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
231
231
  *
232
232
  * This source code is licensed under the MIT license found in the
233
233
  * LICENSE file in the root directory of this source tree.
234
- */var yl=b,B8=a0;function U8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var V8=typeof Object.is=="function"?Object.is:U8,H8=B8.useSyncExternalStore,q8=yl.useRef,Q8=yl.useEffect,W8=yl.useMemo,K8=yl.useDebugValue;Oy.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=q8(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=W8(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var p=o.value;if(i(p,g))return d=p}return d=g}if(p=d,V8(c,g))return p;var y=r(g);return i!==void 0&&i(p,y)?p:(c=g,d=y)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var a=H8(e,s[0],s[1]);return Q8(function(){o.hasValue=!0,o.value=a},[a]),K8(a),a};ky.exports=Oy;var Z8=ky.exports;const X8=Ps(Z8),{useSyncExternalStoreWithSelector:G8}=X8;function Y8(e,t=e.getState,n){const r=G8(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return b.useDebugValue(r),r}const bm=e=>{const t=typeof e=="function"?z8(e):e,n=(r,i)=>Y8(t,r,i);return Object.assign(n,t),n},J8=e=>e?bm(e):bm,Ry=async e=>{const t=await G.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},e6=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await G.resource(e.app).createFolder(r)},t6=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const i={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await G.resource(t.app).updateFolder(i)},n6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).trashAll(i,n)},r6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).deleteAll(i,n)},i6=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await G.resource(e.app).restoreAll(i,r)},s6=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:i})=>{const s={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await G.resource(e.app).moveToFolder(s,i)},o6=async({searchParams:e,entId:t,shares:n})=>await G.share().saveRights(e.app,t,n),a6=async({searchParams:e,params:t})=>await G.resource(e.app).update(t),l6=async e=>await G.rights().sessionHasWorkflowRights(e),u6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoView(t),c6=({searchParams:e,params:t})=>G.resource(e.app).create(t),d6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoPrint(t),f6=async({searchParams:e,params:t})=>await G.resource(e.app).publish(t),h6=async()=>await G.conf().getPreference("showOnboardingTrash"),p6=async({onSuccess:e})=>{const t=await G.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function Ef(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Rs(e,t){var r,i;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((i=t==null?void 0:t.children)==null||i.every(s=>(n=Rs(e,s),n===void 0))),n)}function m6(e,t){var r;const n=Rs(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===et.BIN?[et.BIN]:[et.DEFAULT]}function Py(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Py(t.id,n)):!1}function Hs(e,t){return jy(e,t)||e}function jy(e,t,n){var i;const r=t(e,n);if((i=r==null?void 0:r.children)!=null&&i.length){const s=[];for(const o of(r==null?void 0:r.children)||[]){const a=jy(o,t,r);a&&s.push(a)}return{...r,children:s}}return r}class wl{constructor(t){fr(this,"id");fr(this,"name");fr(this,"childNumber");fr(this,"section",!1);fr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ny=(e,t,n)=>Hs(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(i=>new wl(i))),r)),{app:g6,types:v6,filters:y6,orders:w6}=Vs(),De=J8()((e,t)=>({filters:y6,orders:w6,searchConfig:{minLength:1},searchParams:{app:g6,types:v6,filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:et.DEFAULT,name:Kt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(({searchParams:r})=>r.search!=n.search?n.search?{selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...r,...n,filters:{...r.filters,folder:void 0}}}:{selectedFolders:[],selectedNodesIds:[],selectedResources:[],searchParams:{...r,...n,filters:{...r.filters}}}:{searchParams:{...r,...n}})},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();u6({searchParams:r,assetId:n.assetId})}catch{}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:i}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const s=r.find(o=>o.id===i[0]);d6({searchParams:n,assetId:s.assetId})}catch{}},publishApi:async(n,r)=>{const{searchParams:i}=t();return await f6({searchParams:i,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:i,treeData:s}=t(),o=i.filters.folder,a=m6(n,s),l=Ef([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...i,search:void 0,filters:{...i.filters,folder:n},trashed:n===et.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:i,searchParams:s}=t();if(e(o=>({...o,status:"unfold"})),!Py(n,i)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await Ry({...s,filters:{...s.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ny(i,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||et.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:i}=t().updaters,s=Rs(n,r);J4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),i({folder:s,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:i}=t().updaters,s=n.length;if(s<2)return;const o=Rs(n[s-2],r);i({folder:o,folderId:(o==null?void 0:o.id)||et.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:et.BIN},trashed:!0},currentFolder:{id:et.BIN}}))}})),Et=()=>De(e=>e.searchParams),Cf=()=>De(e=>e.selectedNodesIds),ii=()=>De(e=>e.treeData),x6=()=>De(e=>e.selectedFolders),S6=()=>De(e=>e.selectedResources),b6=()=>De(e=>e.searchConfig),qs=()=>De(e=>e.folderIds),Qs=()=>De(e=>e.resourceIds),xl=()=>De(e=>e.selectedResources.map(t=>t.assetId)),Sl=()=>De(e=>e.selectedResources.filter(t=>t.assetId===t.id)),si=()=>De(e=>e.currentFolder),Ne=()=>De(e=>e.updaters),oi=()=>{const e=si();return(e==null?void 0:e.id)===et.BIN},Ty=()=>De(e=>e.resourceIsTrash),E6=()=>De(e=>e.resourceActionDisable),C6=()=>{const e=si();return(e==null?void 0:e.id)==="default"},k6=()=>Cf().length>1,O6=()=>De(e=>e.status);function R6(){const{appCode:e}=St(),{t}=xe(["common",e]),n=Cf(),r=oi(),i=si(),{gotoPreviousFolder:s}=Ne(),o=t("explorer.tree.trash"),a=t("explorer.filters.mine",{ns:e}),l=(i==null?void 0:i.name)||a;return f.jsx("div",{className:"py-16",children:n.length>1&&!r?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(zd,{icon:f.jsx(i3,{}),variant:"ghost",color:"tertiary","aria-label":t("back"),className:"ms-n16",onClick:s}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:l})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:r?o:a})})}function P6(e,{parentId:t,newFolder:n}){return Hs(e,r=>{var i;if(r.id===t){const s=[...((i=r.folder)==null?void 0:i.ancestors)||[]],o=Ef([...s,r.id]);return{...r,children:[...r.children||[],new wl({...n,ancestors:o})]}}else return r})}function j6(e,{folders:t}){return Hs(e,n=>{if(!t.includes(n.id))return n})}function N6(e,{destinationId:t,folders:n}){return Hs(e,(r,i)=>{var s,o;if(t===r.id){const a=[...((s=r.folder)==null?void 0:s.ancestors)||[]],l=Ef([...a,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!c.includes(h)){const g=Rs(h,e);g&&u.push({...g,folder:{...g==null?void 0:g.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(i==null?void 0:i.id)?void 0:r})}function T6(e,{folderId:t,newFolder:n}){return Hs(e,r=>r.id===t?new wl(n):r)}const{actions:Em,app:_6}=Vs(),_y=()=>Dd({queryKey:["actions"],queryFn:async()=>{const e=Em.map(n=>n.workflow);return await l6(e)},select:e=>Em.map(t=>({...t,available:e[t.workflow]}))}),I6=()=>{const{hotToast:e}=At(Lt),{appCode:t}=St(),{t:n}=xe(),r=lt(),i=Et(),s=si(),o=ii(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=Ne(),{filters:c,trashed:d,search:h}=i,g=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return ZS({queryKey:g,queryFn:async({pageParam:p=0})=>await Ry({...i,pagination:{...i.pagination,startIdx:p}}),onError(p){typeof p=="string"&&e.error(n(p))},onSuccess:async p=>{var x,m,v;await r.cancelQueries({queryKey:g});const y=[...((x=p==null?void 0:p.pages[0])==null?void 0:x.folders)??[]];(m=p==null?void 0:p.pages[0])!=null&&m.searchConfig&&u(p.pages[0].searchConfig),i.search||((s==null?void 0:s.id)==="default"?a({id:et.DEFAULT,section:!0,children:y.map(w=>new wl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Ny(o,y,i.filters.folder||et.DEFAULT))),l({...i,pagination:(v=p==null?void 0:p.pages[(p==null?void 0:p.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:p=>p.pagination.startIdx+p.pagination.pageSize})},Ak=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),i=qs(),s=xl(),o=Qs(),a=Sl().length>0,l=a?s:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return dn({mutationFn:async()=>await n6({searchParams:n,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Kt(x))},onSuccess:async x=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const S={...v,pages:v==null?void 0:v.pages.map(k=>{var O;return{...k,folders:k.folders.filter(R=>!i.includes(R.id)),pagination:{...k.pagination,maxIdx:((O=k==null?void 0:k.pagination)==null?void 0:O.maxIdx)-x.resources.length},resources:k.resources.filter(R=>a?!s.includes(R.assetId):!l.includes(R.id))}})},C=j6(r,{folders:i});return d(C),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-x.resources.length}}),S}})},onSettled:()=>{u(),c()}})},A6=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=qs(),i=xl(),s=Qs(),o=Sl().length>0,a=o?i:s,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=Ne(),{filters:h,trashed:g}=n,p=["context",{folderId:h.folder,filters:h,trashed:g}];return dn({mutationFn:async()=>await i6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(Kt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return t.setQueryData(p,x=>{if(x)return{...x,pages:x==null?void 0:x.pages.map(m=>({...m,folders:m.folders.filter(v=>!r.includes(v.id)),resources:m.resources.filter(v=>o?!i.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},Lk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=qs(),i=xl(),s=Qs(),o=Sl().length>0,a=o?i:s,{clearSelectedItems:l,clearSelectedIds:u}=Ne(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return dn({mutationFn:async()=>await r6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(g){typeof g=="string"&&e.error(Kt(g))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(x=>({...x,folders:x.folders.filter(m=>!r.includes(m.id)),resources:x.resources.filter(m=>o?!i.includes(m.assetId):!a.includes(m.id))}))}})},onSettled:()=>{l(),u()}})},Mk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),i=qs(),s=xl(),o=Qs(),a=Sl().length>0,l=a?s:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return dn({mutationFn:async x=>await s6({searchParams:n,folderId:x,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Kt(x))},onSuccess:async(x,m)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var S;if(w){const C=N6(r,{destinationId:m,folders:i}),k={...w,pages:w==null?void 0:w.pages.map(O=>{var R;return{...O,folders:O.folders.filter(I=>!i.includes(I.id)),pagination:{...O.pagination,maxIdx:((R=O.pagination)==null?void 0:R.maxIdx)-x.resources.length},resources:O.resources.filter(I=>a?!s.includes(I.assetId):!l.includes(I.id))}})};return d(C),h({...n,pagination:{...n.pagination,maxIdx:((S=n.pagination)==null?void 0:S.maxIdx)-x.resources.length}}),k}})},onSettled:()=>{c(),u()}})},Dk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),{setTreeData:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return dn({mutationFn:async({name:l,parentId:u})=>await e6({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(Kt(l))},onSuccess:async(l,u)=>{await t.cancelQueries({queryKey:a});const c=t.getQueryData(a),d={...l,parentId:u.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(c)return t.setQueryData(a,h=>{if(h){const g={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},p=P6(r,{parentId:u.parentId,newFolder:d});return i(p),g}})}})},Fk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),r=ii(),{setFolderIds:i,setSelectedFolders:s,setTreeData:o}=Ne(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return dn({mutationFn:async({folderId:c,name:d,parentId:h})=>await t6({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(Kt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,g=>{if(g){const p={...g,pages:g==null?void 0:g.pages.map(x=>({...x,folders:x.folders.map(m=>m.id===c.id?{...c,parentId:d.parentId,rights:m.rights}:m)}))},y=T6(r,{folderId:d.folderId,newFolder:c});return o(y),p}})},onSettled:()=>{i([]),s([])}})},$k=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),{setResourceIds:r,setSelectedResources:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return dn({mutationFn:async({entId:l,shares:u})=>await o6({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(Kt(l))},onSuccess:async(l,u)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return t.setQueryData(a,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(h=>({...h,resources:h.resources.map(g=>{if(g.assetId===(u==null?void 0:u.entId)){let p=[`creator:${g.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(p=[...p,...u.shares.flatMap(y=>y.actions.map(x=>`${y.type}:${y.id}:${x.id}`))]),{...g,rights:p}}else return g})}))}})},onSettled:()=>{r([]),i([])}})},zk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),{filters:r,trashed:i}=n,s=["context",{folderId:r.folder,filters:r,trashed:i}];return dn({mutationFn:async o=>await a6({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(Kt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:s}),t.getQueryData(s))return t.setQueryData(s,u=>{if(u)return{...u,pages:u==null?void 0:u.pages.map(c=>({...c,resources:c.resources.map(d=>{if(d.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:g,public:p,description:y,slug:x,...m}=a;return{...d,...m,name:h,thumbnail:g,public:p,description:y,slug:x}}else return d})}))}})}})},Bk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=Et(),{user:r}=$d(),i=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return dn({mutationFn:async s=>await c6({searchParams:n,params:s}),onError(s){typeof s=="string"&&e.error(Kt(s))},onSuccess:async(s,o)=>{var u,c,d;await t.cancelQueries({queryKey:i});const a=t.getQueryData(i),l={...o,thumbnail:o.thumbnail,application:_6,assetId:s._id||s.entId||"",id:s._id||s.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),modifiedAt:((u=s.modified)==null?void 0:u.$date)||"",modifierId:((c=s.author)==null?void 0:c.userId)||"",modifierName:((d=s.author)==null?void 0:d.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(i,h=>{if(h)return{...h,pages:h==null?void 0:h.pages.map(g=>({...g,resources:[l,...g.resources]}))}})}})},{trashActions:L6}=Vs();function Iy(){const[e,t]=b.useState(!1),[n,r]=b.useState("void"),[i,s]=b.useState(),{t:o}=xe(),{hotToast:a}=At(Lt),l=si(),u=Qs(),c=S6(),d=x6(),h=qs(),g=oi(),p=A6(),y=Ty(),{openResource:x,printSelectedResource:m,openFolder:v,clearSelectedItems:w,clearSelectedIds:S}=Ne(),{data:C}=_y();b.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function k(Z){var ie;switch((ie=document.getElementById("root"))==null||ie.setAttribute("aria-hidden","true"),s(Z),Z.id){case $e.OPEN:return u.length>0?x(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return m();case $e.DELETE:return r("delete");case $e.RESTORE:return await I();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return he();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${Z.id}`)}}function O(Z){const ie=u.length+h.length,ge=u.length===1||h.length===1,Fe=ie===1,Mt=h.length===0;switch(Z.id){case $e.OPEN:return Fe;case $e.MANAGE:return ge;case $e.PUBLISH:return ge&&Mt;case $e.UPD_PROPS:return ge&&Mt;case $e.SHARE:return Mt&&ge;case $e.PRINT:return ge&&Mt;case"edit":return Fe;default:return!0}}function R(){return!0}async function I(){try{if(g)await p.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");A()}catch{}}function A(){var Z;r("void"),i!=null&&i.id&&((Z=document.getElementById(i==null?void 0:i.id))==null||Z.focus())}const M=Z=>()=>{n===Z&&(A(),w(),S())},z=M("move"),B=M("move"),E=M("delete"),P=M("delete"),L=M("publish"),F=M("publish"),j=M("edit_folder"),N=M("edit_folder"),$=M("edit_resource"),W=M("edit_resource"),H=M("share"),Ye=M("share");function he(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function J(Z){return Z.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${Z.id}`}return{onRestore:I,actions:g?L6:C,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:J,handleClick:k,isActivable:g?R:O,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:z,onMoveSuccess:B,isDeleteModalOpen:n==="delete",onDeleteCancel:P,onDeleteSuccess:E,isPublishModalOpen:n==="publish",onPublishCancel:F,onPublishSuccess:L,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:N,onEditFolderSuccess:j,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:W,onEditResourceSuccess:$,isShareResourceOpen:n==="share",onShareResourceCancel:Ye,onShareResourceSuccess:H,onClearActionBar:A}}function M6({roles:e,rights:t,action:n}){const[r,i]=b.useState(!1),{user:s}=$d(),o=oi();b.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await G.rights().sessionHasAtLeastOneResourceRight(e,d);i(h)}else{const h=await G.rights().sessionHasResourceRight(e,d);i(h)}},l=async function(c){if(e instanceof Array){const d=await G.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);i(d)}else{const d=await G.rights().sessionHasResourceRightForEachList(e,c);i(d)}},u=async function(){var c,d,h;if(e===void 0){i(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(s==null?void 0:s.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){i(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const g=t.map(p=>p.rights);await l(g)}else i(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function D6({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:i}){const{t:s}=xe(),{overrideLabel:o}=Iy(),{visible:a}=M6({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=Ne(),u=oi();return a?f.jsx(f.Fragment,{children:r}):i?i():u&&!a?f.jsx(ni,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:s(o(n))}):f.jsx(f.Fragment,{})}const F6=b.lazy(async()=>await we(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Heading.js","Tooltip.js"])),$6=b.lazy(async()=>await we(()=>import("./DeleteModal.js"),[])),z6=b.lazy(async()=>await we(()=>import("./MoveModal.js"),[])),B6=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),U6=b.lazy(async()=>await we(()=>import("./EditResourceModal.js"),["EditResourceModal.js","Heading.js","index.esm.js","TextArea.js"])),V6=b.lazy(async()=>await we(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","Heading.js","TextArea.js"]));function H6(){const{t:e}=xe(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:i,isPublishModalOpen:s,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:g,isShareResourceOpen:p,onShareResourceCancel:y,onShareResourceSuccess:x,onMoveCancel:m,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:S,onPublishCancel:C,onPublishSuccess:k,isActivable:O,handleClick:R}=Iy(),I=ul(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return f.jsxs(f.Fragment,{children:[I((A,M)=>M&&f.jsx(Os.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:A,children:f.jsx(e3,{children:t==null?void 0:t.filter(z=>z.available&&z.target==="actionbar").map(z=>O(z)&&f.jsx(D6,{resourceRights:n,roleExpected:z.right,action:z,children:f.jsx(ni,{id:z.id,type:"button",color:"primary",variant:"filled",onClick:()=>{R(z)},children:e(l(z))},z.id)},z.id))})})),f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(z6,{isOpen:r,onCancel:m,onSuccess:v}),i&&f.jsx($6,{isOpen:i,onCancel:w,onSuccess:S}),s&&f.jsx(V6,{isOpen:s,onCancel:C,onSuccess:k}),a&&f.jsx(B6,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(U6,{edit:!0,isOpen:d,onCancel:h,onSuccess:g}),p&&f.jsx(F6,{isOpen:p,onCancel:y,onSuccess:x})]})]})}function q6(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Q6=()=>{var a;const{user:e}=St(),t=q6(Vs().app),n=(a=e.apps.find(l=>l.isExternal&&l.address.includes("library")&&l.name.includes("library")))==null?void 0:a.address.split("?");let r=n==null?void 0:n[0];r!=null&&r.endsWith("/")||(r=`${r}/`);const i=n==null?void 0:n[1],s=`application%5B0%5D=${t}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${r}search/?${i}&${s}`}},W6=b.lazy(async()=>await we(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js","Heading.js"])),K6=b.lazy(async()=>await we(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js","Heading.js"])),Z6=b.lazy(async()=>await we(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js","Heading.js"])),X6=b.lazy(async()=>await we(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js","Heading.js"])),G6=b.lazy(async()=>await we(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js","Heading.js"])),Y6=b.lazy(async()=>await we(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),J6=b.lazy(async()=>await we(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),ek=()=>{const e=C6(),t=oi(),n=k6(),r=Et(),{data:i,isError:s,isLoading:o,isFetching:a,fetchNextPage:l}=I6(),u=(i==null?void 0:i.pages[0].folders.length)===0,c=(i==null?void 0:i.pages[0].resources.length)===0,d=u&&c;return s?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Z6,{})}):r.search&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(K6,{})}):!d&&!o?f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(Y6,{data:i,isFetching:a}),f.jsx(J6,{data:i,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(W6,{})}):n&&d&&!t?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(X6,{})}):t&&(i==null?void 0:i.pages[0].resources.length)===0?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(G6,{})}):null};function tk({isOpen:e,onCancel:t=()=>({})}){const{t:n}=xe();return Ls.createPortal(f.jsxs(Cn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(Cn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(Cn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(Cn.Footer,{children:f.jsx(ni,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const nk=()=>{const e=Et(),[t,n]=b.useState(""),r=G4(t,500),i=b6(),s=O6(),{setSearchParams:o}=Ne(),a=c=>{const d=c.target.value;n(d)},l=c=>{(c.key==="Enter"||c.key==="Return")&&(o({search:r||void 0}),c.preventDefault())},u=c=>{o({search:r||void 0}),c.preventDefault()};return b.useEffect(()=>{const d=r.length==0||r.length>=i.minLength?{search:r||void 0}:{};o({...e,...d})},[r,i.minLength]),b.useEffect(()=>{s==="select"&&n("")},[s]),b.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e.search]),{inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}},rk=()=>{const{appCode:e,currentApp:t}=St(),{t:n}=xe(),[r,i]=b.useState([0]),s=si(),{setSearchParams:o}=Ne();b.useEffect(()=>{const l=()=>r.includes(1)?!0:void 0,u=()=>r.includes(2)?!0:void 0,c=()=>r.includes(7)?!0:void 0;o({filters:{owner:l(),public:c(),shared:u(),folder:s?s.id:"default"}})},[s,o,r]);const a=[{label:n("explorer.filter.all",{ns:e}),value:0},{label:n("explorer.filter.owner",{ns:e}),value:1},{label:n("explorer.filter.shared",{ns:e}),value:2},...(t==null?void 0:t.displayName)==Eo.EXERCIZER?[{label:"Exercices interactifs",value:3}]:[],...(t==null?void 0:t.displayName)==Eo.EXERCIZER?[{label:"Exercices à rendre",value:4}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:5}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:6}]:[],...(t==null?void 0:t.displayName)==Eo.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:7}]:[]];return{selectedFilters:r,options:a,setSelectedFilters:i}},ik=()=>{const{appCode:e}=St(),{t}=xe(),{selectedFilters:n,options:r,setSelectedFilters:i}=rk(),{inputSearch:s,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=nk();return f.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",children:[f.jsxs(Mc,{id:"search",className:"input-group",children:[f.jsx(Av,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:s,onChange:o,onKeyDown:a}),f.jsx(F0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:l})]}),f.jsx(QE,{content:f.jsx(KE,{isMonoSelection:!0,model:n,onChange:u=>i(u),options:r}),trigger:f.jsx(WE,{icon:f.jsx(y3,{width:20}),title:t("Filtres "),variant:"ghost",badgeContent:n.length>0?n.length:void 0})})]})},sk=({id:e,selected:t,onSelect:n})=>{const{t:r}=xe();return f.jsx("div",{className:"treeview",children:f.jsx("ul",{role:"tree",className:"m-0 p-0",children:f.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:f.jsx("div",{children:f.jsx("div",{className:"action-container",children:f.jsx("div",{onClick:n,role:"button",tabIndex:0,children:f.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[f.jsx(f3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},ok=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),ak=()=>{const e=lt(),{t}=xe(),[n,r]=X4(),i=ii(),s=oi(),o=Cf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c}=Ne(),d=async h=>{await u(h,e)};return i?f.jsxs(f.Fragment,{children:[f.jsx(aC,{data:i,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:d}),f.jsx(sk,{id:et.BIN,selected:s,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(ni,{disabled:s,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(P3,{}),onClick:r,children:t("explorer.folder.new")})}),f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(ok,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},lk=()=>{const e=E6(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Ne();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},uk=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!0);return b.useEffect(()=>{(async()=>{const s=await h6();if(s){t(JSON.parse(s==null?void 0:s.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await p6({onSuccess:()=>r(!1)})},setIsOpen:r}},ck=()=>{const e=Ty(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Ne();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},dk=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},fk=b.lazy(async()=>await we(()=>import("./OnboardingTrash.js"),[])),hk=b.lazy(async()=>await we(()=>import("./AppAction.js"),[])),pk=b.lazy(async()=>await we(()=>import("./Library.js"),[])),mk=b.lazy(async()=>await we(()=>import("./TrashedResourceModal.js"),[]));function gk(){const{currentApp:e}=St(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:i}=uk(),{data:s}=_y(),{isTrashedModalOpen:o,onTrashedCancel:a}=ck(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=lk();n4();const c=s==null?void 0:s.find(h=>h.id==="publish"),{libraryUrl:d}=Q6();return f.jsxs(f.Fragment,{children:[f.jsx(B3,{render:()=>dk({workflow:"create",actions:s})?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(hk,{})}):null,children:f.jsx(q3,{app:e})}),f.jsxs(Qi,{className:"flex-grow-1",children:[f.jsxs(Qi.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(ak,{}),(c==null?void 0:c.available)&&d&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(pk,{url:d})})]}),f.jsxs(Qi.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(ik,{}),f.jsx(R6,{}),f.jsx(ek,{})]}),f.jsx(H6,{}),t&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(fk,{isOpen:n,setIsOpen:r,handleSavePreference:i})}),o&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(mk,{isOpen:o,onCancel:a})}),l&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(tk,{isOpen:l,onCancel:u})})]})]})}function vk(){const{init:e}=St();return e?e?f.jsx(F8,{children:f.jsx(gk,{})}):null:f.jsx(Ve,{position:!1})}const yk=document.getElementById("root"),wk=new ww({queryCache:new Ym({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});Cy(yk).render(f.jsx(b.StrictMode,{children:f.jsxs(MS,{client:wk,children:[f.jsx(GS,{params:Vs(),children:f.jsx(t4,{children:f.jsx(vk,{})})}),f.jsx($8,{initialIsOpen:!1})]})}));export{_y as $,Lt as A,ni as B,KE as C,Lk as D,Ak as E,Mc as F,oi as G,Mk as H,R0 as I,x6 as J,Ne as K,Ve as L,Cn as M,lt as N,ii as O,si as P,Dk as Q,Im as R,P3 as S,aC as T,Fk as U,Pi as V,XE as W,ZE as X,Ok as Y,Bk as Z,we as _,Ls as a,dk as a0,cf as a1,q6 as a2,Vs as a3,QE as a4,WE as a5,Rk as a6,f3 as a7,xc as a8,qs as a9,Ik as aa,J4 as ab,Os as ac,He as ad,Ps as ae,Qs as af,Pk as ag,jk as ah,_k as ai,l5 as aj,Nk as ak,v0 as al,Ob as am,Ya as b,X4 as c,St as d,Ek as e,Fd as f,K as g,Et as h,$d as i,f as j,G4 as k,S6 as l,zk as m,$k as n,At as o,Ck as p,wp as q,b as r,wc as s,zd as t,xe as u,kk as v,Tk as w,E3 as x,Av as y,H3 as z};
234
+ */var yl=b,B8=a0;function U8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var V8=typeof Object.is=="function"?Object.is:U8,H8=B8.useSyncExternalStore,q8=yl.useRef,Q8=yl.useEffect,W8=yl.useMemo,K8=yl.useDebugValue;Oy.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var s=q8(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=W8(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var p=o.value;if(i(p,g))return d=p}return d=g}if(p=d,V8(c,g))return p;var y=r(g);return i!==void 0&&i(p,y)?p:(c=g,d=y)}var u=!1,c,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var a=H8(e,s[0],s[1]);return Q8(function(){o.hasValue=!0,o.value=a},[a]),K8(a),a};ky.exports=Oy;var Z8=ky.exports;const X8=js(Z8),{useSyncExternalStoreWithSelector:G8}=X8;function Y8(e,t=e.getState,n){const r=G8(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return b.useDebugValue(r),r}const bm=e=>{const t=typeof e=="function"?z8(e):e,n=(r,i)=>Y8(t,r,i);return Object.assign(n,t),n},J8=e=>e?bm(e):bm,Ry=async e=>{const t=await G.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},e6=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await G.resource(e.app).createFolder(r)},t6=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const i={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await G.resource(t.app).updateFolder(i)},n6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).trashAll(i,n)},r6=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await G.resource(e.app).deleteAll(i,n)},i6=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const i={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await G.resource(e.app).restoreAll(i,r)},s6=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:i})=>{const s={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await G.resource(e.app).moveToFolder(s,i)},o6=async({searchParams:e,entId:t,shares:n})=>await G.share().saveRights(e.app,t,n),a6=async({searchParams:e,params:t})=>await G.resource(e.app).update(t),l6=async e=>await G.rights().sessionHasWorkflowRights(e),u6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoView(t),c6=({searchParams:e,params:t})=>G.resource(e.app).create(t),d6=({searchParams:e,assetId:t})=>G.resource(e.app).gotoPrint(t),f6=async({searchParams:e,params:t})=>await G.resource(e.app).publish(t),h6=async()=>await G.conf().getPreference("showOnboardingTrash"),p6=async({onSuccess:e})=>{const t=await G.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function Ef(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Ps(e,t){var r,i;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((i=t==null?void 0:t.children)==null||i.every(s=>(n=Ps(e,s),n===void 0))),n)}function m6(e,t){var r;const n=Ps(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===et.BIN?[et.BIN]:[et.DEFAULT]}function Py(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Py(t.id,n)):!1}function qs(e,t){return jy(e,t)||e}function jy(e,t,n){var i;const r=t(e,n);if((i=r==null?void 0:r.children)!=null&&i.length){const s=[];for(const o of(r==null?void 0:r.children)||[]){const a=jy(o,t,r);a&&s.push(a)}return{...r,children:s}}return r}class wl{constructor(t){hr(this,"id");hr(this,"name");hr(this,"childNumber");hr(this,"section",!1);hr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ny=(e,t,n)=>qs(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(i=>new wl(i))),r)),{app:g6,types:v6,filters:y6,orders:w6}=Hs(),De=J8()((e,t)=>({filters:y6,orders:w6,searchConfig:{minLength:1},searchParams:{app:g6,types:v6,filters:{folder:"default",owner:void 0,shared:void 0,public:void 0},orders:{updatedAt:"desc"},pagination:{startIdx:0,pageSize:48,maxIdx:0},trashed:!1},treeData:{id:et.DEFAULT,name:Zt("explorer.filters.mine"),section:!0,children:[]},selectedNodesIds:["default"],currentFolder:{id:"default"},selectedFolders:[],selectedResources:[],folderIds:[],resourceIds:[],resourceIsTrash:!1,resourceActionDisable:!1,status:void 0,updaters:{setSearchConfig:n=>e(r=>({searchConfig:{...r.searchConfig,...n}})),setTreeData:n=>e(()=>({treeData:n})),setSearchParams:n=>{e(({searchParams:r})=>(console.log(r.search!==n.search),r.search!==n.search?n.search?{selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...r,...n,filters:{...r.filters,folder:void 0}}}:{selectedFolders:[],selectedNodesIds:[],selectedResources:[],searchParams:{...r,...n,filters:{...r.filters}}}:{searchParams:{...r,...n}}))},setSelectedFolders:n=>e(()=>({selectedFolders:n})),setSelectedResources:n=>e(()=>({selectedResources:n})),setFolderIds:n=>e(()=>({folderIds:n})),setResourceIds:n=>e(()=>({resourceIds:n})),setResourceIsTrash:n=>e(()=>({resourceIsTrash:n})),setResourceActionDisable:n=>e(()=>({resourceActionDisable:n})),setCurrentFolder:n=>e(()=>({currentFolder:n})),clearSelectedItems:()=>e(()=>({selectedFolders:[],selectedResources:[]})),clearSelectedIds:()=>e(()=>({resourceIds:[],folderIds:[]})),openResource:n=>{try{const{searchParams:r}=t();u6({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:i}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const s=r.find(o=>o.id===i[0]);d6({searchParams:n,assetId:s.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:i}=t();return await f6({searchParams:i,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:i,treeData:s}=t(),o=i.filters.folder,a=m6(n,s),l=Ef([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...i,search:void 0,filters:{...i.filters,folder:n},trashed:n===et.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:i,searchParams:s}=t();if(e(o=>({...o,status:"unfold"})),!Py(n,i)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await Ry({...s,filters:{...s.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ny(i,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||et.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:i}=t().updaters,s=Ps(n,r);J4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),i({folder:s,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:i}=t().updaters,s=n.length;if(s<2)return;const o=Ps(n[s-2],r);i({folder:o,folderId:(o==null?void 0:o.id)||et.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],searchParams:{...n.searchParams,filters:{folder:et.BIN},trashed:!0},currentFolder:{id:et.BIN}}))}})),ut=()=>De(e=>e.searchParams),Cf=()=>De(e=>e.selectedNodesIds),si=()=>De(e=>e.treeData),x6=()=>De(e=>e.selectedFolders),S6=()=>De(e=>e.selectedResources),b6=()=>De(e=>e.searchConfig),Qs=()=>De(e=>e.folderIds),Ws=()=>De(e=>e.resourceIds),xl=()=>De(e=>e.selectedResources.map(t=>t.assetId)),Sl=()=>De(e=>e.selectedResources.filter(t=>t.assetId===t.id)),oi=()=>De(e=>e.currentFolder),Ne=()=>De(e=>e.updaters),ai=()=>{const e=oi();return(e==null?void 0:e.id)===et.BIN},Ty=()=>De(e=>e.resourceIsTrash),E6=()=>De(e=>e.resourceActionDisable),C6=()=>{const e=oi();return(e==null?void 0:e.id)==="default"},k6=()=>Cf().length>1,O6=()=>De(e=>e.status);function R6(){const{appCode:e}=bt(),{t}=xe(["common",e]),n=Cf(),r=ai(),i=oi(),{gotoPreviousFolder:s}=Ne(),o=t("explorer.tree.trash"),a=t("explorer.filters.mine",{ns:e}),l=(i==null?void 0:i.name)||a;return f.jsx("div",{className:"py-16",children:n.length>1&&!r?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(zd,{icon:f.jsx(i3,{}),variant:"ghost",color:"tertiary","aria-label":t("back"),className:"ms-n16",onClick:s}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:l})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:r?o:a})})}function P6(e,{parentId:t,newFolder:n}){return qs(e,r=>{var i;if(r.id===t){const s=[...((i=r.folder)==null?void 0:i.ancestors)||[]],o=Ef([...s,r.id]);return{...r,children:[...r.children||[],new wl({...n,ancestors:o})]}}else return r})}function j6(e,{folders:t}){return qs(e,n=>{if(!t.includes(n.id))return n})}function N6(e,{destinationId:t,folders:n}){return qs(e,(r,i)=>{var s,o;if(t===r.id){const a=[...((s=r.folder)==null?void 0:s.ancestors)||[]],l=Ef([...a,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(h=>h.id))||[];for(const h of n)if(!c.includes(h)){const g=Ps(h,e);g&&u.push({...g,folder:{...g==null?void 0:g.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(i==null?void 0:i.id)?void 0:r})}function T6(e,{folderId:t,newFolder:n}){return qs(e,r=>r.id===t?new wl(n):r)}const{actions:Em,app:_6}=Hs(),_y=()=>Dd({queryKey:["actions"],queryFn:async()=>{const e=Em.map(n=>n.workflow);return await l6(e)},select:e=>Em.map(t=>({...t,available:e[t.workflow]}))}),I6=()=>{const{hotToast:e}=At(Lt),{appCode:t}=bt(),{t:n}=xe(),r=lt(),i=ut(),s=oi(),o=si(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=Ne(),{filters:c,trashed:d,search:h}=i,g=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return ZS({queryKey:g,queryFn:async({pageParam:p=0})=>await Ry({...i,pagination:{...i.pagination,startIdx:p}}),onError(p){typeof p=="string"&&e.error(n(p))},onSuccess:async p=>{var x,m,v;await r.cancelQueries({queryKey:g});const y=[...((x=p==null?void 0:p.pages[0])==null?void 0:x.folders)??[]];(m=p==null?void 0:p.pages[0])!=null&&m.searchConfig&&u(p.pages[0].searchConfig),i.search||((s==null?void 0:s.id)==="default"?a({id:et.DEFAULT,section:!0,children:y.map(w=>new wl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Ny(o,y,i.filters.folder||et.DEFAULT))),l({...i,pagination:(v=p==null?void 0:p.pages[(p==null?void 0:p.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:p=>p.pagination.startIdx+p.pagination.pageSize})},Ak=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=si(),i=Qs(),s=xl(),o=Ws(),a=Sl().length>0,l=a?s:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return fn({mutationFn:async()=>await n6({searchParams:n,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Zt(x))},onSuccess:async x=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const S={...v,pages:v==null?void 0:v.pages.map(k=>{var O;return{...k,folders:k.folders.filter(R=>!i.includes(R.id)),pagination:{...k.pagination,maxIdx:((O=k==null?void 0:k.pagination)==null?void 0:O.maxIdx)-x.resources.length},resources:k.resources.filter(R=>a?!s.includes(R.assetId):!l.includes(R.id))}})},C=j6(r,{folders:i});return d(C),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-x.resources.length}}),S}})},onSettled:()=>{u(),c()}})},A6=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=Qs(),i=xl(),s=Ws(),o=Sl().length>0,a=o?i:s,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=Ne(),{filters:h,trashed:g}=n,p=["context",{folderId:h.folder,filters:h,trashed:g}];return fn({mutationFn:async()=>await i6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(Zt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return t.setQueryData(p,x=>{if(x)return{...x,pages:x==null?void 0:x.pages.map(m=>({...m,folders:m.folders.filter(v=>!r.includes(v.id)),resources:m.resources.filter(v=>o?!i.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},Lk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=Qs(),i=xl(),s=Ws(),o=Sl().length>0,a=o?i:s,{clearSelectedItems:l,clearSelectedIds:u}=Ne(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return fn({mutationFn:async()=>await r6({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(g){typeof g=="string"&&e.error(Zt(g))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(x=>({...x,folders:x.folders.filter(m=>!r.includes(m.id)),resources:x.resources.filter(m=>o?!i.includes(m.assetId):!a.includes(m.id))}))}})},onSettled:()=>{l(),u()}})},Mk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=si(),i=Qs(),s=xl(),o=Ws(),a=Sl().length>0,l=a?s:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=Ne(),{filters:g,trashed:p}=n,y=["context",{folderId:g.folder,filters:g,trashed:p}];return fn({mutationFn:async x=>await s6({searchParams:n,folderId:x,folderIds:i,resourceIds:l,useAssetIds:a}),onError(x){typeof x=="string"&&e.error(Zt(x))},onSuccess:async(x,m)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var S;if(w){const C=N6(r,{destinationId:m,folders:i}),k={...w,pages:w==null?void 0:w.pages.map(O=>{var R;return{...O,folders:O.folders.filter(I=>!i.includes(I.id)),pagination:{...O.pagination,maxIdx:((R=O.pagination)==null?void 0:R.maxIdx)-x.resources.length},resources:O.resources.filter(I=>a?!s.includes(I.assetId):!l.includes(I.id))}})};return d(C),h({...n,pagination:{...n.pagination,maxIdx:((S=n.pagination)==null?void 0:S.maxIdx)-x.resources.length}}),k}})},onSettled:()=>{c(),u()}})},Dk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=si(),{setTreeData:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return fn({mutationFn:async({name:l,parentId:u})=>await e6({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(Zt(l))},onSuccess:async(l,u)=>{await t.cancelQueries({queryKey:a});const c=t.getQueryData(a),d={...l,parentId:u.parentId,children:[],rights:[`creator:${l==null?void 0:l.creator_id}`]};if(c)return t.setQueryData(a,h=>{if(h){const g={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},p=P6(r,{parentId:u.parentId,newFolder:d});return i(p),g}})}})},Fk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),r=si(),{setFolderIds:i,setSelectedFolders:s,setTreeData:o}=Ne(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return fn({mutationFn:async({folderId:c,name:d,parentId:h})=>await t6({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(Zt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,g=>{if(g){const p={...g,pages:g==null?void 0:g.pages.map(x=>({...x,folders:x.folders.map(m=>m.id===c.id?{...c,parentId:d.parentId,rights:m.rights}:m)}))},y=T6(r,{folderId:d.folderId,newFolder:c});return o(y),p}})},onSettled:()=>{i([]),s([])}})},$k=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),{setResourceIds:r,setSelectedResources:i}=Ne(),{filters:s,trashed:o}=n,a=["context",{folderId:s.folder,filters:s,trashed:o}];return fn({mutationFn:async({entId:l,shares:u})=>await o6({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(Zt(l))},onSuccess:async(l,u)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return t.setQueryData(a,d=>{if(d)return{...d,pages:d==null?void 0:d.pages.map(h=>({...h,resources:h.resources.map(g=>{if(g.assetId===(u==null?void 0:u.entId)){let p=[`creator:${g.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(p=[...p,...u.shares.flatMap(y=>y.actions.map(x=>`${y.type}:${y.id}:${x.id}`))]),{...g,rights:p}}else return g})}))}})},onSettled:()=>{r([]),i([])}})},zk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),{filters:r,trashed:i}=n,s=["context",{folderId:r.folder,filters:r,trashed:i}];return fn({mutationFn:async o=>await a6({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(Zt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:s}),t.getQueryData(s))return t.setQueryData(s,u=>{if(u)return{...u,pages:u==null?void 0:u.pages.map(c=>({...c,resources:c.resources.map(d=>{if(d.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:g,public:p,description:y,slug:x,...m}=a;return{...d,...m,name:h,thumbnail:g,public:p,description:y,slug:x}}else return d})}))}})}})},Bk=()=>{const{hotToast:e}=At(Lt),t=lt(),n=ut(),{user:r}=$d(),i=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return fn({mutationFn:async s=>await c6({searchParams:n,params:s}),onError(s){typeof s=="string"&&e.error(Zt(s))},onSuccess:async(s,o)=>{var u,c,d;await t.cancelQueries({queryKey:i});const a=t.getQueryData(i),l={...o,thumbnail:o.thumbnail,application:_6,assetId:s._id||s.entId||"",id:s._id||s.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),modifiedAt:((u=s.modified)==null?void 0:u.$date)||"",modifierId:((c=s.author)==null?void 0:c.userId)||"",modifierName:((d=s.author)==null?void 0:d.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(i,h=>{if(h)return{...h,pages:h==null?void 0:h.pages.map(g=>({...g,resources:[l,...g.resources]}))}})}})},{trashActions:L6}=Hs();function Iy(){const[e,t]=b.useState(!1),[n,r]=b.useState("void"),[i,s]=b.useState(),{t:o}=xe(),{hotToast:a}=At(Lt),l=oi(),u=Ws(),c=S6(),d=x6(),h=Qs(),g=ai(),p=A6(),y=Ty(),{openResource:x,printSelectedResource:m,openFolder:v,clearSelectedItems:w,clearSelectedIds:S}=Ne(),{data:C}=_y();b.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function k(K){var ie;switch((ie=document.getElementById("root"))==null||ie.setAttribute("aria-hidden","true"),s(K),K.id){case $e.OPEN:return u.length>0?x(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return m();case $e.DELETE:return r("delete");case $e.RESTORE:return await I();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return he();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${K.id}`)}}function O(K){const ie=u.length+h.length,ge=u.length===1||h.length===1,Fe=ie===1,Mt=h.length===0;switch(K.id){case $e.OPEN:return Fe;case $e.MANAGE:return ge;case $e.PUBLISH:return ge&&Mt;case $e.UPD_PROPS:return ge&&Mt;case $e.SHARE:return Mt&&ge;case $e.PRINT:return ge&&Mt;case"edit":return Fe;default:return!0}}function R(){return!0}async function I(){try{if(g)await p.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");A()}catch(K){console.error(K)}}function A(){var K;r("void"),i!=null&&i.id&&((K=document.getElementById(i==null?void 0:i.id))==null||K.focus())}const M=K=>()=>{n===K&&(A(),w(),S())},z=M("move"),B=M("move"),E=M("delete"),P=M("delete"),L=M("publish"),F=M("publish"),j=M("edit_folder"),N=M("edit_folder"),$=M("edit_resource"),W=M("edit_resource"),H=M("share"),Ye=M("share");function he(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function J(K){return K.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${K.id}`}return{onRestore:I,actions:g?L6:C,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:J,handleClick:k,isActivable:g?R:O,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:z,onMoveSuccess:B,isDeleteModalOpen:n==="delete",onDeleteCancel:P,onDeleteSuccess:E,isPublishModalOpen:n==="publish",onPublishCancel:F,onPublishSuccess:L,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:N,onEditFolderSuccess:j,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:W,onEditResourceSuccess:$,isShareResourceOpen:n==="share",onShareResourceCancel:Ye,onShareResourceSuccess:H,onClearActionBar:A}}function M6({roles:e,rights:t,action:n}){const[r,i]=b.useState(!1),{user:s}=$d(),o=ai();b.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await G.rights().sessionHasAtLeastOneResourceRight(e,d);i(h)}else{const h=await G.rights().sessionHasResourceRight(e,d);i(h)}},l=async function(c){if(e instanceof Array){const d=await G.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);i(d)}else{const d=await G.rights().sessionHasResourceRightForEachList(e,c);i(d)}},u=async function(){var c,d,h;if(e===void 0){i(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(s==null?void 0:s.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){i(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const g=t.map(p=>p.rights);await l(g)}else i(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function D6({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:i}){const{t:s}=xe(),{overrideLabel:o}=Iy(),{visible:a}=M6({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=Ne(),u=ai();return a?f.jsx(f.Fragment,{children:r}):i?i():u&&!a?f.jsx(ri,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:s(o(n))}):f.jsx(f.Fragment,{})}const F6=b.lazy(async()=>await we(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Heading.js","Tooltip.js"])),$6=b.lazy(async()=>await we(()=>import("./DeleteModal.js"),[])),z6=b.lazy(async()=>await we(()=>import("./MoveModal.js"),[])),B6=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),U6=b.lazy(async()=>await we(()=>import("./EditResourceModal.js"),["EditResourceModal.js","Heading.js","index.esm.js","TextArea.js"])),V6=b.lazy(async()=>await we(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","Heading.js","TextArea.js"]));function H6(){const{t:e}=xe(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:i,isPublishModalOpen:s,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:g,isShareResourceOpen:p,onShareResourceCancel:y,onShareResourceSuccess:x,onMoveCancel:m,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:S,onPublishCancel:C,onPublishSuccess:k,isActivable:O,handleClick:R}=Iy(),I=ul(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return f.jsxs(f.Fragment,{children:[I((A,M)=>M&&f.jsx(Rs.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:A,children:f.jsx(e3,{children:t==null?void 0:t.filter(z=>z.available&&z.target==="actionbar").map(z=>O(z)&&f.jsx(D6,{resourceRights:n,roleExpected:z.right,action:z,children:f.jsx(ri,{id:z.id,type:"button",color:"primary",variant:"filled",onClick:()=>{R(z)},children:e(l(z))},z.id)},z.id))})})),f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(z6,{isOpen:r,onCancel:m,onSuccess:v}),i&&f.jsx($6,{isOpen:i,onCancel:w,onSuccess:S}),s&&f.jsx(V6,{isOpen:s,onCancel:C,onSuccess:k}),a&&f.jsx(B6,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(U6,{edit:!0,isOpen:d,onCancel:h,onSuccess:g}),p&&f.jsx(F6,{isOpen:p,onCancel:y,onSuccess:x})]})]})}function q6(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Q6=()=>{var a;const{user:e}=bt(),t=q6(Hs().app),n=(a=e.apps.find(l=>l.isExternal&&l.address.includes("library")&&l.name.includes("library")))==null?void 0:a.address.split("?");let r=n==null?void 0:n[0];r!=null&&r.endsWith("/")||(r=`${r}/`);const i=n==null?void 0:n[1],s=`application%5B0%5D=${t}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${r}search/?${i}&${s}`}},W6=b.lazy(async()=>await we(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js","Heading.js"])),K6=b.lazy(async()=>await we(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js","Heading.js"])),Z6=b.lazy(async()=>await we(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js","Heading.js"])),X6=b.lazy(async()=>await we(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js","Heading.js"])),G6=b.lazy(async()=>await we(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js","Heading.js"])),Y6=b.lazy(async()=>await we(()=>import("./FoldersList.js"),["FoldersList.js","Card.js","Tooltip.js"])),J6=b.lazy(async()=>await we(()=>import("./ResourcesList.js"),["ResourcesList.js","Card.js","Tooltip.js"])),ek=()=>{const e=C6(),t=ai(),n=k6(),r=ut(),{data:i,isError:s,isLoading:o,isFetching:a,fetchNextPage:l}=I6(),u=(i==null?void 0:i.pages[0].folders.length)===0,c=(i==null?void 0:i.pages[0].resources.length)===0,d=u&&c;return s?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Z6,{})}):r.search&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(K6,{})}):!d&&!o?f.jsxs(b.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(Y6,{data:i,isFetching:a}),f.jsx(J6,{data:i,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(W6,{})}):n&&d&&!t?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(X6,{})}):t&&(i==null?void 0:i.pages[0].resources.length)===0?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(G6,{})}):null};function tk({isOpen:e,onCancel:t=()=>({})}){const{t:n}=xe();return Ms.createPortal(f.jsxs(kn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(kn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(kn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(kn.Footer,{children:f.jsx(ri,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const nk=()=>{const e=ut(),[t,n]=b.useState(""),r=G4(t,500),i=b6(),s=O6(),{setSearchParams:o}=Ne(),a=c=>{const d=c.target.value;n(d.toString())},l=c=>{(c.key==="Enter"||c.key==="Return")&&(o({search:r||void 0}),c.preventDefault())},u=c=>{o({search:r||void 0}),c.preventDefault()};return b.useEffect(()=>{const d=r.length==0||r.length>=i.minLength?{search:r||void 0}:{};o({...e,...d})},[r,i.minLength]),b.useEffect(()=>{s==="select"&&n("")},[s]),b.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}},rk=()=>{const{appCode:e,currentApp:t}=bt(),{t:n}=xe(),[r,i]=b.useState([0]),s=oi(),o=ut(),{setSearchParams:a}=Ne();b.useEffect(()=>{const u=()=>r.includes(1)?!0:void 0,c=()=>r.includes(2)?!0:void 0,d=()=>r.includes(7)?!0:void 0;a({...o,filters:{owner:u(),public:d(),shared:c(),folder:s?s.id:"default"}})},[s,a,r]);const l=[{label:n("explorer.filter.all",{ns:e}),value:0},{label:n("explorer.filter.owner",{ns:e}),value:1},{label:n("explorer.filter.shared",{ns:e}),value:2},...(t==null?void 0:t.displayName)==Eo.EXERCIZER?[{label:"Exercices interactifs",value:3}]:[],...(t==null?void 0:t.displayName)==Eo.EXERCIZER?[{label:"Exercices à rendre",value:4}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets publics",value:5}]:[],...(t==null?void 0:t.displayName)=="pages"?[{label:"Projets internes",value:6}]:[],...(t==null?void 0:t.displayName)==Eo.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:7}]:[]];return{selectedFilters:r,options:l,setSelectedFilters:i}},ik=()=>{const{appCode:e}=bt(),{t}=xe(),{selectedFilters:n,options:r,setSelectedFilters:i}=rk(),{inputSearch:s,handleInputSearchChange:o,handleKeyPress:a,handleSearchSubmit:l}=nk();return f.jsxs("form",{noValidate:!0,className:"bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8",children:[f.jsxs(Mc,{id:"search",className:"input-group",children:[f.jsx(Av,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:s,onChange:o,onKeyDown:a}),f.jsx(F0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:l})]}),f.jsx(QE,{content:f.jsx(KE,{isMonoSelection:!0,model:n,onChange:u=>i(u),options:r}),trigger:f.jsx(WE,{icon:f.jsx(y3,{width:20}),title:t("explorer.filters"),variant:"ghost",badgeContent:n.length>0?n.length:void 0})})]})},sk=({id:e,selected:t,onSelect:n})=>{const{t:r}=xe();return f.jsx("div",{className:"treeview",children:f.jsx("ul",{role:"tree",className:"m-0 p-0",children:f.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:f.jsx("div",{children:f.jsx("div",{className:"action-container",children:f.jsx("div",{onClick:n,role:"button",tabIndex:0,children:f.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[f.jsx(f3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},ok=b.lazy(async()=>await we(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),ak=()=>{const e=lt(),{t}=xe(),[n,r]=X4(),i=si(),s=ai(),o=Cf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c}=Ne(),d=async h=>{await u(h,e)};return i?f.jsxs(f.Fragment,{children:[f.jsx(aC,{data:i,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:d}),f.jsx(sk,{id:et.BIN,selected:s,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(ri,{disabled:s,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(P3,{}),onClick:r,children:t("explorer.folder.new")})}),f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(ok,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},lk=()=>{const e=E6(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Ne();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},uk=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!0);return b.useEffect(()=>{(async()=>{const s=await h6();if(s){t(JSON.parse(s==null?void 0:s.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await p6({onSuccess:()=>r(!1)})},setIsOpen:r}},ck=()=>{const e=Ty(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Ne();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},dk=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},fk=b.lazy(async()=>await we(()=>import("./OnboardingTrash.js"),[])),hk=b.lazy(async()=>await we(()=>import("./AppAction.js"),[])),pk=b.lazy(async()=>await we(()=>import("./Library.js"),[])),mk=b.lazy(async()=>await we(()=>import("./TrashedResourceModal.js"),[]));function gk(){const{currentApp:e}=bt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:i}=uk(),{data:s}=_y(),{isTrashedModalOpen:o,onTrashedCancel:a}=ck(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=lk();n4();const c=s==null?void 0:s.find(h=>h.id==="publish"),{libraryUrl:d}=Q6();return f.jsxs(f.Fragment,{children:[f.jsx(B3,{render:()=>dk({workflow:"create",actions:s})?f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(hk,{})}):null,children:f.jsx(q3,{app:e})}),f.jsxs(Wi,{className:"flex-grow-1",children:[f.jsxs(Wi.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(ak,{}),(c==null?void 0:c.available)&&d&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(pk,{url:d})})]}),f.jsxs(Wi.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(ik,{}),f.jsx(R6,{}),f.jsx(ek,{})]}),f.jsx(H6,{}),t&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(fk,{isOpen:n,setIsOpen:r,handleSavePreference:i})}),o&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(mk,{isOpen:o,onCancel:a})}),l&&f.jsx(b.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(tk,{isOpen:l,onCancel:u})})]})]})}function vk(){const{init:e}=bt();return e?e?f.jsx(F8,{children:f.jsx(gk,{})}):null:f.jsx(Ve,{position:!1})}const yk=document.getElementById("root"),wk=new ww({queryCache:new Ym({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});Cy(yk).render(f.jsx(b.StrictMode,{children:f.jsxs(MS,{client:wk,children:[f.jsx(GS,{params:Hs(),children:f.jsx(t4,{children:f.jsx(vk,{})})}),f.jsx($8,{initialIsOpen:!1})]})}));export{_y as $,Lt as A,ri as B,KE as C,Lk as D,Ak as E,Mc as F,ai as G,Mk as H,R0 as I,x6 as J,Ne as K,Ve as L,kn as M,lt as N,si as O,oi as P,Dk as Q,Im as R,P3 as S,aC as T,Fk as U,ji as V,XE as W,ZE as X,Ok as Y,Bk as Z,we as _,Ms as a,dk as a0,cf as a1,q6 as a2,Hs as a3,QE as a4,WE as a5,Rk as a6,f3 as a7,xc as a8,Qs as a9,Ik as aa,J4 as ab,Rs as ac,He as ad,js as ae,Ws as af,Pk as ag,jk as ah,_k as ai,l5 as aj,Nk as ak,v0 as al,Ob as am,Ya as b,X4 as c,bt as d,Ek as e,Fd as f,Z as g,ut as h,$d as i,f as j,G4 as k,S6 as l,zk as m,$k as n,At as o,Ck as p,wp as q,b as r,wc as s,zd as t,xe as u,kk as v,Tk as w,E3 as x,Av as y,H3 as z};