ode-explorer 1.3.1 → 1.3.2-dev.202312211056
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/AppAction.js +1 -1
- package/dist/DeleteModal.js +1 -1
- package/dist/EditFolderModal.js +1 -1
- package/dist/EmptyScreenApp.js +1 -1
- package/dist/EmptyScreenError.js +1 -1
- package/dist/EmptyScreenNoContentInFolder.js +1 -1
- package/dist/EmptyScreenSearch.js +1 -1
- package/dist/EmptyScreenTrash.js +1 -1
- package/dist/FoldersList.js +1 -1
- package/dist/Library.js +1 -1
- package/dist/MoveModal.js +1 -1
- package/dist/ResourcesList.js +1 -5
- package/dist/TrashedResourceModal.js +1 -1
- package/dist/index.js +46 -40
- package/dist/style.css +1 -1
- package/dist/version.txt +1 -1
- package/package.json +6 -8
- package/dist/Card.js +0 -1
- package/dist/EditResourceModal.js +0 -3
- package/dist/EmptyScreen.js +0 -1
- package/dist/OnboardingTrash.js +0 -1
- package/dist/PublishModal.js +0 -1
- package/dist/ShareResourceModal.js +0 -1
- package/dist/TextArea.js +0 -1
- package/dist/Tooltip.js +0 -1
- package/dist/index.esm.js +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var LS=Object.defineProperty;var DS=(e,t,n)=>t in e?LS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ws=(e,t,n)=>(DS(e,typeof t!="symbol"?t+"":t,n),n);import{odeServices as re,APP as zs,FOLDER as Et,ACTION as ct}from"/assets/js/edifice-ts-client/index.js";function N0(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}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 s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const FS="modulepreload",$S=function(e){return"/"+e},gm={},$e=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=$S(i),i in gm)return;gm[i]=!0;const o=i.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!r)for(let c=s.length-1;c>=0;c--){const f=s[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":FS,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A0={exports:{}},ku={},I0={exports:{}},oe={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(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
|
|
9
|
+
*/var Yo=Symbol.for("react.element"),zS=Symbol.for("react.portal"),BS=Symbol.for("react.fragment"),VS=Symbol.for("react.strict_mode"),US=Symbol.for("react.profiler"),HS=Symbol.for("react.provider"),qS=Symbol.for("react.context"),WS=Symbol.for("react.forward_ref"),QS=Symbol.for("react.suspense"),GS=Symbol.for("react.memo"),KS=Symbol.for("react.lazy"),vm=Symbol.iterator;function XS(e){return e===null||typeof e!="object"?null:(e=vm&&e[vm]||e["@@iterator"],typeof e=="function"?e:null)}var _0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M0=Object.assign,L0={};function fi(e,t,n){this.props=e,this.context=t,this.refs=L0,this.updater=n||_0}fi.prototype.isReactComponent={};fi.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")};fi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function D0(){}D0.prototype=fi.prototype;function op(e,t,n){this.props=e,this.context=t,this.refs=L0,this.updater=n||_0}var ap=op.prototype=new D0;ap.constructor=op;M0(ap,fi.prototype);ap.isPureReactComponent=!0;var ym=Array.isArray,F0=Object.prototype.hasOwnProperty,lp={current:null},$0={key:!0,ref:!0,__self:!0,__source:!0};function z0(e,t,n){var r,s={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)F0.call(t,r)&&!$0.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:Yo,type:e,key:i,ref:o,props:s,_owner:lp.current}}function YS(e,t){return{$$typeof:Yo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function up(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yo}function JS(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var wm=/\/+/g;function Rc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?JS(""+e.key):t.toString(36)}function Ya(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Yo:case zS:o=!0}}if(o)return o=e,s=s(o),e=r===""?"."+Rc(o,0):r,ym(s)?(n="",e!=null&&(n=e.replace(wm,"$&/")+"/"),Ya(s,t,n,"",function(u){return u})):s!=null&&(up(s)&&(s=YS(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(wm,"$&/")+"/")+e)),t.push(s)),1;if(o=0,r=r===""?".":r+":",ym(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+Rc(i,l);o+=Ya(i,t,n,a,s)}else if(a=XS(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+Rc(i,l++),o+=Ya(i,t,n,a,s);else if(i==="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 xa(e,t,n){if(e==null)return e;var r=[],s=0;return Ya(e,r,"","",function(i){return t.call(n,i,s++)}),r}function ZS(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 st={current:null},Ja={transition:null},eC={ReactCurrentDispatcher:st,ReactCurrentBatchConfig:Ja,ReactCurrentOwner:lp};oe.Children={map:xa,forEach:function(e,t,n){xa(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return xa(e,function(){t++}),t},toArray:function(e){return xa(e,function(t){return t})||[]},only:function(e){if(!up(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Component=fi;oe.Fragment=BS;oe.Profiler=US;oe.PureComponent=op;oe.StrictMode=VS;oe.Suspense=QS;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eC;oe.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=M0({},e.props),s=e.key,i=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,o=lp.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)F0.call(t,a)&&!$0.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Yo,type:e.type,key:s,ref:i,props:r,_owner:o}};oe.createContext=function(e){return e={$$typeof:qS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:HS,_context:e},e.Consumer=e};oe.createElement=z0;oe.createFactory=function(e){var t=z0.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:WS,render:e}};oe.isValidElement=up;oe.lazy=function(e){return{$$typeof:KS,_payload:{_status:-1,_result:e},_init:ZS}};oe.memo=function(e,t){return{$$typeof:GS,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Ja.transition;Ja.transition={};try{e()}finally{Ja.transition=t}};oe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};oe.useCallback=function(e,t){return st.current.useCallback(e,t)};oe.useContext=function(e){return st.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return st.current.useDeferredValue(e)};oe.useEffect=function(e,t){return st.current.useEffect(e,t)};oe.useId=function(){return st.current.useId()};oe.useImperativeHandle=function(e,t,n){return st.current.useImperativeHandle(e,t,n)};oe.useInsertionEffect=function(e,t){return st.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return st.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return st.current.useMemo(e,t)};oe.useReducer=function(e,t,n){return st.current.useReducer(e,t,n)};oe.useRef=function(e){return st.current.useRef(e)};oe.useState=function(e){return st.current.useState(e)};oe.useSyncExternalStore=function(e,t,n){return st.current.useSyncExternalStore(e,t,n)};oe.useTransition=function(){return st.current.useTransition()};oe.version="18.2.0";I0.exports=oe;var S=I0.exports;const Y=Xo(S),B0=N0({__proto__:null,default:Y},[S]);/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.production.min.js
|
|
12
12
|
*
|
|
@@ -14,8 +14,8 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(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 Xy=x,Yy=Symbol.for("react.element"),Zy=Symbol.for("react.fragment"),Jy=Object.prototype.hasOwnProperty,e2=Xy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t2={key:!0,ref:!0,__self:!0,__source:!0};function gm(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Jy.call(t,r)&&!t2.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Yy,type:e,key:i,ref:o,props:s,_owner:e2.current}}Oa.Fragment=Zy;Oa.jsx=gm;Oa.jsxs=gm;im.exports=Oa;var f=im.exports;const n2={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 Io{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||n2,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,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Io(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Io(this.logger,t)}}var $t=new Io;class Na{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),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function ss(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function Sf(e){return e==null?"":""+e}function r2(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function $c(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function bf(e,t,n){const{obj:r,k:s}=$c(e,t,Object);r[s]=n}function s2(e,t,n,r){const{obj:s,k:i}=$c(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function Ao(e,t){const{obj:n,k:r}=$c(e,t);if(n)return n[r]}function i2(e,t,n){const r=Ao(e,n);return r!==void 0?r:Ao(t,n)}function vm(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]):vm(e[r],t[r],n):e[r]=t[r]);return e}function dr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var o2={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function a2(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>o2[t]):e}const l2=[" ",",","?","!",";"];function u2(e,t,n){t=t||"",n=n||"";const r=l2.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function Lo(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 s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,a=r.slice(i,i+o).join(n),l=s[a];for(;l===void 0&&r.length>i+o;)o++,a=r.slice(i,i+o).join(n),l=s[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(i+o).join(n);return u?Lo(l,u,n):void 0}s=s[r[i]]}return s}function Mo(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Cf extends Na{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 s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,n];r&&typeof r!="string"&&(a=a.concat(r)),r&&typeof r=="string"&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."));const l=Ao(this.data,a);return l||!o||typeof r!="string"?l:Lo(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(a=t.split("."),s=n,n=a[1]),this.addNamespaces(n),bf(this.data,a,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),s=r,r=n,n=a[1]),this.addNamespaces(n);let l=Ao(this.data,a)||{};s?vm(l,r,i):l={...l,...r},bf(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(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var ym={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Ef={};class Do extends Na{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),r2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=$t.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 s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!u2(t,r,s);if(o&&!a){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}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 s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=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 b=n.nsSeparator||this.options.nsSeparator;return s?{res:`${l}${b}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${b}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:o}const d=this.resolve(t,n);let h=d&&d.res;const p=d&&d.usedKey||o,m=d&&d.exactUsedKey||o,y=Object.prototype.toString.apply(h),S=["[object Number]","[object Function]","[object RegExp]"],g=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")&&S.indexOf(y)<0&&!(typeof g=="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 b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(d.res=b,d.usedParams=this.getUsedParamsDetails(n),d):b}if(i){const b=y==="[object Array]",E=b?[]:{},R=b?m:p;for(const k in h)if(Object.prototype.hasOwnProperty.call(h,k)){const P=`${R}${i}${k}`;E[k]=this.translate(P,{...n,joinArrays:!1,ns:a}),E[k]===P&&(E[k]=h[k])}h=E}}else if(v&&typeof g=="string"&&y==="[object Array]")h=h.join(g),h&&(h=this.extendTranslation(h,t,n,r));else{let b=!1,E=!1;const R=n.count!==void 0&&typeof n.count!="string",k=Do.hasDefaultValue(n),P=R?this.pluralResolver.getSuffix(u,n.count,n):"",_=n.ordinal&&R?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",F=n[`defaultValue${P}`]||n[`defaultValue${_}`]||n.defaultValue;!this.isValidLookup(h)&&k&&(b=!0,h=F),this.isValidLookup(h)||(E=!0,h=o);const I=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:h,U=k&&F!==h&&this.options.updateMissing;if(E||b||U){if(this.logger.log(U?"updateKey":"missingKey",u,l,o,U?F:h),i){const L=this.resolve(o,{...n,keySeparator:!1});L&&L.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 $=[];const C=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&C&&C[0])for(let L=0;L<C.length;L++)$.push(C[L]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const O=(L,N,D)=>{const M=k&&D!==h?D:I;this.options.missingKeyHandler?this.options.missingKeyHandler(L,l,N,M,U,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(L,l,N,M,U,n),this.emit("missingKey",L,l,N,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?$.forEach(L=>{this.pluralResolver.getSuffixes(L,n).forEach(N=>{O([L],o+N,n[`defaultValue${N}`]||F)})}):O($,o,F))}h=this.extendTranslation(h,t,n,d,r),E&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${o}`),(E||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${o}`:o,b?h:void 0):h=this.options.parseMissingKeyHandler(h))}return s?(d.res=h,d.usedParams=this.getUsedParamsDetails(n),d):h}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});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),p=h&&h.length;c<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,p=new Array(h),m=0;m<h;m++)p[m]=arguments[m];return i&&i[0]===p[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):o.translate(...p,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=ym.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,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;s=c;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const h=n.count!==void 0&&typeof n.count!="string",p=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=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(S=>{this.isValidLookup(r)||(a=S,!Ef[`${y[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Ef[`${y[0]}-${S}`]=!0,this.logger.warn(`key "${s}" 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(g=>{if(this.isValidLookup(r))return;o=g;const v=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(v,c,g,S,n);else{let b;h&&(b=this.pluralResolver.getSuffix(g,n.count,n));const E=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(v.push(c+b),n.ordinal&&b.indexOf(R)===0&&v.push(c+b.replace(R,this.options.pluralSeparator)),p&&v.push(c+E)),m){const k=`${c}${this.options.contextSeparator}${n.context}`;v.push(k),h&&(v.push(k+b),n.ordinal&&b.indexOf(R)===0&&v.push(k+b.replace(R,this.options.pluralSeparator)),p&&v.push(k+E))}}let w;for(;w=v.pop();)this.isValidLookup(r)||(i=w,r=this.getResource(g,S,w,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}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 Sl(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Rf{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$t.create("languageUtils")}getScriptPartFromCode(t){if(t=Mo(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=Mo(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(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Sl(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]=Sl(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Sl(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 s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),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),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.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"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let c2=[{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}],d2={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 f2=["v1","v2","v3"],h2=["v4"],kf={zero:0,one:1,two:2,few:3,many:4,other:5};function p2(){const e={};return c2.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:d2[t.fc]}})}),e}class m2{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=$t.create("pluralResolver"),(!this.options.compatibilityJSON||h2.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=p2()}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(Mo(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(s=>`${n}${s}`)}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((s,i)=>kf[s]-kf[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,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 s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!f2.includes(this.options.compatibilityJSON)}}function Pf(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=i2(e,t,n);return!i&&s&&typeof n=="string"&&(i=Lo(e,n,r),i===void 0&&(i=Lo(t,n,r))),i}class g2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$t.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:a2,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?dr(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?dr(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?dr(n.nestingPrefix):n.nestingPrefixEscaped||dr("$t("),this.nestingSuffix=n.nestingSuffix?dr(n.nestingSuffix):n.nestingSuffixEscaped||dr(")"),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,s){let i,o,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(m){return m.replace(/\$/g,"$$$$")}const c=m=>{if(m.indexOf(this.formatSeparator)<0){const v=Pf(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(v,void 0,r,{...s,...n,interpolationkey:m}):v}const y=m.split(this.formatSeparator),S=y.shift().trim(),g=y.join(this.formatSeparator).trim();return this.format(Pf(n,l,S,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...s,...n,interpolationkey:S})};this.resetRegExp();const d=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,h=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>u(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?u(this.escape(m)):u(m)}].forEach(m=>{for(a=0;i=m.regex.exec(t);){const y=i[1].trim();if(o=c(y),o===void 0)if(typeof d=="function"){const g=d(t,i,s);o=typeof g=="string"?g:""}else if(s&&Object.prototype.hasOwnProperty.call(s,y))o="";else if(h){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=Sf(o));const S=m.safeValue(o);if(t=t.replace(i[0],S),h?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,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 p=h.match(/'/g),m=h.match(/"/g);(p&&p.length%2===0&&!m||m.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(;s=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(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(d=>d.trim());s[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=Sf(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=l.reduce((c,d)=>this.format(c,d,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function v2(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.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 fr(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let a=t[o];return a||(a=e(Mo(s),i),t[o]=a),a(r)}}class y2{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=$t.create("formatter"),this.options=t,this.formats={number:fr((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:fr((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:fr((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:fr((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:fr((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},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()]=fr(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((a,l)=>{const{formatName:u,formatOptions:c}=v2(l);if(this.formats[u]){let d=a;try{const h=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},p=h.locale||h.lng||s.locale||s.lng||r;d=this.formats[u](a,p,{...c,...s,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}function w2(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class x2 extends Na{constructor(t,n,r){let s=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=s,this.logger=$t.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},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),i[h]===void 0&&(i[h]=!0),l[d]===void 0&&(l[d]=!0)))}),c||(a[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),r&&this.store.addResourceBundle(i,o,r),this.state[t]=n?-1:2;const a={};this.queue.forEach(l=>{s2(l.loaded,[i],o),w2(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 s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=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:s,wait:i,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&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);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]:{},s=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."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.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("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,a)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,a),this.loaded(t,o,a)})}saveMissing(t,n,r,s,i){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:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,l):c=u(t,n,r,s),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,s,a,l)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function Of(){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(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Nf(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 zi(){}function S2(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class Bs extends Na{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nf(t),this.services={},this.logger=$t,this.modules={external:[]},S2(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 s=Of();this.options={...s,...this.options,...Nf(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?$t.init(i(this.modules.logger),this.options):$t.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=y2);const d=new Rf(this.options);this.store=new Cf(this.options.resources,this.options);const h=this.services;h.logger=$t,h.resourceStore=this.store,h.languageUtils=d,h.pluralResolver=new m2(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(h.formatter=i(c),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new g2(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new x2(i(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(p){for(var m=arguments.length,y=new Array(m>1?m-1:0),S=1;S<m;S++)y[S-1]=arguments[S];t.emit(p,...y)}),this.modules.languageDetector&&(h.languageDetector=i(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=i(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new Do(this.services,this.options),this.translator.on("*",function(p){for(var m=arguments.length,y=new Array(m>1?m-1:0),S=1;S<m;S++)y[S-1]=arguments[S];t.emit(p,...y)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=zi),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=ss(),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]:zi;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):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(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const s=ss();return t||(t=this.languages),n||(n=this.options.ns),r||(r=zi),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}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"&&ym.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 s=ss();this.emit("languageChanging",t);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},o=(l,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.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||i(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),s}getFixedT(t,n,r){var s=this;const i=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=s.options.overloadTranslationOptionHandler([o,a].concat(c))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix=l.keyPrefix||r||i.keyPrefix;const h=s.options.keySeparator||".";let p;return l.keyPrefix&&Array.isArray(o)?p=o.map(m=>`${l.keyPrefix}${h}${m}`):p=l.keyPrefix?`${l.keyPrefix}${h}${o}`:o,s.t(p,l)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}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],s=this.options?this.options.fallbackLng:!1,i=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)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=ss();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ss();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),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 Rf(Of());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 Bs(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new Bs(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Cf(this.store.data,s),i.services.resourceStore=i.store),i.translator=new Do(i.services,s),i.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];i.emit(a,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ne=Bs.createInstance();Ne.createInstance=Bs.createInstance;Ne.createInstance;Ne.dir;Ne.init;Ne.loadResources;Ne.reloadResources;Ne.use;Ne.changeLanguage;Ne.getFixedT;const qt=Ne.t;Ne.exists;Ne.setDefaultNamespace;Ne.hasLoadedNamespace;Ne.loadNamespaces;Ne.loadLanguages;function uu(e){"@babel/helpers - typeof";return uu=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},uu(e)}var wm=[],b2=wm.forEach,C2=wm.slice;function cu(e){return b2.call(C2.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function xm(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":uu(XMLHttpRequest))==="object"}function E2(e){return!!e&&typeof e.then=="function"}function R2(e){return E2(e)?e:Promise.resolve(e)}function k2(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 du={exports:{}},Ui={exports:{}},jf;function P2(){return jf||(jf=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof _e<"u"&&_e,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var a=typeof i<"u"&&i||typeof self<"u"&&self||typeof a<"u"&&a,l={searchParams:"URLSearchParams"in a,iterable:"Symbol"in a&&"iterator"in Symbol,blob:"FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in a,arrayBuffer:"ArrayBuffer"in a};function u(C){return C&&DataView.prototype.isPrototypeOf(C)}if(l.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(C){return C&&c.indexOf(Object.prototype.toString.call(C))>-1};function h(C){if(typeof C!="string"&&(C=String(C)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(C)||C==="")throw new TypeError('Invalid character in header field name: "'+C+'"');return C.toLowerCase()}function p(C){return typeof C!="string"&&(C=String(C)),C}function m(C){var O={next:function(){var L=C.shift();return{done:L===void 0,value:L}}};return l.iterable&&(O[Symbol.iterator]=function(){return O}),O}function y(C){this.map={},C instanceof y?C.forEach(function(O,L){this.append(L,O)},this):Array.isArray(C)?C.forEach(function(O){this.append(O[0],O[1])},this):C&&Object.getOwnPropertyNames(C).forEach(function(O){this.append(O,C[O])},this)}y.prototype.append=function(C,O){C=h(C),O=p(O);var L=this.map[C];this.map[C]=L?L+", "+O:O},y.prototype.delete=function(C){delete this.map[h(C)]},y.prototype.get=function(C){return C=h(C),this.has(C)?this.map[C]:null},y.prototype.has=function(C){return this.map.hasOwnProperty(h(C))},y.prototype.set=function(C,O){this.map[h(C)]=p(O)},y.prototype.forEach=function(C,O){for(var L in this.map)this.map.hasOwnProperty(L)&&C.call(O,this.map[L],L,this)},y.prototype.keys=function(){var C=[];return this.forEach(function(O,L){C.push(L)}),m(C)},y.prototype.values=function(){var C=[];return this.forEach(function(O){C.push(O)}),m(C)},y.prototype.entries=function(){var C=[];return this.forEach(function(O,L){C.push([L,O])}),m(C)},l.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function S(C){if(C.bodyUsed)return Promise.reject(new TypeError("Already read"));C.bodyUsed=!0}function g(C){return new Promise(function(O,L){C.onload=function(){O(C.result)},C.onerror=function(){L(C.error)}})}function v(C){var O=new FileReader,L=g(O);return O.readAsArrayBuffer(C),L}function w(C){var O=new FileReader,L=g(O);return O.readAsText(C),L}function b(C){for(var O=new Uint8Array(C),L=new Array(O.length),N=0;N<O.length;N++)L[N]=String.fromCharCode(O[N]);return L.join("")}function E(C){if(C.slice)return C.slice(0);var O=new Uint8Array(C.byteLength);return O.set(new Uint8Array(C)),O.buffer}function R(){return this.bodyUsed=!1,this._initBody=function(C){this.bodyUsed=this.bodyUsed,this._bodyInit=C,C?typeof C=="string"?this._bodyText=C:l.blob&&Blob.prototype.isPrototypeOf(C)?this._bodyBlob=C:l.formData&&FormData.prototype.isPrototypeOf(C)?this._bodyFormData=C:l.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)?this._bodyText=C.toString():l.arrayBuffer&&l.blob&&u(C)?(this._bodyArrayBuffer=E(C.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):l.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(C)||d(C))?this._bodyArrayBuffer=E(C):this._bodyText=C=Object.prototype.toString.call(C):this._bodyText="",this.headers.get("content-type")||(typeof C=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):l.searchParams&&URLSearchParams.prototype.isPrototypeOf(C)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l.blob&&(this.blob=function(){var C=S(this);if(C)return C;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(){if(this._bodyArrayBuffer){var C=S(this);return C||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(v)}),this.text=function(){var C=S(this);if(C)return C;if(this._bodyBlob)return w(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(b(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l.formData&&(this.formData=function(){return this.text().then(F)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function P(C){var O=C.toUpperCase();return k.indexOf(O)>-1?O:C}function _(C,O){if(!(this instanceof _))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O=O||{};var L=O.body;if(C instanceof _){if(C.bodyUsed)throw new TypeError("Already read");this.url=C.url,this.credentials=C.credentials,O.headers||(this.headers=new y(C.headers)),this.method=C.method,this.mode=C.mode,this.signal=C.signal,!L&&C._bodyInit!=null&&(L=C._bodyInit,C.bodyUsed=!0)}else this.url=String(C);if(this.credentials=O.credentials||this.credentials||"same-origin",(O.headers||!this.headers)&&(this.headers=new y(O.headers)),this.method=P(O.method||this.method||"GET"),this.mode=O.mode||this.mode||null,this.signal=O.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(O.cache==="no-store"||O.cache==="no-cache")){var N=/([?&])_=[^&]*/;if(N.test(this.url))this.url=this.url.replace(N,"$1_="+new Date().getTime());else{var D=/\?/;this.url+=(D.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})};function F(C){var O=new FormData;return C.trim().split("&").forEach(function(L){if(L){var N=L.split("="),D=N.shift().replace(/\+/g," "),M=N.join("=").replace(/\+/g," ");O.append(decodeURIComponent(D),decodeURIComponent(M))}}),O}function A(C){var O=new y,L=C.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(N){return N.indexOf(`
|
|
18
|
-
`)===0?N.substr(1,N.length):N}).forEach(function(N){var D=N.split(":"),M=D.shift().trim();if(M){var K=D.join(":").trim();O.append(M,K)}}),O}R.call(_.prototype);function I(C,O){if(!(this instanceof I))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');O||(O={}),this.type="default",this.status=O.status===void 0?200:O.status,this.ok=this.status>=200&&this.status<300,this.statusText=O.statusText===void 0?"":""+O.statusText,this.headers=new y(O.headers),this.url=O.url||"",this._initBody(C)}R.call(I.prototype),I.prototype.clone=function(){return new I(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},I.error=function(){var C=new I(null,{status:0,statusText:""});return C.type="error",C};var U=[301,302,303,307,308];I.redirect=function(C,O){if(U.indexOf(O)===-1)throw new RangeError("Invalid status code");return new I(null,{status:O,headers:{location:C}})},o.DOMException=a.DOMException;try{new o.DOMException}catch{o.DOMException=function(O,L){this.message=O,this.name=L;var N=Error(O);this.stack=N.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function $(C,O){return new Promise(function(L,N){var D=new _(C,O);if(D.signal&&D.signal.aborted)return N(new o.DOMException("Aborted","AbortError"));var M=new XMLHttpRequest;function K(){M.abort()}M.onload=function(){var le={status:M.status,statusText:M.statusText,headers:A(M.getAllResponseHeaders()||"")};le.url="responseURL"in M?M.responseURL:le.headers.get("X-Request-URL");var we="response"in M?M.response:M.responseText;setTimeout(function(){L(new I(we,le))},0)},M.onerror=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},M.ontimeout=function(){setTimeout(function(){N(new TypeError("Network request failed"))},0)},M.onabort=function(){setTimeout(function(){N(new o.DOMException("Aborted","AbortError"))},0)};function G(le){try{return le===""&&a.location.href?a.location.href:le}catch{return le}}M.open(D.method,G(D.url),!0),D.credentials==="include"?M.withCredentials=!0:D.credentials==="omit"&&(M.withCredentials=!1),"responseType"in M&&(l.blob?M.responseType="blob":l.arrayBuffer&&D.headers.get("Content-Type")&&D.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(M.responseType="arraybuffer")),O&&typeof O.headers=="object"&&!(O.headers instanceof y)?Object.getOwnPropertyNames(O.headers).forEach(function(le){M.setRequestHeader(le,p(O.headers[le]))}):D.headers.forEach(function(le,we){M.setRequestHeader(we,le)}),D.signal&&(D.signal.addEventListener("abort",K),M.onreadystatechange=function(){M.readyState===4&&D.signal.removeEventListener("abort",K)}),M.send(typeof D._bodyInit>"u"?null:D._bodyInit)})}return $.polyfill=!0,a.fetch||(a.fetch=$,a.Headers=y,a.Request=_,a.Response=I),o.Headers=y,o.Request=_,o.Response=I,o.fetch=$,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}(Ui,Ui.exports)),Ui.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof _e<"u"&&_e.fetch?n=_e.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof k2<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||P2();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(du,du.exports);var Sm=du.exports;const bm=Pa(Sm),Tf=sm({__proto__:null,default:bm},[Sm]);function Fo(e){"@babel/helpers - typeof";return Fo=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},Fo(e)}var Zt;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Zt=global.fetch:typeof window<"u"&&window.fetch?Zt=window.fetch:Zt=fetch);var Vs;xm()&&(typeof global<"u"&&global.XMLHttpRequest?Vs=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Vs=window.XMLHttpRequest));var $o;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?$o=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&($o=window.ActiveXObject));!Zt&&Tf&&!Vs&&!$o&&(Zt=bm||Tf);typeof Zt!="function"&&(Zt=void 0);var fu=function(t,n){if(n&&Fo(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},_f=function(t,n,r){var s=function(o){if(!o.ok)return r(o.statusText||"Error",{status:o.status});o.text().then(function(a){r(null,{status:o.status,data:a})}).catch(r)};typeof fetch=="function"?fetch(t,n).then(s).catch(r):Zt(t,n).then(s).catch(r)},If=!1,O2=function(t,n,r,s){t.queryStringParams&&(n=fu(n,t.queryStringParams));var i=cu({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,a=cu({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},If?{}:o);try{_f(n,a,s)}catch(l){if(!o||Object.keys(o).length===0||!l.message||l.message.indexOf("not implemented")<0)return s(l);try{Object.keys(o).forEach(function(u){delete a[u]}),_f(n,a,s),If=!0}catch(u){s(u)}}},N2=function(t,n,r,s){r&&Fo(r)==="object"&&(r=fu("",r).slice(1)),t.queryStringParams&&(n=fu(n,t.queryStringParams));try{var i;Vs?i=new Vs:i=new $o("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var a in o)i.setRequestHeader(a,o[a]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(l){console&&console.log(l)}},j2=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Zt&&n.indexOf("file:")!==0)return O2(t,n,r,s);if(xm()||typeof ActiveXObject=="function")return N2(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}function T2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Af(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,Cm(r.key),r)}}function _2(e,t,n){return t&&Af(e.prototype,t),n&&Af(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function I2(e,t,n){return t=Cm(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cm(e){var t=A2(e,"string");return Hs(t)==="symbol"?t:String(t)}function A2(e,t){if(Hs(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Hs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L2=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return I2({},r,s||"")},parseLoadPayload:function(n,r){},request:j2,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},Em=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]:{};T2(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return _2(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=cu(s,this.options||{},L2()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var a=this,l=this.options.loadPath;typeof this.options.loadPath=="function"&&(l=this.options.loadPath(n,s)),l=R2(l),l.then(function(u){if(!u)return o(null,{});var c=a.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});a.loadUrl(c,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,a=typeof s=="string"?[s]:s,l=typeof i=="string"?[i]:i,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,p;try{typeof d.data=="string"?h=o.options.parse(d.data,s,i):h=d.data}catch{p="failed parsing "+n+" to json"}if(p)return r(p,!1);r(null,h)})}},{key:"create",value:function(n,r,s,i,o){var a=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var l=this.options.parsePayload(r,s,i),u=0,c=[],d=[];n.forEach(function(h){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(h,r));var m=a.services.interpolator.interpolate(p,{lng:h,ns:r});a.options.request(a.options,m,l,function(y,S){u+=1,c.push(y),d.push(S),u===n.length&&typeof o=="function"&&o(c,d)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,a=s.language;if(!(a&&a.toLowerCase()==="cimode")){var l=[],u=function(d){var h=i.toResolveHierarchy(d);h.forEach(function(p){l.indexOf(p)<0&&l.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),l.forEach(function(c){n.allOptions.ns.forEach(function(d){s.read(c,d,"read",null,null,function(h,p){h&&o.warn("loading namespace ".concat(d," for language ").concat(c," failed"),h),!h&&p&&o.log("loaded namespace ".concat(d," for language ").concat(c),p),s.loaded("".concat(c,"|").concat(d),h,p)})})})}}}]),e}();Em.type="backend";function M2(){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 Lf={};function hu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&Lf[t[0]]||(typeof t[0]=="string"&&(Lf[t[0]]=new Date),M2(...t))}const Rm=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Mf(e,t,n){e.loadNamespaces(t,Rm(e,n))}function Df(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Rm(e,r))}function D2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=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)&&(!s||o(i,e)))}function F2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(hu("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):D2(e,t,n)}const $2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,z2={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},U2=e=>z2[e],B2=e=>e.replace($2,U2);let pu={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:B2};function V2(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pu={...pu,...e}}function H2(){return pu}let km;function q2(e){km=e}function Q2(){return km}const W2={type:"3rdParty",init(e){V2(e.options.react),q2(e)}},K2=x.createContext();class G2{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const X2=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function pe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=x.useContext(K2)||{},i=n||r||Q2();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new G2),!i){hu("You will need to pass in an i18next instance by using initReactI18next");const w=(E,R)=>typeof R=="string"?R:R&&typeof R=="object"&&typeof R.defaultValue=="string"?R.defaultValue:Array.isArray(E)?E[E.length-1]:E,b=[w,{},!1];return b.t=w,b.i18n={},b.ready=!1,b}i.options.react&&i.options.react.wait!==void 0&&hu("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...H2(),...i.options.react,...t},{useSuspense:a,keyPrefix:l}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(w=>F2(w,i,o));function d(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],l)}const[h,p]=x.useState(d);let m=u.join();t.lng&&(m=`${t.lng}${m}`);const y=X2(m),S=x.useRef(!0);x.useEffect(()=>{const{bindI18n:w,bindI18nStore:b}=o;S.current=!0,!c&&!a&&(t.lng?Df(i,t.lng,u,()=>{S.current&&p(d)}):Mf(i,u,()=>{S.current&&p(d)})),c&&y&&y!==m&&S.current&&p(d);function E(){S.current&&p(d)}return w&&i&&i.on(w,E),b&&i&&i.store.on(b,E),()=>{S.current=!1,w&&i&&w.split(" ").forEach(R=>i.off(R,E)),b&&i&&b.split(" ").forEach(R=>i.store.off(R,E))}},[i,m]);const g=x.useRef(!0);x.useEffect(()=>{S.current&&!g.current&&p(d),g.current=!1},[i,l]);const v=[h,i,c];if(v.t=h,v.i18n=i,v.ready=c,c||!c&&!a)return v;throw new Promise(w=>{t.lng?Df(i,t.lng,u,()=>w()):Mf(i,u,()=>w())})}Ne.use(Em).use(W2).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 Xr{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 qs=typeof window>"u"||"Deno"in window;function at(){}function Y2(e,t){return typeof e=="function"?e(t):e}function mu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pm(e,t){return Math.max(e+(t||0)-Date.now(),0)}function gr(e,t,n){return bi(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Z2(e,t,n){return bi(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function fn(e,t,n){return bi(e)?[{...t,queryKey:e},n]:[e||{},t]}function Ff(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:a}=e;if(bi(o)){if(r){if(t.queryHash!==zc(o,t.options))return!1}else if(!zo(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 s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function $f(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(bi(i)){if(!t.options.mutationKey)return!1;if(n){if(Qn(t.options.mutationKey)!==Qn(i))return!1}else if(!zo(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function zc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Qn)(e)}function Qn(e){return JSON.stringify(e,(t,n)=>gu(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function zo(e,t){return Om(e,t)}function Om(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Om(e[n],t[n])):!1}function Nm(e,t){if(e===t)return e;const n=zf(e)&&zf(t);if(n||gu(e)&&gu(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let a=0;for(let l=0;l<i;l++){const u=n?l:s[l];o[u]=Nm(e[u],t[u]),o[u]===e[u]&&a++}return r===i&&a===r?e:o}return t}function Uo(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function zf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gu(e){if(!Uf(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Uf(n)||!n.hasOwnProperty("isPrototypeOf"))}function Uf(e){return Object.prototype.toString.call(e)==="[object Object]"}function bi(e){return Array.isArray(e)}function jm(e){return new Promise(t=>{setTimeout(t,e)})}function Bf(e){jm(0).then(e)}function J2(){if(typeof AbortController=="function")return new AbortController}function vu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Nm(e,t):t}class ew extends Xr{constructor(){super(),this.setup=t=>{if(!qs&&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 Bo=new ew,Vf=["online","offline"];class tw extends Xr{constructor(){super(),this.setup=t=>{if(!qs&&window.addEventListener){const n=()=>t();return Vf.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Vf.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 Vo=new tw;function nw(e){return Math.min(1e3*2**e,3e4)}function ja(e){return(e??"online")==="online"?Vo.isOnline():!0}class Tm{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function go(e){return e instanceof Tm}function _m(e){let t=!1,n=0,r=!1,s,i,o;const a=new Promise((S,g)=>{i=S,o=g}),l=S=>{r||(p(new Tm(S)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!Bo.isFocused()||e.networkMode!=="always"&&!Vo.isOnline(),h=S=>{r||(r=!0,e.onSuccess==null||e.onSuccess(S),s==null||s(),i(S))},p=S=>{r||(r=!0,e.onError==null||e.onError(S),s==null||s(),o(S))},m=()=>new Promise(S=>{s=g=>{const v=r||!d();return v&&S(g),v},e.onPause==null||e.onPause()}).then(()=>{s=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let S;try{S=e.fn()}catch(g){S=Promise.reject(g)}Promise.resolve(S).then(h).catch(g=>{var v,w;if(r)return;const b=(v=e.retry)!=null?v:3,E=(w=e.retryDelay)!=null?w:nw,R=typeof E=="function"?E(n,g):E,k=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,g);if(t||!k){p(g);return}n++,e.onFail==null||e.onFail(n,g),jm(R).then(()=>{if(d())return m()}).then(()=>{t?p(g):y()})})};return ja(e.networkMode)?y():m().then(y),{promise:a,cancel:l,continue:()=>(s==null?void 0:s())?a:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Uc=console;function rw(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const s=c=>{let d;t++;try{d=c()}finally{t--,t||a()}return d},i=c=>{t?e.push(c):Bf(()=>{n(c)})},o=c=>(...d)=>{i(()=>{c(...d)})},a=()=>{const c=e;e=[],c.length&&Bf(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ae=rw();class Im{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(qs?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class sw extends Im{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Uc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||iw(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=vu(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(at).catch(at):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||!Pm(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,s;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const p=this.observers.find(m=>m.options.queryFn);p&&this.setOptions(p.options)}const o=J2(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=p=>{Object.defineProperty(p,"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!==((s=c.fetchOptions)==null?void 0:s.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const h=p=>{if(go(p)&&p.silent||this.dispatch({type:"error",error:p}),!go(p)){var m,y,S,g;(m=(y=this.cache.config).onError)==null||m.call(y,p,this),(S=(g=this.cache.config).onSettled)==null||S.call(g,this.state.data,p,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=_m({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:p=>{var m,y,S,g;if(typeof p>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(p),(m=(y=this.cache.config).onSuccess)==null||m.call(y,p,this),(S=(g=this.cache.config).onSettled)==null||S.call(g,p,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(p,m)=>{this.dispatch({type:"failed",failureCount:p,error:m})},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 s,i;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:(s=t.meta)!=null?s:null,fetchStatus:ja(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return go(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...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),ae.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function iw(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 Am extends Xr{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var s;const i=n.queryKey,o=(s=n.queryHash)!=null?s:zc(i,n);let a=this.get(o);return a||(a=new sw({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),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(){ae.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=fn(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>Ff(r,s))}findAll(t,n){const[r]=fn(t,n);return Object.keys(r).length>0?this.queries.filter(s=>Ff(r,s)):this.queries}notify(t){ae.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ae.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ae.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class ow extends Im{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Uc,this.observers=[],this.state=t.state||Lm(),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 k;return this.retryer=_m({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(P,_)=>{this.dispatch({type:"failed",failureCount:P,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(k=this.options.retry)!=null?k:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,s,i,o,a,l,u,c;if(!n){var d,h,p,m;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 P=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,this.state.variables));P!==this.state.context&&this.dispatch({type:"loading",context:P,variables:this.state.variables})}const k=await t();return await((r=(s=this.mutationCache.config).onSuccess)==null?void 0:r.call(s,k,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,k,this.state.variables,this.state.context)),await((a=(l=this.mutationCache.config).onSettled)==null?void 0:a.call(l,k,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,k,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:k}),k}catch(k){try{var y,S,g,v,w,b,E,R;throw await((y=(S=this.mutationCache.config).onError)==null?void 0:y.call(S,k,this.state.variables,this.state.context,this)),await((g=(v=this.options).onError)==null?void 0:g.call(v,k,this.state.variables,this.state.context)),await((w=(b=this.mutationCache.config).onSettled)==null?void 0:w.call(b,void 0,k,this.state.variables,this.state.context,this)),await((E=(R=this.options).onSettled)==null?void 0:E.call(R,void 0,k,this.state.variables,this.state.context)),k}finally{this.dispatch({type:"error",error:k})}}}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:!ja(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),ae.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Lm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class aw extends Xr{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new ow({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(s),s}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(){ae.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=>$f(t,n))}findAll(t){return this.mutations.filter(n=>$f(t,n))}notify(t){ae.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 ae.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(at)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function yu(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,i,o;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(s=r.meta)==null?void 0:s.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=((i=e.state.data)==null?void 0:i.pages)||[],p=((o=e.state.data)==null?void 0:o.pageParams)||[];let m=p,y=!1;const S=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>{var k;if((k=e.signal)!=null&&k.aborted)y=!0;else{var P;(P=e.signal)==null||P.addEventListener("abort",()=>{y=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(R,k,P,_)=>(m=_?[k,...m]:[...m,k],_?[P,...R]:[...R,P]),w=(R,k,P,_)=>{if(y)return Promise.reject("Cancelled");if(typeof P>"u"&&!k&&R.length)return Promise.resolve(R);const F={queryKey:e.queryKey,pageParam:P,meta:e.options.meta};S(F);const A=g(F);return Promise.resolve(A).then(U=>v(R,P,U,_))};let b;if(!h.length)b=w([]);else if(c){const R=typeof u<"u",k=R?u:wu(e.options,h);b=w(h,R,k)}else if(d){const R=typeof u<"u",k=R?u:Mm(e.options,h);b=w(h,R,k,!0)}else{m=[];const R=typeof e.options.getNextPageParam>"u";b=(a&&h[0]?a(h[0],0,h):!0)?w([],R,p[0]):Promise.resolve(v([],p[0],h[0]));for(let P=1;P<h.length;P++)b=b.then(_=>{if(a&&h[P]?a(h[P],P,h):!0){const A=R?p[P]:wu(e.options,_);return w(_,R,A)}return Promise.resolve(v(_,p[P],h[P]))})}return b.then(R=>({pages:R,pageParams:m}))}}}}function wu(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Mm(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function lw(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=wu(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function uw(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=Mm(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class cw{constructor(t={}){this.queryCache=t.queryCache||new Am,this.mutationCache=t.mutationCache||new aw,this.logger=t.logger||Uc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Bo.subscribe(()=>{Bo.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Vo.subscribe(()=>{Vo.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]=fn(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 s=gr(t,n,r),i=this.getQueryData(s.queryKey);return i?Promise.resolve(i):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.queryCache.find(t),i=s==null?void 0:s.state.data,o=Y2(n,i);if(typeof o>"u")return;const a=gr(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ae.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=fn(t,n),s=this.queryCache;ae.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(t,n,r){const[s,i]=fn(t,n,r),o=this.queryCache,a={type:"active",...s};return ae.batch(()=>(o.findAll(s).forEach(l=>{l.reset()}),this.refetchQueries(a,i)))}cancelQueries(t,n,r){const[s,i={}]=fn(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const o=ae.batch(()=>this.queryCache.findAll(s).map(a=>a.cancel(i)));return Promise.all(o).then(at).catch(at)}invalidateQueries(t,n,r){const[s,i]=fn(t,n,r);return ae.batch(()=>{var o,a;if(this.queryCache.findAll(s).forEach(u=>{u.invalidate()}),s.refetchType==="none")return Promise.resolve();const l={...s,type:(o=(a=s.refetchType)!=null?a:s.type)!=null?o:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[s,i]=fn(t,n,r),o=ae.batch(()=>this.queryCache.findAll(s).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:s.refetchPage}})}));let a=Promise.all(o).then(at);return i!=null&&i.throwOnError||(a=a.catch(at)),a}fetchQuery(t,n,r){const s=gr(t,n,r),i=this.defaultQueryOptions(s);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(at).catch(at)}fetchInfiniteQuery(t,n,r){const s=gr(t,n,r);return s.behavior=yu(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(at).catch(at)}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(s=>Qn(t)===Qn(s.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>zo(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(s=>Qn(t)===Qn(s.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>zo(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=zc(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 Dm extends Xr{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),Hf(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xu(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,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Uo(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 i=this.hasListeners();i&&qf(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==s||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 fw(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(at)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),qs||this.currentResult.isStale||!mu(this.options.staleTime))return;const n=Pm(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,!(qs||this.options.enabled===!1||!mu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Bo.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,s=this.options,i=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:p,errorUpdatedAt:m,fetchStatus:y,status:S}=d,g=!1,v=!1,w;if(n._optimisticResults){const P=this.hasListeners(),_=!P&&Hf(t,n),F=P&&qf(t,r,n,s);(_||F)&&(y=ja(t.options.networkMode)?"fetching":"paused",h||(S="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&S!=="error")w=c.data,h=c.dataUpdatedAt,S=c.status,g=!0;else if(n.select&&typeof d.data<"u")if(i&&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=vu(i==null?void 0:i.data,w,n),this.selectResult=w,this.selectError=null}catch(P){this.selectError=P}else w=d.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&S==="loading"){let P;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))P=i.data;else if(P=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof P<"u")try{P=n.select(P),this.selectError=null}catch(_){this.selectError=_}typeof P<"u"&&(S="success",w=vu(i==null?void 0:i.data,P,n),v=!0)}this.selectError&&(p=this.selectError,w=this.selectResult,m=Date.now(),S="error");const b=y==="fetching",E=S==="loading",R=S==="error";return{status:S,fetchStatus:y,isLoading:E,isSuccess:S==="success",isError:R,isInitialLoading:E&&b,data:w,dataUpdatedAt:h,error:p,errorUpdatedAt:m,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:b,isRefetching:b&&!E,isLoadingError:R&&d.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:v,isPreviousData:g,isRefetchError:R&&d.dataUpdatedAt!==0,isStale:Bc(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,Uo(r,n))return;this.currentResult=r;const s={cache:!0},i=()=>{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&&i()&&(s.listeners=!0),this.notify({...s,...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"&&!go(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ae.batch(()=>{if(t.onSuccess){var n,r,s,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(s=(i=this.options).onSettled)==null||s.call(i,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 dw(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Hf(e,t){return dw(e,t)||e.state.dataUpdatedAt>0&&xu(e,t,t.refetchOnMount)}function xu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Bc(e,t)}return!1}function qf(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Bc(e,n)}function Bc(e,t){return e.isStaleByTime(t.staleTime)}function fw(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Uo(e.getCurrentResult(),t)}class hw extends Dm{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:yu()},n)}getOptimisticResult(t){return t.behavior=yu(),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,s,i,o,a,l;const{state:u}=t,c=super.createResult(t,n),{isFetching:d,isRefetching:h}=c,p=d&&((r=u.fetchMeta)==null||(s=r.fetchMore)==null?void 0:s.direction)==="forward",m=d&&((i=u.fetchMeta)==null||(o=i.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:lw(n,(a=u.data)==null?void 0:a.pages),hasPreviousPage:uw(n,(l=u.data)==null?void 0:l.pages),isFetchingNextPage:p,isFetchingPreviousPage:m,isRefetching:h&&!p&&!m}}}let pw=class extends Xr{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),Uo(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:Lm(),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){ae.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,s,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(s=(i=this.mutateOptions).onSettled)==null||s.call(i,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 Fm={exports:{}},rt={},$m={exports:{}},zm={};/**
|
|
17
|
+
*/var tC=S,nC=Symbol.for("react.element"),rC=Symbol.for("react.fragment"),sC=Object.prototype.hasOwnProperty,iC=tC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,oC={key:!0,ref:!0,__self:!0,__source:!0};function V0(e,t,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)sC.call(t,r)&&!oC.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:nC,type:e,key:i,ref:o,props:s,_owner:iC.current}}ku.Fragment=rC;ku.jsx=V0;ku.jsxs=V0;A0.exports=ku;var d=A0.exports;const aC={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 bl{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||aC,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,s){return s&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new bl(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new bl(this.logger,t)}}var bn=new bl;class Pu{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),s=1;s<n;s++)r[s-1]=arguments[s];this.observers[t]&&[].concat(this.observers[t]).forEach(o=>{o(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(o=>{o.apply(o,[t,...r])})}}function Ci(){let e,t;const n=new Promise((r,s)=>{e=r,t=s});return n.resolve=e,n.reject=t,n}function xm(e){return e==null?"":""+e}function lC(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function cp(e,t,n){function r(o){return o&&o.indexOf("###")>-1?o.replace(/###/g,"."):o}function s(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(s())return{};const o=r(i.shift());!e[o]&&n&&(e[o]=new n),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={}}return s()?{}:{obj:e,k:r(i.shift())}}function bm(e,t,n){const{obj:r,k:s}=cp(e,t,Object);r[s]=n}function uC(e,t,n,r){const{obj:s,k:i}=cp(e,t,Object);s[i]=s[i]||[],r&&(s[i]=s[i].concat(n)),r||s[i].push(n)}function Sl(e,t){const{obj:n,k:r}=cp(e,t);if(n)return n[r]}function cC(e,t,n){const r=Sl(e,n);return r!==void 0?r:Sl(t,n)}function U0(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]):U0(e[r],t[r],n):e[r]=t[r]);return e}function xs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dC={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function fC(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>dC[t]):e}const pC=[" ",",","?","!",";"];function hC(e,t,n){t=t||"",n=n||"";const r=pC.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const s=new RegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let i=!s.test(e);if(!i){const o=e.indexOf(n);o>0&&!s.test(e.substring(0,o))&&(i=!0)}return i}function Cl(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 s=e;for(let i=0;i<r.length;++i){if(!s||typeof s[r[i]]=="string"&&i+1<r.length)return;if(s[r[i]]===void 0){let o=2,l=r.slice(i,i+o).join(n),a=s[l];for(;a===void 0&&r.length>i+o;)o++,l=r.slice(i,i+o).join(n),a=s[l];if(a===void 0)return;if(a===null)return null;if(t.endsWith(l)){if(typeof a=="string")return a;if(l&&typeof a[l]=="string")return a[l]}const u=r.slice(i+o).join(n);return u?Cl(a,u,n):void 0}s=s[r[i]]}return s}function El(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class Sm extends Pu{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 s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure;let l=[t,n];r&&typeof r!="string"&&(l=l.concat(r)),r&&typeof r=="string"&&(l=l.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(l=t.split("."));const a=Sl(this.data,l);return a||!o||typeof r!="string"?a:Cl(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,s){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(l=t.split("."),s=n,n=l[1]),this.addNamespaces(n),bm(this.data,l,s),i.silent||this.emit("added",t,n,r,s)}addResources(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});s.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),s=r,r=n,n=l[1]),this.addNamespaces(n);let a=Sl(this.data,l)||{};s?U0(a,r,i):a={...a,...r},bm(this.data,l,a),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(s=>n[s]&&Object.keys(n[s]).length>0)}toJSON(){return this.data}}var H0={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,s){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,s))}),t}};const Cm={};class Tl extends Pu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),lC(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=bn.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 s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!hC(t,r,s);if(o&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:i};const u=t.split(r);(r!==s||r===s&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),t=u.join(s)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}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 s=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const x=n.nsSeparator||this.options.nsSeparator;return s?{res:`${a}${x}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${x}${o}`}return s?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:o}const f=this.resolve(t,n);let p=f&&f.res;const h=f&&f.usedKey||o,v=f&&f.exactUsedKey||o,w=Object.prototype.toString.apply(p),b=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject;if(m&&p&&(typeof p!="string"&&typeof p!="boolean"&&typeof p!="number")&&b.indexOf(w)<0&&!(typeof g=="string"&&w==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,p,{...n,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return s?(f.res=x,f.usedParams=this.getUsedParamsDetails(n),f):x}if(i){const x=w==="[object Array]",C=x?[]:{},T=x?v:h;for(const E in p)if(Object.prototype.hasOwnProperty.call(p,E)){const j=`${T}${i}${E}`;C[E]=this.translate(j,{...n,joinArrays:!1,ns:l}),C[E]===j&&(C[E]=p[E])}p=C}}else if(m&&typeof g=="string"&&w==="[object Array]")p=p.join(g),p&&(p=this.extendTranslation(p,t,n,r));else{let x=!1,C=!1;const T=n.count!==void 0&&typeof n.count!="string",E=Tl.hasDefaultValue(n),j=T?this.pluralResolver.getSuffix(u,n.count,n):"",P=n.ordinal&&T?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",M=n[`defaultValue${j}`]||n[`defaultValue${P}`]||n.defaultValue;!this.isValidLookup(p)&&E&&(x=!0,p=M),this.isValidLookup(p)||(C=!0,p=o);const R=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:p,I=E&&M!==p&&this.options.updateMissing;if(C||x||I){if(this.logger.log(I?"updateKey":"missingKey",u,a,o,I?M:p),i){const $=this.resolve(o,{...n,keySeparator:!1});$&&$.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 L=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let $=0;$<k.length;$++)L.push(k[$]);else this.options.saveMissingTo==="all"?L=this.languageUtils.toResolveHierarchy(n.lng||this.language):L.push(n.lng||this.language);const A=($,_,F)=>{const B=E&&F!==p?F:R;this.options.missingKeyHandler?this.options.missingKeyHandler($,a,_,B,I,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing($,a,_,B,I,n),this.emit("missingKey",$,a,_,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?L.forEach($=>{this.pluralResolver.getSuffixes($,n).forEach(_=>{A([$],o+_,n[`defaultValue${_}`]||M)})}):A(L,o,M))}p=this.extendTranslation(p,t,n,f,r),C&&p===o&&this.options.appendNamespaceToMissingKey&&(p=`${a}:${o}`),(C||x)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,x?p:void 0):p=this.options.parseMissingKeyHandler(p))}return s?(f.res=p,f.usedParams=this.getUsedParamsDetails(n),f):p}extendTranslation(t,n,r,s,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});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 p=t.match(this.interpolator.nestingRegexp);c=p&&p.length}let f=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language,r),u){const p=t.match(this.interpolator.nestingRegexp),h=p&&p.length;c<h&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&s&&s.res&&(r.lng=s.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,h=new Array(p),v=0;v<p;v++)h[v]=arguments[v];return i&&i[0]===h[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):o.translate(...h,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,a=typeof l=="string"?[l]:l;return t!=null&&a&&a.length&&r.applyPostProcessor!==!1&&(t=H0.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,s,i,o,l;return typeof t=="string"&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),c=u.key;s=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",h=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),v=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(b=>{this.isValidLookup(r)||(l=b,!Cm[`${w[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(Cm[`${w[0]}-${b}`]=!0,this.logger.warn(`key "${s}" for languages "${w.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),w.forEach(g=>{if(this.isValidLookup(r))return;o=g;const m=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(m,c,g,b,n);else{let x;p&&(x=this.pluralResolver.getSuffix(g,n.count,n));const C=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(m.push(c+x),n.ordinal&&x.indexOf(T)===0&&m.push(c+x.replace(T,this.options.pluralSeparator)),h&&m.push(c+C)),v){const E=`${c}${this.options.contextSeparator}${n.context}`;m.push(E),p&&(m.push(E+x),n.ordinal&&x.indexOf(T)===0&&m.push(E+x.replace(T,this.options.pluralSeparator)),h&&m.push(E+C))}}let y;for(;y=m.pop();)this.isValidLookup(r)||(i=y,r=this.getResource(g,b,y,n))}))})}),{res:r,usedKey:s,exactUsedKey:i,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,s):this.resourceStore.getResource(t,n,r,s)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&typeof t.replace!="string";let s=r?t.replace:t;if(r&&typeof t.count<"u"&&(s.count=t.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!r){s={...s};for(const i of n)delete s[i]}return s}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 Nc(e){return e.charAt(0).toUpperCase()+e.slice(1)}class Em{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=bn.create("languageUtils")}getScriptPartFromCode(t){if(t=El(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=El(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(s=>s.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Nc(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]=Nc(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Nc(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 s=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(s))&&(n=s)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const s=this.getLanguagePartFromCode(r);if(this.isSupportedCode(s))return n=s;n=this.options.supportedLngs.find(i=>{if(i===s)return i;if(!(i.indexOf("-")<0&&s.indexOf("-")<0)&&i.indexOf(s)===0)return i})}),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),s=[],i=o=>{o&&(this.isSupportedCode(o)?s.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"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(o=>{s.indexOf(o)<0&&i(this.formatLanguageCode(o))}),s}}let mC=[{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}],gC={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 vC=["v1","v2","v3"],yC=["v4"],Tm={zero:0,one:1,two:2,few:3,many:4,other:5};function wC(){const e={};return mC.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:gC[t.fc]}})}),e}class xC{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=bn.create("pluralResolver"),(!this.options.compatibilityJSON||yC.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=wC()}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(El(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(s=>`${n}${s}`)}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((s,i)=>Tm[s]-Tm[i]).map(s=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${s}`):r.numbers.map(s=>this.getSuffix(t,s,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${s.select(n)}`:this.getSuffixRetroCompatible(s,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 s=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));const i=()=>this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString();return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?`_plural_${s.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!vC.includes(this.options.compatibilityJSON)}}function km(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=cC(e,t,n);return!i&&s&&typeof n=="string"&&(i=Cl(e,n,r),i===void 0&&(i=Cl(t,n,r))),i}class bC{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=bn.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:fC,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?xs(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?xs(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?xs(n.nestingPrefix):n.nestingPrefixEscaped||xs("$t("),this.nestingSuffix=n.nestingSuffix?xs(n.nestingSuffix):n.nestingSuffixEscaped||xs(")"),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,s){let i,o,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function u(v){return v.replace(/\$/g,"$$$$")}const c=v=>{if(v.indexOf(this.formatSeparator)<0){const m=km(n,a,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,r,{...s,...n,interpolationkey:v}):m}const w=v.split(this.formatSeparator),b=w.shift().trim(),g=w.join(this.formatSeparator).trim();return this.format(km(n,a,b,this.options.keySeparator,this.options.ignoreJSONStructure),g,r,{...s,...n,interpolationkey:b})};this.resetRegExp();const f=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,p=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>u(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?u(this.escape(v)):u(v)}].forEach(v=>{for(l=0;i=v.regex.exec(t);){const w=i[1].trim();if(o=c(w),o===void 0)if(typeof f=="function"){const g=f(t,i,s);o=typeof g=="string"?g:""}else if(s&&Object.prototype.hasOwnProperty.call(s,w))o="";else if(p){o=i[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),o="";else typeof o!="string"&&!this.useRawValueToEscape&&(o=xm(o));const b=v.safeValue(o);if(t=t.replace(i[0],b),p?(v.regex.lastIndex+=o.length,v.regex.lastIndex-=i[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,i,o;function l(a,u){const c=this.nestingOptionsSeparator;if(a.indexOf(c)<0)return a;const f=a.split(new RegExp(`${c}[ ]*{`));let p=`{${f[1]}`;a=f[0],p=this.interpolate(p,o);const h=p.match(/'/g),v=p.match(/"/g);(h&&h.length%2===0&&!v||v.length%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),u&&(o={...u,...o})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,w),`${a}${c}${p}`}return delete o.defaultValue,a}for(;s=this.nestingRegexp.exec(t);){let a=[];o={...r},o=o.replace&&typeof o.replace!="string"?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){const c=s[1].split(this.formatSeparator).map(f=>f.trim());s[1]=c.shift(),a=c,u=!0}if(i=n(l.call(this,s[1].trim(),o),o),i&&s[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=xm(i)),i||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`),i=""),u&&(i=a.reduce((c,f)=>this.format(c,f,r.lng,{...r,interpolationkey:s[1].trim()}),i.trim())),t=t.replace(s[0],i),this.regexp.lastIndex=0}return t}}function SC(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const s=r[1].substring(0,r[1].length-1);t==="currency"&&s.indexOf(":")<0?n.currency||(n.currency=s.trim()):t==="relativetime"&&s.indexOf(":")<0?n.range||(n.range=s.trim()):s.split(";").forEach(o=>{if(!o)return;const[l,...a]=o.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=u),u==="false"&&(n[l.trim()]=!1),u==="true"&&(n[l.trim()]=!0),isNaN(u)||(n[l.trim()]=parseInt(u,10))})}return{formatName:t,formatOptions:n}}function bs(e){const t={};return function(r,s,i){const o=s+JSON.stringify(i);let l=t[o];return l||(l=e(El(s),i),t[o]=l),l(r)}}class CC{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=bn.create("formatter"),this.options=t,this.formats={number:bs((n,r)=>{const s=new Intl.NumberFormat(n,{...r});return i=>s.format(i)}),currency:bs((n,r)=>{const s=new Intl.NumberFormat(n,{...r,style:"currency"});return i=>s.format(i)}),datetime:bs((n,r)=>{const s=new Intl.DateTimeFormat(n,{...r});return i=>s.format(i)}),relativetime:bs((n,r)=>{const s=new Intl.RelativeTimeFormat(n,{...r});return i=>s.format(i,r.range||"day")}),list:bs((n,r)=>{const s=new Intl.ListFormat(n,{...r});return i=>s.format(i)})},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()]=bs(n)}format(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,a)=>{const{formatName:u,formatOptions:c}=SC(a);if(this.formats[u]){let f=l;try{const p=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},h=p.locale||p.lng||s.locale||s.lng||r;f=this.formats[u](l,h,{...c,...s,...p})}catch(p){this.logger.warn(p)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}function EC(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class TC extends Pu{constructor(t,n,r){let s=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=s,this.logger=bn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,s.backend,s)}queueLoad(t,n,r,s){const i={},o={},l={},a={};return t.forEach(u=>{let c=!0;n.forEach(f=>{const p=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,c=!1,o[p]===void 0&&(o[p]=!0),i[p]===void 0&&(i[p]=!0),a[f]===void 0&&(a[f]=!0)))}),c||(l[u]=!0)}),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const s=t.split("|"),i=s[0],o=s[1];n&&this.emit("failedLoading",i,o,n),r&&this.store.addResourceBundle(i,o,r),this.state[t]=n?-1:2;const l={};this.queue.forEach(a=>{uC(a.loaded,[i],o),EC(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const c=a.loaded[u];c.length&&c.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=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:s,wait:i,callback:o});return}this.readingCalls++;const l=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&c&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,s+1,i*2,o)},i);return}o(u,c)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(c=>l(null,c)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=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."),s&&s();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,s);if(!i.toLoad.length)return i.pending.length||s(),null;i.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("|"),s=r[0],i=r[1];this.read(s,i,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${n}loading namespace ${i} for language ${s} failed`,o),!o&&l&&this.logger.log(`${n}loaded namespace ${i} for language ${s}`,l),this.loaded(t,o,l)})}saveMissing(t,n,r,s,i){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=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 a={...o,isUpdate:i},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(t,n,r,s,a):c=u(t,n,r,s),c&&typeof c.then=="function"?c.then(f=>l(null,f)).catch(l):l(null,c)}catch(c){l(c)}else u(t,n,r,s,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,s)}}}function Pm(){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(s=>{n[s]=r[s]})}return n},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function jm(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 ba(){}function kC(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}class po extends Pu{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=jm(t),this.services={},this.logger=bn,this.modules={external:[]},kC(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 s=Pm();this.options={...s,...this.options,...jm(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...s.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?bn.init(i(this.modules.logger),this.options):bn.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=CC);const f=new Em(this.options);this.store=new Sm(this.options.resources,this.options);const p=this.services;p.logger=bn,p.resourceStore=this.store,p.languageUtils=f,p.pluralResolver=new xC(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(p.formatter=i(c),p.formatter.init(p,this.options),this.options.interpolation.format=p.formatter.format.bind(p.formatter)),p.interpolator=new bC(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new TC(i(this.modules.backend),p.resourceStore,p,this.options),p.backendConnector.on("*",function(h){for(var v=arguments.length,w=new Array(v>1?v-1:0),b=1;b<v;b++)w[b-1]=arguments[b];t.emit(h,...w)}),this.modules.languageDetector&&(p.languageDetector=i(this.modules.languageDetector),p.languageDetector.init&&p.languageDetector.init(p,this.options.detection,this.options)),this.modules.i18nFormat&&(p.i18nFormat=i(this.modules.i18nFormat),p.i18nFormat.init&&p.i18nFormat.init(this)),this.translator=new Tl(this.services,this.options),this.translator.on("*",function(h){for(var v=arguments.length,w=new Array(v>1?v-1:0),b=1;b<v;b++)w[b-1]=arguments[b];t.emit(h,...w)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ba),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 a=Ci(),u=()=>{const c=(f,p)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(p),r(f,p)};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),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ba;const s=typeof t=="string"?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(s&&s.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const i=[],o=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>o(a)),this.options.preload&&this.options.preload.forEach(l=>o(l)),this.services.backendConnector.load(i,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const s=Ci();return t||(t=this.languages),n||(n=this.options.ns),r||(r=ba),this.services.backendConnector.reload(t,n,i=>{s.resolve(),r(i)}),s}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"&&H0.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 s=Ci();this.emit("languageChanging",t);const i=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,s.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=typeof a=="string"?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||i(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?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),s}getFixedT(t,n,r){var s=this;const i=function(o,l){let a;if(typeof l!="object"){for(var u=arguments.length,c=new Array(u>2?u-2:0),f=2;f<u;f++)c[f-2]=arguments[f];a=s.options.overloadTranslationOptionHandler([o,l].concat(c))}else a={...l};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix=a.keyPrefix||r||i.keyPrefix;const p=s.options.keySeparator||".";let h;return a.keyPrefix&&Array.isArray(o)?h=o.map(v=>`${a.keyPrefix}${p}${v}`):h=a.keyPrefix?`${a.keyPrefix}${p}${o}`:o,s.t(h,a)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}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],s=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};if(n.precheck){const l=n.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!s||o(i,t)))}loadNamespaces(t,n){const r=Ci();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=Ci();typeof t=="string"&&(t=[t]);const s=this.options.preload||[],i=t.filter(o=>s.indexOf(o)<0);return i.length?(this.options.preload=s.concat(i),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 Em(Pm());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 po(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ba;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const s={...this.options,...t,isClone:!0},i=new po(s);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(l=>{i[l]=this[l]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new Sm(this.store.data,s),i.services.resourceStore=i.store),i.translator=new Tl(i.services,s),i.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];i.emit(l,...u)}),i.init(s,n),i.translator.options=s,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Xe=po.createInstance();Xe.createInstance=po.createInstance;Xe.createInstance;Xe.dir;Xe.init;Xe.loadResources;Xe.reloadResources;Xe.use;Xe.changeLanguage;Xe.getFixedT;const bt=Xe.t;Xe.exists;Xe.setDefaultNamespace;Xe.hasLoadedNamespace;Xe.loadNamespaces;Xe.loadLanguages;function Rd(e){"@babel/helpers - typeof";return Rd=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},Rd(e)}var q0=[],PC=q0.forEach,jC=q0.slice;function Nd(e){return PC.call(jC.call(arguments,1),function(t){if(t)for(var n in t)e[n]===void 0&&(e[n]=t[n])}),e}function W0(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Rd(XMLHttpRequest))==="object"}function OC(e){return!!e&&typeof e.then=="function"}function RC(e){return OC(e)?e:Promise.resolve(e)}function NC(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 Ad={exports:{}},Sa={exports:{}},Om;function AC(){return Om||(Om=1,function(e,t){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof tt<"u"&&tt,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(o){var l=typeof i<"u"&&i||typeof self<"u"&&self||typeof l<"u"&&l,a={searchParams:"URLSearchParams"in l,iterable:"Symbol"in l&&"iterator"in Symbol,blob:"FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in l,arrayBuffer:"ArrayBuffer"in l};function u(k){return k&&DataView.prototype.isPrototypeOf(k)}if(a.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(k){return k&&c.indexOf(Object.prototype.toString.call(k))>-1};function p(k){if(typeof k!="string"&&(k=String(k)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(k)||k==="")throw new TypeError('Invalid character in header field name: "'+k+'"');return k.toLowerCase()}function h(k){return typeof k!="string"&&(k=String(k)),k}function v(k){var A={next:function(){var $=k.shift();return{done:$===void 0,value:$}}};return a.iterable&&(A[Symbol.iterator]=function(){return A}),A}function w(k){this.map={},k instanceof w?k.forEach(function(A,$){this.append($,A)},this):Array.isArray(k)?k.forEach(function(A){this.append(A[0],A[1])},this):k&&Object.getOwnPropertyNames(k).forEach(function(A){this.append(A,k[A])},this)}w.prototype.append=function(k,A){k=p(k),A=h(A);var $=this.map[k];this.map[k]=$?$+", "+A:A},w.prototype.delete=function(k){delete this.map[p(k)]},w.prototype.get=function(k){return k=p(k),this.has(k)?this.map[k]:null},w.prototype.has=function(k){return this.map.hasOwnProperty(p(k))},w.prototype.set=function(k,A){this.map[p(k)]=h(A)},w.prototype.forEach=function(k,A){for(var $ in this.map)this.map.hasOwnProperty($)&&k.call(A,this.map[$],$,this)},w.prototype.keys=function(){var k=[];return this.forEach(function(A,$){k.push($)}),v(k)},w.prototype.values=function(){var k=[];return this.forEach(function(A){k.push(A)}),v(k)},w.prototype.entries=function(){var k=[];return this.forEach(function(A,$){k.push([$,A])}),v(k)},a.iterable&&(w.prototype[Symbol.iterator]=w.prototype.entries);function b(k){if(k.bodyUsed)return Promise.reject(new TypeError("Already read"));k.bodyUsed=!0}function g(k){return new Promise(function(A,$){k.onload=function(){A(k.result)},k.onerror=function(){$(k.error)}})}function m(k){var A=new FileReader,$=g(A);return A.readAsArrayBuffer(k),$}function y(k){var A=new FileReader,$=g(A);return A.readAsText(k),$}function x(k){for(var A=new Uint8Array(k),$=new Array(A.length),_=0;_<A.length;_++)$[_]=String.fromCharCode(A[_]);return $.join("")}function C(k){if(k.slice)return k.slice(0);var A=new Uint8Array(k.byteLength);return A.set(new Uint8Array(k)),A.buffer}function T(){return this.bodyUsed=!1,this._initBody=function(k){this.bodyUsed=this.bodyUsed,this._bodyInit=k,k?typeof k=="string"?this._bodyText=k:a.blob&&Blob.prototype.isPrototypeOf(k)?this._bodyBlob=k:a.formData&&FormData.prototype.isPrototypeOf(k)?this._bodyFormData=k:a.searchParams&&URLSearchParams.prototype.isPrototypeOf(k)?this._bodyText=k.toString():a.arrayBuffer&&a.blob&&u(k)?(this._bodyArrayBuffer=C(k.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(k)||f(k))?this._bodyArrayBuffer=C(k):this._bodyText=k=Object.prototype.toString.call(k):this._bodyText="",this.headers.get("content-type")||(typeof k=="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(k)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a.blob&&(this.blob=function(){var k=b(this);if(k)return k;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(){if(this._bodyArrayBuffer){var k=b(this);return k||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(m)}),this.text=function(){var k=b(this);if(k)return k;if(this._bodyBlob)return y(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(x(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(M)}),this.json=function(){return this.text().then(JSON.parse)},this}var E=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function j(k){var A=k.toUpperCase();return E.indexOf(A)>-1?A:k}function P(k,A){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');A=A||{};var $=A.body;if(k instanceof P){if(k.bodyUsed)throw new TypeError("Already read");this.url=k.url,this.credentials=k.credentials,A.headers||(this.headers=new w(k.headers)),this.method=k.method,this.mode=k.mode,this.signal=k.signal,!$&&k._bodyInit!=null&&($=k._bodyInit,k.bodyUsed=!0)}else this.url=String(k);if(this.credentials=A.credentials||this.credentials||"same-origin",(A.headers||!this.headers)&&(this.headers=new w(A.headers)),this.method=j(A.method||this.method||"GET"),this.mode=A.mode||this.mode||null,this.signal=A.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&$)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody($),(this.method==="GET"||this.method==="HEAD")&&(A.cache==="no-store"||A.cache==="no-cache")){var _=/([?&])_=[^&]*/;if(_.test(this.url))this.url=this.url.replace(_,"$1_="+new Date().getTime());else{var F=/\?/;this.url+=(F.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}P.prototype.clone=function(){return new P(this,{body:this._bodyInit})};function M(k){var A=new FormData;return k.trim().split("&").forEach(function($){if($){var _=$.split("="),F=_.shift().replace(/\+/g," "),B=_.join("=").replace(/\+/g," ");A.append(decodeURIComponent(F),decodeURIComponent(B))}}),A}function N(k){var A=new w,$=k.replace(/\r?\n[\t ]+/g," ");return $.split("\r").map(function(_){return _.indexOf(`
|
|
18
|
+
`)===0?_.substr(1,_.length):_}).forEach(function(_){var F=_.split(":"),B=F.shift().trim();if(B){var J=F.join(":").trim();A.append(B,J)}}),A}T.call(P.prototype);function R(k,A){if(!(this instanceof R))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');A||(A={}),this.type="default",this.status=A.status===void 0?200:A.status,this.ok=this.status>=200&&this.status<300,this.statusText=A.statusText===void 0?"":""+A.statusText,this.headers=new w(A.headers),this.url=A.url||"",this._initBody(k)}T.call(R.prototype),R.prototype.clone=function(){return new R(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new w(this.headers),url:this.url})},R.error=function(){var k=new R(null,{status:0,statusText:""});return k.type="error",k};var I=[301,302,303,307,308];R.redirect=function(k,A){if(I.indexOf(A)===-1)throw new RangeError("Invalid status code");return new R(null,{status:A,headers:{location:k}})},o.DOMException=l.DOMException;try{new o.DOMException}catch{o.DOMException=function(A,$){this.message=A,this.name=$;var _=Error(A);this.stack=_.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function L(k,A){return new Promise(function($,_){var F=new P(k,A);if(F.signal&&F.signal.aborted)return _(new o.DOMException("Aborted","AbortError"));var B=new XMLHttpRequest;function J(){B.abort()}B.onload=function(){var le={status:B.status,statusText:B.statusText,headers:N(B.getAllResponseHeaders()||"")};le.url="responseURL"in B?B.responseURL:le.headers.get("X-Request-URL");var ne="response"in B?B.response:B.responseText;setTimeout(function(){$(new R(ne,le))},0)},B.onerror=function(){setTimeout(function(){_(new TypeError("Network request failed"))},0)},B.ontimeout=function(){setTimeout(function(){_(new TypeError("Network request failed"))},0)},B.onabort=function(){setTimeout(function(){_(new o.DOMException("Aborted","AbortError"))},0)};function Z(le){try{return le===""&&l.location.href?l.location.href:le}catch{return le}}B.open(F.method,Z(F.url),!0),F.credentials==="include"?B.withCredentials=!0:F.credentials==="omit"&&(B.withCredentials=!1),"responseType"in B&&(a.blob?B.responseType="blob":a.arrayBuffer&&F.headers.get("Content-Type")&&F.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(B.responseType="arraybuffer")),A&&typeof A.headers=="object"&&!(A.headers instanceof w)?Object.getOwnPropertyNames(A.headers).forEach(function(le){B.setRequestHeader(le,h(A.headers[le]))}):F.headers.forEach(function(le,ne){B.setRequestHeader(ne,le)}),F.signal&&(F.signal.addEventListener("abort",J),B.onreadystatechange=function(){B.readyState===4&&F.signal.removeEventListener("abort",J)}),B.send(typeof F._bodyInit>"u"?null:F._bodyInit)})}return L.polyfill=!0,l.fetch||(l.fetch=L,l.Headers=w,l.Request=P,l.Response=R),o.Headers=w,o.Request=P,o.Response=R,o.fetch=L,o})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var s=n.fetch?n:r;t=s.fetch,t.default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t}(Sa,Sa.exports)),Sa.exports}(function(e,t){var n;if(typeof fetch=="function"&&(typeof tt<"u"&&tt.fetch?n=tt.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof NC<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||AC();r.default&&(r=r.default),t.default=r,e.exports=t.default}})(Ad,Ad.exports);var Q0=Ad.exports;const G0=Xo(Q0),Rm=N0({__proto__:null,default:G0},[Q0]);function kl(e){"@babel/helpers - typeof";return kl=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},kl(e)}var Vn;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?Vn=global.fetch:typeof window<"u"&&window.fetch?Vn=window.fetch:Vn=fetch);var ho;W0()&&(typeof global<"u"&&global.XMLHttpRequest?ho=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ho=window.XMLHttpRequest));var Pl;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Pl=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Pl=window.ActiveXObject));!Vn&&Rm&&!ho&&!Pl&&(Vn=G0||Rm);typeof Vn!="function"&&(Vn=void 0);var Id=function(t,n){if(n&&kl(n)==="object"){var r="";for(var s in n)r+="&"+encodeURIComponent(s)+"="+encodeURIComponent(n[s]);if(!r)return t;t=t+(t.indexOf("?")!==-1?"&":"?")+r.slice(1)}return t},Nm=function(t,n,r){var s=function(o){if(!o.ok)return r(o.statusText||"Error",{status:o.status});o.text().then(function(l){r(null,{status:o.status,data:l})}).catch(r)};typeof fetch=="function"?fetch(t,n).then(s).catch(r):Vn(t,n).then(s).catch(r)},Am=!1,IC=function(t,n,r,s){t.queryStringParams&&(n=Id(n,t.queryStringParams));var i=Nd({},typeof t.customHeaders=="function"?t.customHeaders():t.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(i["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(i["Content-Type"]="application/json");var o=typeof t.requestOptions=="function"?t.requestOptions(r):t.requestOptions,l=Nd({method:r?"POST":"GET",body:r?t.stringify(r):void 0,headers:i},Am?{}:o);try{Nm(n,l,s)}catch(a){if(!o||Object.keys(o).length===0||!a.message||a.message.indexOf("not implemented")<0)return s(a);try{Object.keys(o).forEach(function(u){delete l[u]}),Nm(n,l,s),Am=!0}catch(u){s(u)}}},_C=function(t,n,r,s){r&&kl(r)==="object"&&(r=Id("",r).slice(1)),t.queryStringParams&&(n=Id(n,t.queryStringParams));try{var i;ho?i=new ho:i=new Pl("MSXML2.XMLHTTP.3.0"),i.open(r?"POST":"GET",n,1),t.crossDomain||i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.withCredentials=!!t.withCredentials,r&&i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.overrideMimeType&&i.overrideMimeType("application/json");var o=t.customHeaders;if(o=typeof o=="function"?o():o,o)for(var l in o)i.setRequestHeader(l,o[l]);i.onreadystatechange=function(){i.readyState>3&&s(i.status>=400?i.statusText:null,{status:i.status,data:i.responseText})},i.send(r)}catch(a){console&&console.log(a)}},MC=function(t,n,r,s){if(typeof r=="function"&&(s=r,r=void 0),s=s||function(){},Vn&&n.indexOf("file:")!==0)return IC(t,n,r,s);if(W0()||typeof ActiveXObject=="function")return _C(t,n,r,s);s(new Error("No fetch and no xhr implementation found!"))};function mo(e){"@babel/helpers - typeof";return mo=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},mo(e)}function LC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Im(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,K0(r.key),r)}}function DC(e,t,n){return t&&Im(e.prototype,t),n&&Im(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function FC(e,t,n){return t=K0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K0(e){var t=$C(e,"string");return mo(t)==="symbol"?t:String(t)}function $C(e,t){if(mo(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mo(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zC=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,s){return FC({},r,s||"")},parseLoadPayload:function(n,r){},request:MC,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},X0=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]:{};LC(this,e),this.services=t,this.options=n,this.allOptions=r,this.type="backend",this.init(t,n,r)}return DC(e,[{key:"init",value:function(n){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=Nd(s,this.options||{},zC()),this.allOptions=i,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,s){this._readAny(n,n,r,r,s)}},{key:"read",value:function(n,r,s){this._readAny([n],n,[r],r,s)}},{key:"_readAny",value:function(n,r,s,i,o){var l=this,a=this.options.loadPath;typeof this.options.loadPath=="function"&&(a=this.options.loadPath(n,s)),a=RC(a),a.then(function(u){if(!u)return o(null,{});var c=l.services.interpolator.interpolate(u,{lng:n.join("+"),ns:s.join("+")});l.loadUrl(c,o,r,i)})}},{key:"loadUrl",value:function(n,r,s,i){var o=this,l=typeof s=="string"?[s]:s,a=typeof i=="string"?[i]:i,u=this.options.parseLoadPayload(l,a);this.options.request(this.options,n,u,function(c,f){if(f&&(f.status>=500&&f.status<600||!f.status))return r("failed loading "+n+"; status code: "+f.status,!0);if(f&&f.status>=400&&f.status<500)return r("failed loading "+n+"; status code: "+f.status,!1);if(!f&&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 p,h;try{typeof f.data=="string"?p=o.options.parse(f.data,s,i):p=f.data}catch{h="failed parsing "+n+" to json"}if(h)return r(h,!1);r(null,p)})}},{key:"create",value:function(n,r,s,i,o){var l=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var a=this.options.parsePayload(r,s,i),u=0,c=[],f=[];n.forEach(function(p){var h=l.options.addPath;typeof l.options.addPath=="function"&&(h=l.options.addPath(p,r));var v=l.services.interpolator.interpolate(h,{lng:p,ns:r});l.options.request(l.options,v,a,function(w,b){u+=1,c.push(w),f.push(b),u===n.length&&typeof o=="function"&&o(c,f)})})}}},{key:"reload",value:function(){var n=this,r=this.services,s=r.backendConnector,i=r.languageUtils,o=r.logger,l=s.language;if(!(l&&l.toLowerCase()==="cimode")){var a=[],u=function(f){var p=i.toResolveHierarchy(f);p.forEach(function(h){a.indexOf(h)<0&&a.push(h)})};u(l),this.allOptions.preload&&this.allOptions.preload.forEach(function(c){return u(c)}),a.forEach(function(c){n.allOptions.ns.forEach(function(f){s.read(c,f,"read",null,null,function(p,h){p&&o.warn("loading namespace ".concat(f," for language ").concat(c," failed"),p),!p&&h&&o.log("loaded namespace ".concat(f," for language ").concat(c),h),s.loaded("".concat(c,"|").concat(f),p,h)})})})}}}]),e}();X0.type="backend";function BC(){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 _m={};function _d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&_m[t[0]]||(typeof t[0]=="string"&&(_m[t[0]]=new Date),BC(...t))}const Y0=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}};function Mm(e,t,n){e.loadNamespaces(t,Y0(e,n))}function Lm(e,t,n,r){typeof n=="string"&&(n=[n]),n.forEach(s=>{e.options.ns.indexOf(s)<0&&e.options.ns.push(s)}),e.loadLanguages(t,Y0(e,r))}function VC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],s=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const u=t.services.backendConnector.state[`${l}|${a}`];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)&&(!s||o(i,e)))}function UC(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(_d("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}):VC(e,t,n)}const HC=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,qC={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},WC=e=>qC[e],QC=e=>e.replace(HC,WC);let Md={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:QC};function GC(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Md={...Md,...e}}function KC(){return Md}let J0;function XC(e){J0=e}function YC(){return J0}const JC={type:"3rdParty",init(e){GC(e.options.react),XC(e)}},ZC=S.createContext();class eE{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const tE=(e,t)=>{const n=S.useRef();return S.useEffect(()=>{n.current=t?n.current:e},[e,t]),n.current};function se(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:s}=S.useContext(ZC)||{},i=n||r||YC();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new eE),!i){_d("You will need to pass in an i18next instance by using initReactI18next");const y=(C,T)=>typeof T=="string"?T:T&&typeof T=="object"&&typeof T.defaultValue=="string"?T.defaultValue:Array.isArray(C)?C[C.length-1]:C,x=[y,{},!1];return x.t=y,x.i18n={},x.ready=!1,x}i.options.react&&i.options.react.wait!==void 0&&_d("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...KC(),...i.options.react,...t},{useSuspense:l,keyPrefix:a}=o;let u=e||s||i.options&&i.options.defaultNS;u=typeof u=="string"?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(u);const c=(i.isInitialized||i.initializedStoreOnce)&&u.every(y=>UC(y,i,o));function f(){return i.getFixedT(t.lng||null,o.nsMode==="fallback"?u:u[0],a)}const[p,h]=S.useState(f);let v=u.join();t.lng&&(v=`${t.lng}${v}`);const w=tE(v),b=S.useRef(!0);S.useEffect(()=>{const{bindI18n:y,bindI18nStore:x}=o;b.current=!0,!c&&!l&&(t.lng?Lm(i,t.lng,u,()=>{b.current&&h(f)}):Mm(i,u,()=>{b.current&&h(f)})),c&&w&&w!==v&&b.current&&h(f);function C(){b.current&&h(f)}return y&&i&&i.on(y,C),x&&i&&i.store.on(x,C),()=>{b.current=!1,y&&i&&y.split(" ").forEach(T=>i.off(T,C)),x&&i&&x.split(" ").forEach(T=>i.store.off(T,C))}},[i,v]);const g=S.useRef(!0);S.useEffect(()=>{b.current&&!g.current&&h(f),g.current=!1},[i,a]);const m=[p,i,c];if(m.t=p,m.i18n=i,m.ready=c,c||!c&&!l)return m;throw new Promise(y=>{t.lng?Lm(i,t.lng,u,()=>y()):Mm(i,u,()=>y())})}Xe.use(X0).use(JC).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 pi{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 go=typeof window>"u"||"Deno"in window;function Dt(){}function nE(e,t){return typeof e=="function"?e(t):e}function Ld(e){return typeof e=="number"&&e>=0&&e!==1/0}function Z0(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ts(e,t,n){return Jo(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function rE(e,t,n){return Jo(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function nr(e,t,n){return Jo(e)?[{...t,queryKey:e},n]:[e||{},t]}function Dm(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:o,stale:l}=e;if(Jo(o)){if(r){if(t.queryHash!==dp(o,t.options))return!1}else if(!jl(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||typeof s<"u"&&s!==t.state.fetchStatus||i&&!i(t))}function Fm(e,t){const{exact:n,fetching:r,predicate:s,mutationKey:i}=e;if(Jo(i)){if(!t.options.mutationKey)return!1;if(n){if(qr(t.options.mutationKey)!==qr(i))return!1}else if(!jl(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||s&&!s(t))}function dp(e,t){return((t==null?void 0:t.queryKeyHashFn)||qr)(e)}function qr(e){return JSON.stringify(e,(t,n)=>Dd(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function jl(e,t){return e1(e,t)}function e1(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!e1(e[n],t[n])):!1}function t1(e,t){if(e===t)return e;const n=$m(e)&&$m(t);if(n||Dd(e)&&Dd(t)){const r=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),i=s.length,o=n?[]:{};let l=0;for(let a=0;a<i;a++){const u=n?a:s[a];o[u]=t1(e[u],t[u]),o[u]===e[u]&&l++}return r===i&&l===r?e:o}return t}function Ol(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function $m(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Dd(e){if(!zm(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!zm(n)||!n.hasOwnProperty("isPrototypeOf"))}function zm(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jo(e){return Array.isArray(e)}function n1(e){return new Promise(t=>{setTimeout(t,e)})}function Bm(e){n1(0).then(e)}function sE(){if(typeof AbortController=="function")return new AbortController}function Fd(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?t1(e,t):t}class iE extends pi{constructor(){super(),this.setup=t=>{if(!go&&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 Rl=new iE,Vm=["online","offline"];class oE extends pi{constructor(){super(),this.setup=t=>{if(!go&&window.addEventListener){const n=()=>t();return Vm.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{Vm.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 Nl=new oE;function aE(e){return Math.min(1e3*2**e,3e4)}function ju(e){return(e??"online")==="online"?Nl.isOnline():!0}class r1{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Za(e){return e instanceof r1}function s1(e){let t=!1,n=0,r=!1,s,i,o;const l=new Promise((b,g)=>{i=b,o=g}),a=b=>{r||(h(new r1(b)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},f=()=>!Rl.isFocused()||e.networkMode!=="always"&&!Nl.isOnline(),p=b=>{r||(r=!0,e.onSuccess==null||e.onSuccess(b),s==null||s(),i(b))},h=b=>{r||(r=!0,e.onError==null||e.onError(b),s==null||s(),o(b))},v=()=>new Promise(b=>{s=g=>{const m=r||!f();return m&&b(g),m},e.onPause==null||e.onPause()}).then(()=>{s=void 0,r||e.onContinue==null||e.onContinue()}),w=()=>{if(r)return;let b;try{b=e.fn()}catch(g){b=Promise.reject(g)}Promise.resolve(b).then(p).catch(g=>{var m,y;if(r)return;const x=(m=e.retry)!=null?m:3,C=(y=e.retryDelay)!=null?y:aE,T=typeof C=="function"?C(n,g):C,E=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,g);if(t||!E){h(g);return}n++,e.onFail==null||e.onFail(n,g),n1(T).then(()=>{if(f())return v()}).then(()=>{t?h(g):w()})})};return ju(e.networkMode)?w():v().then(w),{promise:l,cancel:a,continue:()=>(s==null?void 0:s())?l:Promise.resolve(),cancelRetry:u,continueRetry:c}}const fp=console;function lE(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const s=c=>{let f;t++;try{f=c()}finally{t--,t||l()}return f},i=c=>{t?e.push(c):Bm(()=>{n(c)})},o=c=>(...f)=>{i(()=>{c(...f)})},l=()=>{const c=e;e=[],c.length&&Bm(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:s,batchCalls:o,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ke=lE();class i1{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ld(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(go?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class uE extends i1{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||fp,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||cE(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=Fd(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(Dt).catch(Dt):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||!Z0(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,s;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(v=>v.options.queryFn);h&&this.setOptions(h.options)}const o=sE(),l={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};a(l);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(l)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((s=c.fetchOptions)==null?void 0:s.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const p=h=>{if(Za(h)&&h.silent||this.dispatch({type:"error",error:h}),!Za(h)){var v,w,b,g;(v=(w=this.cache.config).onError)==null||v.call(w,h,this),(b=(g=this.cache.config).onSettled)==null||b.call(g,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=s1({fn:c.fetchFn,abort:o==null?void 0:o.abort.bind(o),onSuccess:h=>{var v,w,b,g;if(typeof h>"u"){p(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(v=(w=this.cache.config).onSuccess)==null||v.call(w,h,this),(b=(g=this.cache.config).onSettled)==null||b.call(g,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(h,v)=>{this.dispatch({type:"failed",failureCount:h,error:v})},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 s,i;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:(s=t.meta)!=null?s:null,fetchStatus:ju(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Za(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...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),ke.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function cE(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 o1 extends pi{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var s;const i=n.queryKey,o=(s=n.queryHash)!=null?s:dp(i,n);let l=this.get(o);return l||(l=new uE({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(l)),l}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(){ke.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=nr(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(s=>Dm(r,s))}findAll(t,n){const[r]=nr(t,n);return Object.keys(r).length>0?this.queries.filter(s=>Dm(r,s)):this.queries}notify(t){ke.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ke.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ke.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class dE extends i1{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||fp,this.observers=[],this.state=t.state||a1(),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 E;return this.retryer=s1({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(j,P)=>{this.dispatch({type:"failed",failureCount:j,error:P})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(E=this.options.retry)!=null?E:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,s,i,o,l,a,u,c;if(!n){var f,p,h,v;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(p=this.mutationCache.config).onMutate)==null?void 0:f.call(p,this.state.variables,this));const j=await((h=(v=this.options).onMutate)==null?void 0:h.call(v,this.state.variables));j!==this.state.context&&this.dispatch({type:"loading",context:j,variables:this.state.variables})}const E=await t();return await((r=(s=this.mutationCache.config).onSuccess)==null?void 0:r.call(s,E,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,E,this.state.variables,this.state.context)),await((l=(a=this.mutationCache.config).onSettled)==null?void 0:l.call(a,E,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,E,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:E}),E}catch(E){try{var w,b,g,m,y,x,C,T;throw await((w=(b=this.mutationCache.config).onError)==null?void 0:w.call(b,E,this.state.variables,this.state.context,this)),await((g=(m=this.options).onError)==null?void 0:g.call(m,E,this.state.variables,this.state.context)),await((y=(x=this.mutationCache.config).onSettled)==null?void 0:y.call(x,void 0,E,this.state.variables,this.state.context,this)),await((C=(T=this.options).onSettled)==null?void 0:C.call(T,void 0,E,this.state.variables,this.state.context)),E}finally{this.dispatch({type:"error",error:E})}}}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:!ju(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),ke.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function a1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class fE extends pi{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const s=new dE({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(s),s}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(){ke.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=>Fm(t,n))}findAll(t){return this.mutations.filter(n=>Fm(t,n))}notify(t){ke.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 ke.batch(()=>n.reduce((r,s)=>r.then(()=>s.continue().catch(Dt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function $d(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,s,i,o;const l=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,a=(r=e.fetchOptions)==null||(s=r.meta)==null?void 0:s.fetchMore,u=a==null?void 0:a.pageParam,c=(a==null?void 0:a.direction)==="forward",f=(a==null?void 0:a.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],h=((o=e.state.data)==null?void 0:o.pageParams)||[];let v=h,w=!1;const b=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>{var E;if((E=e.signal)!=null&&E.aborted)w=!0;else{var j;(j=e.signal)==null||j.addEventListener("abort",()=>{w=!0})}return e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),m=(T,E,j,P)=>(v=P?[E,...v]:[...v,E],P?[j,...T]:[...T,j]),y=(T,E,j,P)=>{if(w)return Promise.reject("Cancelled");if(typeof j>"u"&&!E&&T.length)return Promise.resolve(T);const M={queryKey:e.queryKey,pageParam:j,meta:e.options.meta};b(M);const N=g(M);return Promise.resolve(N).then(I=>m(T,j,I,P))};let x;if(!p.length)x=y([]);else if(c){const T=typeof u<"u",E=T?u:zd(e.options,p);x=y(p,T,E)}else if(f){const T=typeof u<"u",E=T?u:l1(e.options,p);x=y(p,T,E,!0)}else{v=[];const T=typeof e.options.getNextPageParam>"u";x=(l&&p[0]?l(p[0],0,p):!0)?y([],T,h[0]):Promise.resolve(m([],h[0],p[0]));for(let j=1;j<p.length;j++)x=x.then(P=>{if(l&&p[j]?l(p[j],j,p):!0){const N=T?h[j]:zd(e.options,P);return y(P,T,N)}return Promise.resolve(m(P,h[j],p[j]))})}return x.then(T=>({pages:T,pageParams:v}))}}}}function zd(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function l1(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}function pE(e,t){if(e.getNextPageParam&&Array.isArray(t)){const n=zd(e,t);return typeof n<"u"&&n!==null&&n!==!1}}function hE(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){const n=l1(e,t);return typeof n<"u"&&n!==null&&n!==!1}}class mE{constructor(t={}){this.queryCache=t.queryCache||new o1,this.mutationCache=t.mutationCache||new fE,this.logger=t.logger||fp,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=Rl.subscribe(()=>{Rl.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Nl.subscribe(()=>{Nl.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]=nr(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 s=Ts(t,n,r),i=this.getQueryData(s.queryKey);return i?Promise.resolve(i):this.fetchQuery(s)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(t,n,r){const s=this.queryCache.find(t),i=s==null?void 0:s.state.data,o=nE(n,i);if(typeof o>"u")return;const l=Ts(t),a=this.defaultQueryOptions(l);return this.queryCache.build(this,a).setData(o,{...r,manual:!0})}setQueriesData(t,n,r){return ke.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=nr(t,n),s=this.queryCache;ke.batch(()=>{s.findAll(r).forEach(i=>{s.remove(i)})})}resetQueries(t,n,r){const[s,i]=nr(t,n,r),o=this.queryCache,l={type:"active",...s};return ke.batch(()=>(o.findAll(s).forEach(a=>{a.reset()}),this.refetchQueries(l,i)))}cancelQueries(t,n,r){const[s,i={}]=nr(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const o=ke.batch(()=>this.queryCache.findAll(s).map(l=>l.cancel(i)));return Promise.all(o).then(Dt).catch(Dt)}invalidateQueries(t,n,r){const[s,i]=nr(t,n,r);return ke.batch(()=>{var o,l;if(this.queryCache.findAll(s).forEach(u=>{u.invalidate()}),s.refetchType==="none")return Promise.resolve();const a={...s,type:(o=(l=s.refetchType)!=null?l:s.type)!=null?o:"active"};return this.refetchQueries(a,i)})}refetchQueries(t,n,r){const[s,i]=nr(t,n,r),o=ke.batch(()=>this.queryCache.findAll(s).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:s.refetchPage}})}));let l=Promise.all(o).then(Dt);return i!=null&&i.throwOnError||(l=l.catch(Dt)),l}fetchQuery(t,n,r){const s=Ts(t,n,r),i=this.defaultQueryOptions(s);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Dt).catch(Dt)}fetchInfiniteQuery(t,n,r){const s=Ts(t,n,r);return s.behavior=$d(),this.fetchQuery(s)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Dt).catch(Dt)}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(s=>qr(t)===qr(s.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>jl(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(s=>qr(t)===qr(s.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>jl(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=dp(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 u1 extends pi{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),Um(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bd(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bd(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,s=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Ol(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 i=this.hasListeners();i&&Hm(this.currentQuery,s,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==s||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==s||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 vE(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(Dt)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),go||this.currentResult.isStale||!Ld(this.options.staleTime))return;const n=Z0(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,!(go||this.options.enabled===!1||!Ld(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Rl.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,s=this.options,i=this.currentResult,o=this.currentResultState,l=this.currentResultOptions,a=t!==r,u=a?t.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:p,error:h,errorUpdatedAt:v,fetchStatus:w,status:b}=f,g=!1,m=!1,y;if(n._optimisticResults){const j=this.hasListeners(),P=!j&&Um(t,n),M=j&&Hm(t,r,n,s);(P||M)&&(w=ju(t.options.networkMode)?"fetching":"paused",p||(b="loading")),n._optimisticResults==="isRestoring"&&(w="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&b!=="error")y=c.data,p=c.dataUpdatedAt,b=c.status,g=!0;else if(n.select&&typeof f.data<"u")if(i&&f.data===(o==null?void 0:o.data)&&n.select===this.selectFn)y=this.selectResult;else try{this.selectFn=n.select,y=n.select(f.data),y=Fd(i==null?void 0:i.data,y,n),this.selectResult=y,this.selectError=null}catch(j){this.selectError=j}else y=f.data;if(typeof n.placeholderData<"u"&&typeof y>"u"&&b==="loading"){let j;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData))j=i.data;else if(j=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof j<"u")try{j=n.select(j),this.selectError=null}catch(P){this.selectError=P}typeof j<"u"&&(b="success",y=Fd(i==null?void 0:i.data,j,n),m=!0)}this.selectError&&(h=this.selectError,y=this.selectResult,v=Date.now(),b="error");const x=w==="fetching",C=b==="loading",T=b==="error";return{status:b,fetchStatus:w,isLoading:C,isSuccess:b==="success",isError:T,isInitialLoading:C&&x,data:y,dataUpdatedAt:p,error:h,errorUpdatedAt:v,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:x,isRefetching:x&&!C,isLoadingError:T&&f.dataUpdatedAt===0,isPaused:w==="paused",isPlaceholderData:m,isPreviousData:g,isRefetchError:T&&f.dataUpdatedAt!==0,isStale:pp(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,Ol(r,n))return;this.currentResult=r;const s={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!this.trackedProps.size)return!0;const a=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(s.listeners=!0),this.notify({...s,...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"&&!Za(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ke.batch(()=>{if(t.onSuccess){var n,r,s,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(s=(i=this.options).onSettled)==null||s.call(i,this.currentResult.data,null)}else if(t.onError){var o,l,a,u;(o=(l=this.options).onError)==null||o.call(l,this.currentResult.error),(a=(u=this.options).onSettled)==null||a.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 gE(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Um(e,t){return gE(e,t)||e.state.dataUpdatedAt>0&&Bd(e,t,t.refetchOnMount)}function Bd(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&pp(e,t)}return!1}function Hm(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&pp(e,n)}function pp(e,t){return e.isStaleByTime(t.staleTime)}function vE(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Ol(e.getCurrentResult(),t)}class yE extends u1{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:$d()},n)}getOptimisticResult(t){return t.behavior=$d(),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,s,i,o,l,a;const{state:u}=t,c=super.createResult(t,n),{isFetching:f,isRefetching:p}=c,h=f&&((r=u.fetchMeta)==null||(s=r.fetchMore)==null?void 0:s.direction)==="forward",v=f&&((i=u.fetchMeta)==null||(o=i.fetchMore)==null?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:pE(n,(l=u.data)==null?void 0:l.pages),hasPreviousPage:hE(n,(a=u.data)==null?void 0:a.pages),isFetchingNextPage:h,isFetchingPreviousPage:v,isRefetching:p&&!h&&!v}}}let wE=class extends pi{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),Ol(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:a1(),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){ke.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,s,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(s=(i=this.mutateOptions).onSettled)==null||s.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,l,a,u;(o=(l=this.mutateOptions).onError)==null||o.call(l,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(a=(u=this.mutateOptions).onSettled)==null||a.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)})})}};var c1={exports:{}},At={},d1={exports:{}},f1={};/**
|
|
19
19
|
* @license React
|
|
20
20
|
* scheduler.production.min.js
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,config
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/(function(e){function t(
|
|
26
|
+
*/(function(e){function t(_,F){var B=_.length;_.push(F);e:for(;0<B;){var J=B-1>>>1,Z=_[J];if(0<s(Z,F))_[J]=F,_[B]=Z,B=J;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var F=_[0],B=_.pop();if(B!==F){_[0]=B;e:for(var J=0,Z=_.length,le=Z>>>1;J<le;){var ne=2*(J+1)-1,ue=_[ne],fe=ne+1,we=_[fe];if(0>s(ue,B))fe<Z&&0>s(we,ue)?(_[J]=we,_[fe]=B,J=fe):(_[J]=ue,_[ne]=B,J=ne);else if(fe<Z&&0>s(we,B))_[J]=we,_[fe]=B,J=fe;else break e}}return F}function s(_,F){var B=_.sortIndex-F.sortIndex;return B!==0?B:_.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,p=3,h=!1,v=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(_){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=_)r(u),F.sortIndex=F.expirationTime,t(a,F);else break;F=n(u)}}function x(_){if(w=!1,y(_),!v)if(n(a)!==null)v=!0,A(C);else{var F=n(u);F!==null&&$(x,F.startTime-_)}}function C(_,F){v=!1,w&&(w=!1,g(j),j=-1),h=!0;var B=p;try{for(y(F),f=n(a);f!==null&&(!(f.expirationTime>F)||_&&!N());){var J=f.callback;if(typeof J=="function"){f.callback=null,p=f.priorityLevel;var Z=J(f.expirationTime<=F);F=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===n(a)&&r(a),y(F)}else r(a);f=n(a)}if(f!==null)var le=!0;else{var ne=n(u);ne!==null&&$(x,ne.startTime-F),le=!1}return le}finally{f=null,p=B,h=!1}}var T=!1,E=null,j=-1,P=5,M=-1;function N(){return!(e.unstable_now()-M<P)}function R(){if(E!==null){var _=e.unstable_now();M=_;var F=!0;try{F=E(!0,_)}finally{F?I():(T=!1,E=null)}}else T=!1}var I;if(typeof m=="function")I=function(){m(R)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,k=L.port2;L.port1.onmessage=R,I=function(){k.postMessage(null)}}else I=function(){b(R,0)};function A(_){E=_,T||(T=!0,I())}function $(_,F){j=b(function(){_(e.unstable_now())},F)}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(_){_.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,A(C))},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(_){switch(p){case 1:case 2:case 3:var F=3;break;default:F=p}var B=p;p=F;try{return _()}finally{p=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,F){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var B=p;p=_;try{return F()}finally{p=B}},e.unstable_scheduleCallback=function(_,F,B){var J=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?J+B:J):B=J,_){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=B+Z,_={id:c++,callback:F,priorityLevel:_,startTime:B,expirationTime:Z,sortIndex:-1},B>J?(_.sortIndex=B,t(u,_),n(a)===null&&_===n(u)&&(w?(g(j),j=-1):w=!0,$(x,B-J))):(_.sortIndex=Z,t(a,_),v||h||(v=!0,A(C))),_},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(_){var F=p;return function(){var B=p;p=F;try{return _.apply(this,arguments)}finally{p=B}}}})(f1);d1.exports=f1;var xE=d1.exports;/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-dom.production.min.js
|
|
29
29
|
*
|
|
@@ -31,14 +31,14 @@ var jy=Object.defineProperty;var Ty=(e,t,n)=>t in e?jy(e,t,{enumerable:!0,config
|
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var
|
|
35
|
-
`+
|
|
34
|
+
*/var p1=S,Rt=xE;function U(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 h1=new Set,vo={};function ds(e,t){Js(e,t),Js(e+"Capture",t)}function Js(e,t){for(vo[e]=t,e=0;e<t.length;e++)h1.add(t[e])}var Hn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vd=Object.prototype.hasOwnProperty,bE=/^[: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]*$/,qm={},Wm={};function SE(e){return Vd.call(Wm,e)?!0:Vd.call(qm,e)?!1:bE.test(e)?Wm[e]=!0:(qm[e]=!0,!1)}function CE(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 EE(e,t,n,r){if(t===null||typeof t>"u"||CE(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 it(e,t,n,r,s,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var He={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){He[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];He[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){He[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){He[e]=new it(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){He[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){He[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){He[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){He[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){He[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var hp=/[\-:]([a-z])/g;function mp(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(hp,mp);He[t]=new it(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(hp,mp);He[t]=new it(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(hp,mp);He[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});He.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){He[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});function gp(e,t,n,r){var s=He.hasOwnProperty(t)?He[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(EE(t,n,s,r)&&(n=null),r||s===null?SE(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Yn=p1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ca=Symbol.for("react.element"),ks=Symbol.for("react.portal"),Ps=Symbol.for("react.fragment"),vp=Symbol.for("react.strict_mode"),Ud=Symbol.for("react.profiler"),m1=Symbol.for("react.provider"),g1=Symbol.for("react.context"),yp=Symbol.for("react.forward_ref"),Hd=Symbol.for("react.suspense"),qd=Symbol.for("react.suspense_list"),wp=Symbol.for("react.memo"),rr=Symbol.for("react.lazy"),v1=Symbol.for("react.offscreen"),Qm=Symbol.iterator;function Ei(e){return e===null||typeof e!="object"?null:(e=Qm&&e[Qm]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Object.assign,Ac;function Bi(e){if(Ac===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ac=t&&t[1]||""}return`
|
|
35
|
+
`+Ac+e}var Ic=!1;function _c(e,t){if(!e||Ic)return"";Ic=!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 s=u.stack.split(`
|
|
36
36
|
`),i=r.stack.split(`
|
|
37
|
-
`),o=s.length-1,
|
|
38
|
-
`+s[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{Cl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ws(e):""}function xw(e){switch(e.tag){case 5:return ws(e.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function Ru(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 yr:return"Fragment";case vr:return"Portal";case bu:return"Profiler";case Qc:return"StrictMode";case Cu:return"Suspense";case Eu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hm:return(e.displayName||"Context")+".Consumer";case Vm:return(e._context.displayName||"Context")+".Provider";case Wc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kc:return t=e.displayName||null,t!==null?t:Ru(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return Ru(e(t))}catch{}}return null}function Sw(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 Ru(t);case 8:return t===Qc?"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 _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bw(e){var t=Qm(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 s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.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 Vi(e){e._valueTracker||(e._valueTracker=bw(e))}function Wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qm(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ho(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 ku(e,t){var n=t.checked;return ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(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 Km(e,t){t=t.checked,t!=null&&qc(e,"checked",t,!1)}function Pu(e,t){Km(e,t);var n=_n(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")?Ou(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ou(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Xf(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 Ou(e,t,n){(t!=="number"||Ho(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function jr(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_n(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Nu(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Yf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(xs(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_n(n)}}function Gm(e,t){var n=_n(t.value),r=_n(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 Zf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xm(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 ju(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xm(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Hi,Ym=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Hi=Hi||document.createElement("div"),Hi.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Hi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ws(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ks={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},Cw=["Webkit","ms","Moz","O"];Object.keys(ks).forEach(function(e){Cw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ks[t]=ks[e]})});function Zm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ks.hasOwnProperty(e)&&ks[e]?(""+t).trim():t+"px"}function Jm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Zm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var Ew=ie({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 Tu(e,t){if(t){if(Ew[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function _u(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 Iu=null;function Gc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Au=null,Tr=null,_r=null;function Jf(e){if(e=Ri(e)){if(typeof Au!="function")throw Error(T(280));var t=e.stateNode;t&&(t=La(t),Au(e.stateNode,e.type,t))}}function e1(e){Tr?_r?_r.push(e):_r=[e]:Tr=e}function t1(){if(Tr){var e=Tr,t=_r;if(_r=Tr=null,Jf(e),t)for(e=0;e<t.length;e++)Jf(t[e])}}function n1(e,t){return e(t)}function r1(){}var Rl=!1;function s1(e,t,n){if(Rl)return e(t,n);Rl=!0;try{return n1(e,t,n)}finally{Rl=!1,(Tr!==null||_r!==null)&&(r1(),t1())}}function Ks(e,t){var n=e.stateNode;if(n===null)return null;var r=La(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(T(231,t,typeof n));return n}var Lu=!1;if(en)try{var os={};Object.defineProperty(os,"passive",{get:function(){Lu=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{Lu=!1}function Rw(e,t,n,r,s,i,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ps=!1,qo=null,Qo=!1,Mu=null,kw={onError:function(e){Ps=!0,qo=e}};function Pw(e,t,n,r,s,i,o,a,l){Ps=!1,qo=null,Rw.apply(kw,arguments)}function Ow(e,t,n,r,s,i,o,a,l){if(Pw.apply(this,arguments),Ps){if(Ps){var u=qo;Ps=!1,qo=null}else throw Error(T(198));Qo||(Qo=!0,Mu=u)}}function lr(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 i1(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 eh(e){if(lr(e)!==e)throw Error(T(188))}function Nw(e){var t=e.alternate;if(!t){if(t=lr(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return eh(s),e;if(i===r)return eh(s),t;i=i.sibling}throw Error(T(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,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){for(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)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function o1(e){return e=Nw(e),e!==null?a1(e):null}function a1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=a1(e);if(t!==null)return t;e=e.sibling}return null}var l1=nt.unstable_scheduleCallback,th=nt.unstable_cancelCallback,jw=nt.unstable_shouldYield,Tw=nt.unstable_requestPaint,ue=nt.unstable_now,_w=nt.unstable_getCurrentPriorityLevel,Xc=nt.unstable_ImmediatePriority,u1=nt.unstable_UserBlockingPriority,Wo=nt.unstable_NormalPriority,Iw=nt.unstable_LowPriority,c1=nt.unstable_IdlePriority,Ta=null,zt=null;function Aw(e){if(zt&&typeof zt.onCommitFiberRoot=="function")try{zt.onCommitFiberRoot(Ta,e,void 0,(e.current.flags&128)===128)}catch{}}var kt=Math.clz32?Math.clz32:Dw,Lw=Math.log,Mw=Math.LN2;function Dw(e){return e>>>=0,e===0?32:31-(Lw(e)/Mw|0)|0}var qi=64,Qi=4194304;function Ss(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 Ko(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~s;a!==0?r=Ss(a):(i&=o,i!==0&&(r=Ss(i)))}else o=n&~s,o!==0?r=Ss(o):i!==0&&(r=Ss(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&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-kt(t),s=1<<n,r|=e[n],t&=~s;return r}function Fw(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 $w(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-kt(i),a=1<<o,l=s[o];l===-1?(!(a&n)||a&r)&&(s[o]=Fw(a,t)):l<=t&&(e.expiredLanes|=a),i&=~a}}function Du(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function d1(){var e=qi;return qi<<=1,!(qi&4194240)&&(qi=64),e}function kl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ci(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-kt(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 s=31-kt(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Yc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kt(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Z=0;function f1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var h1,Zc,p1,m1,g1,Fu=!1,Wi=[],Cn=null,En=null,Rn=null,Gs=new Map,Xs=new Map,mn=[],Uw="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 nh(e,t){switch(e){case"focusin":case"focusout":Cn=null;break;case"dragenter":case"dragleave":En=null;break;case"mouseover":case"mouseout":Rn=null;break;case"pointerover":case"pointerout":Gs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xs.delete(t.pointerId)}}function as(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Ri(t),t!==null&&Zc(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Bw(e,t,n,r,s){switch(t){case"focusin":return Cn=as(Cn,e,t,n,r,s),!0;case"dragenter":return En=as(En,e,t,n,r,s),!0;case"mouseover":return Rn=as(Rn,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return Gs.set(i,as(Gs.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,Xs.set(i,as(Xs.get(i)||null,e,t,n,r,s)),!0}return!1}function v1(e){var t=Wn(e.target);if(t!==null){var n=lr(t);if(n!==null){if(t=n.tag,t===13){if(t=i1(n),t!==null){e.blockedOn=t,g1(e.priority,function(){p1(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 vo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$u(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Iu=r,n.target.dispatchEvent(r),Iu=null}else return t=Ri(n),t!==null&&Zc(t),e.blockedOn=n,!1;t.shift()}return!0}function rh(e,t,n){vo(e)&&n.delete(t)}function Vw(){Fu=!1,Cn!==null&&vo(Cn)&&(Cn=null),En!==null&&vo(En)&&(En=null),Rn!==null&&vo(Rn)&&(Rn=null),Gs.forEach(rh),Xs.forEach(rh)}function ls(e,t){e.blockedOn===t&&(e.blockedOn=null,Fu||(Fu=!0,nt.unstable_scheduleCallback(nt.unstable_NormalPriority,Vw)))}function Ys(e){function t(s){return ls(s,e)}if(0<Wi.length){ls(Wi[0],e);for(var n=1;n<Wi.length;n++){var r=Wi[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Cn!==null&&ls(Cn,e),En!==null&&ls(En,e),Rn!==null&&ls(Rn,e),Gs.forEach(t),Xs.forEach(t),n=0;n<mn.length;n++)r=mn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<mn.length&&(n=mn[0],n.blockedOn===null);)v1(n),n.blockedOn===null&&mn.shift()}var Ir=on.ReactCurrentBatchConfig,Go=!0;function Hw(e,t,n,r){var s=Z,i=Ir.transition;Ir.transition=null;try{Z=1,Jc(e,t,n,r)}finally{Z=s,Ir.transition=i}}function qw(e,t,n,r){var s=Z,i=Ir.transition;Ir.transition=null;try{Z=4,Jc(e,t,n,r)}finally{Z=s,Ir.transition=i}}function Jc(e,t,n,r){if(Go){var s=$u(e,t,n,r);if(s===null)Ml(e,t,r,Xo,n),nh(e,r);else if(Bw(s,e,t,n,r))r.stopPropagation();else if(nh(e,r),t&4&&-1<Uw.indexOf(e)){for(;s!==null;){var i=Ri(s);if(i!==null&&h1(i),i=$u(e,t,n,r),i===null&&Ml(e,t,r,Xo,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Ml(e,t,r,null,n)}}var Xo=null;function $u(e,t,n,r){if(Xo=null,e=Gc(r),e=Wn(e),e!==null)if(t=lr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=i1(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 Xo=e,null}function y1(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(_w()){case Xc:return 1;case u1:return 4;case Wo:case Iw:return 16;case c1:return 536870912;default:return 16}default:return 16}}var yn=null,ed=null,yo=null;function w1(){if(yo)return yo;var e,t=ed,n=t.length,r,s="value"in yn?yn.value:yn.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return yo=s.slice(e,1<r?1-r:void 0)}function wo(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 Ki(){return!0}function sh(){return!1}function st(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ki:sh,this.isPropagationStopped=sh,this}return ie(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=Ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),t}var Yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=st(Yr),Ei=ie({},Yr,{view:0,detail:0}),Qw=st(Ei),Pl,Ol,us,_a=ie({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nd,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!==us&&(us&&e.type==="mousemove"?(Pl=e.screenX-us.screenX,Ol=e.screenY-us.screenY):Ol=Pl=0,us=e),Pl)},movementY:function(e){return"movementY"in e?e.movementY:Ol}}),ih=st(_a),Ww=ie({},_a,{dataTransfer:0}),Kw=st(Ww),Gw=ie({},Ei,{relatedTarget:0}),Nl=st(Gw),Xw=ie({},Yr,{animationName:0,elapsedTime:0,pseudoElement:0}),Yw=st(Xw),Zw=ie({},Yr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jw=st(Zw),ex=ie({},Yr,{data:0}),oh=st(ex),tx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nx={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"},rx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rx[e])?!!t[e]:!1}function nd(){return sx}var ix=ie({},Ei,{key:function(e){if(e.key){var t=tx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nd,charCode:function(e){return e.type==="keypress"?wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ox=st(ix),ax=ie({},_a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=st(ax),lx=ie({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nd}),ux=st(lx),cx=ie({},Yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),dx=st(cx),fx=ie({},_a,{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}),hx=st(fx),px=[9,13,27,32],rd=en&&"CompositionEvent"in window,Os=null;en&&"documentMode"in document&&(Os=document.documentMode);var mx=en&&"TextEvent"in window&&!Os,x1=en&&(!rd||Os&&8<Os&&11>=Os),lh=String.fromCharCode(32),uh=!1;function S1(e,t){switch(e){case"keyup":return px.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function b1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wr=!1;function gx(e,t){switch(e){case"compositionend":return b1(t);case"keypress":return t.which!==32?null:(uh=!0,lh);case"textInput":return e=t.data,e===lh&&uh?null:e;default:return null}}function vx(e,t){if(wr)return e==="compositionend"||!rd&&S1(e,t)?(e=w1(),yo=ed=yn=null,wr=!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 x1&&t.locale!=="ko"?null:t.data;default:return null}}var yx={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 ch(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yx[e.type]:t==="textarea"}function C1(e,t,n,r){e1(r),t=Yo(t,"onChange"),0<t.length&&(n=new td("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ns=null,Zs=null;function wx(e){A1(e,0)}function Ia(e){var t=br(e);if(Wm(t))return e}function xx(e,t){if(e==="change")return t}var E1=!1;if(en){var jl;if(en){var Tl="oninput"in document;if(!Tl){var dh=document.createElement("div");dh.setAttribute("oninput","return;"),Tl=typeof dh.oninput=="function"}jl=Tl}else jl=!1;E1=jl&&(!document.documentMode||9<document.documentMode)}function fh(){Ns&&(Ns.detachEvent("onpropertychange",R1),Zs=Ns=null)}function R1(e){if(e.propertyName==="value"&&Ia(Zs)){var t=[];C1(t,Zs,e,Gc(e)),s1(wx,t)}}function Sx(e,t,n){e==="focusin"?(fh(),Ns=t,Zs=n,Ns.attachEvent("onpropertychange",R1)):e==="focusout"&&fh()}function bx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ia(Zs)}function Cx(e,t){if(e==="click")return Ia(t)}function Ex(e,t){if(e==="input"||e==="change")return Ia(t)}function Rx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Rx;function Js(e,t){if(Ot(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 s=n[r];if(!Su.call(t,s)||!Ot(e[s],t[s]))return!1}return!0}function hh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ph(e,t){var n=hh(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=hh(n)}}function k1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?k1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function P1(){for(var e=window,t=Ho();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ho(e.document)}return t}function sd(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 kx(e){var t=P1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&k1(n.ownerDocument.documentElement,n)){if(r!==null&&sd(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 s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=ph(n,i);var o=ph(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>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 Px=en&&"documentMode"in document&&11>=document.documentMode,xr=null,zu=null,js=null,Uu=!1;function mh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Uu||xr==null||xr!==Ho(r)||(r=xr,"selectionStart"in r&&sd(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}),js&&Js(js,r)||(js=r,r=Yo(zu,"onSelect"),0<r.length&&(t=new td("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function Gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:Gi("Animation","AnimationEnd"),animationiteration:Gi("Animation","AnimationIteration"),animationstart:Gi("Animation","AnimationStart"),transitionend:Gi("Transition","TransitionEnd")},_l={},O1={};en&&(O1=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);function Aa(e){if(_l[e])return _l[e];if(!Sr[e])return e;var t=Sr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in O1)return _l[e]=t[n];return e}var N1=Aa("animationend"),j1=Aa("animationiteration"),T1=Aa("animationstart"),_1=Aa("transitionend"),I1=new Map,gh="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){I1.set(e,t),ar(t,[e])}for(var Il=0;Il<gh.length;Il++){var Al=gh[Il],Ox=Al.toLowerCase(),Nx=Al[0].toUpperCase()+Al.slice(1);Mn(Ox,"on"+Nx)}Mn(N1,"onAnimationEnd");Mn(j1,"onAnimationIteration");Mn(T1,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(_1,"onTransitionEnd");$r("onMouseEnter",["mouseout","mouseover"]);$r("onMouseLeave",["mouseout","mouseover"]);$r("onPointerEnter",["pointerout","pointerover"]);$r("onPointerLeave",["pointerout","pointerover"]);ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ar("onBeforeInput",["compositionend","keypress","textInput","paste"]);ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bs="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(" "),jx=new Set("cancel close invalid load scroll toggle".split(" ").concat(bs));function vh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ow(r,t,void 0,e),e.currentTarget=null}function A1(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=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!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}else for(o=0;o<r.length;o++){if(a=r[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&s.isPropagationStopped())break e;vh(s,a,u),i=l}}}if(Qo)throw e=Mu,Qo=!1,Mu=null,e}function ee(e,t){var n=t[Qu];n===void 0&&(n=t[Qu]=new Set);var r=e+"__bubble";n.has(r)||(L1(t,e,2,!1),n.add(r))}function Ll(e,t,n){var r=0;t&&(r|=4),L1(n,e,r,t)}var Xi="_reactListening"+Math.random().toString(36).slice(2);function ei(e){if(!e[Xi]){e[Xi]=!0,Bm.forEach(function(n){n!=="selectionchange"&&(jx.has(n)||Ll(n,!1,e),Ll(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xi]||(t[Xi]=!0,Ll("selectionchange",!1,t))}}function L1(e,t,n,r){switch(y1(t)){case 1:var s=Hw;break;case 4:s=qw;break;default:s=Jc}n=s.bind(null,t,n,e),s=void 0,!Lu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ml(e,t,n,r,s){var i=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===s||a.nodeType===8&&a.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===s||l.nodeType===8&&l.parentNode===s))return;o=o.return}for(;a!==null;){if(o=Wn(a),o===null)return;if(l=o.tag,l===5||l===6){r=i=o;continue e}a=a.parentNode}}r=r.return}s1(function(){var u=i,c=Gc(n),d=[];e:{var h=I1.get(e);if(h!==void 0){var p=td,m=e;switch(e){case"keypress":if(wo(n)===0)break e;case"keydown":case"keyup":p=ox;break;case"focusin":m="focus",p=Nl;break;case"focusout":m="blur",p=Nl;break;case"beforeblur":case"afterblur":p=Nl;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":p=ih;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Kw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=ux;break;case N1:case j1:case T1:p=Yw;break;case _1:p=dx;break;case"scroll":p=Qw;break;case"wheel":p=hx;break;case"copy":case"cut":case"paste":p=Jw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ah}var y=(t&4)!==0,S=!y&&e==="scroll",g=y?h!==null?h+"Capture":null:h;y=[];for(var v=u,w;v!==null;){w=v;var b=w.stateNode;if(w.tag===5&&b!==null&&(w=b,g!==null&&(b=Ks(v,g),b!=null&&y.push(ti(v,b,w)))),S)break;v=v.return}0<y.length&&(h=new p(h,m,null,n,c),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Iu&&(m=n.relatedTarget||n.fromElement)&&(Wn(m)||m[tn]))break e;if((p||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Wn(m):null,m!==null&&(S=lr(m),m!==S||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(y=ih,b="onMouseLeave",g="onMouseEnter",v="mouse",(e==="pointerout"||e==="pointerover")&&(y=ah,b="onPointerLeave",g="onPointerEnter",v="pointer"),S=p==null?h:br(p),w=m==null?h:br(m),h=new y(b,v+"leave",p,n,c),h.target=S,h.relatedTarget=w,b=null,Wn(c)===u&&(y=new y(g,v+"enter",m,n,c),y.target=w,y.relatedTarget=S,b=y),S=b,p&&m)t:{for(y=p,g=m,v=0,w=y;w;w=hr(w))v++;for(w=0,b=g;b;b=hr(b))w++;for(;0<v-w;)y=hr(y),v--;for(;0<w-v;)g=hr(g),w--;for(;v--;){if(y===g||g!==null&&y===g.alternate)break t;y=hr(y),g=hr(g)}y=null}else y=null;p!==null&&yh(d,h,p,y,!1),m!==null&&S!==null&&yh(d,S,m,y,!0)}}e:{if(h=u?br(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var E=xx;else if(ch(h))if(E1)E=Ex;else{E=bx;var R=Sx}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(E=Cx);if(E&&(E=E(e,u))){C1(d,E,n,c);break e}R&&R(e,h,u),e==="focusout"&&(R=h._wrapperState)&&R.controlled&&h.type==="number"&&Ou(h,"number",h.value)}switch(R=u?br(u):window,e){case"focusin":(ch(R)||R.contentEditable==="true")&&(xr=R,zu=u,js=null);break;case"focusout":js=zu=xr=null;break;case"mousedown":Uu=!0;break;case"contextmenu":case"mouseup":case"dragend":Uu=!1,mh(d,n,c);break;case"selectionchange":if(Px)break;case"keydown":case"keyup":mh(d,n,c)}var k;if(rd)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else wr?S1(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(x1&&n.locale!=="ko"&&(wr||P!=="onCompositionStart"?P==="onCompositionEnd"&&wr&&(k=w1()):(yn=c,ed="value"in yn?yn.value:yn.textContent,wr=!0)),R=Yo(u,P),0<R.length&&(P=new oh(P,e,null,n,c),d.push({event:P,listeners:R}),k?P.data=k:(k=b1(n),k!==null&&(P.data=k)))),(k=mx?gx(e,n):vx(e,n))&&(u=Yo(u,"onBeforeInput"),0<u.length&&(c=new oh("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=k))}A1(d,t)})}function ti(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yo(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=Ks(e,n),i!=null&&r.unshift(ti(e,i,s)),i=Ks(e,t),i!=null&&r.push(ti(e,i,s))),e=e.return}return r}function hr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yh(e,t,n,r,s){for(var i=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,s?(l=Ks(n,i),l!=null&&o.unshift(ti(n,l,a))):s||(l=Ks(n,i),l!=null&&o.push(ti(n,l,a)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Tx=/\r\n?/g,_x=/\u0000|\uFFFD/g;function wh(e){return(typeof e=="string"?e:""+e).replace(Tx,`
|
|
39
|
-
`).replace(_x,"")}function Yi(e,t,n){if(t=wh(t),wh(e)!==t&&n)throw Error(T(425))}function Zo(){}var Bu=null,Vu=null;function Hu(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 qu=typeof setTimeout=="function"?setTimeout:void 0,Ix=typeof clearTimeout=="function"?clearTimeout:void 0,xh=typeof Promise=="function"?Promise:void 0,Ax=typeof queueMicrotask=="function"?queueMicrotask:typeof xh<"u"?function(e){return xh.resolve(null).then(e).catch(Lx)}:qu;function Lx(e){setTimeout(function(){throw e})}function Dl(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),Ys(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);Ys(t)}function kn(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 Sh(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 Zr=Math.random().toString(36).slice(2),Ft="__reactFiber$"+Zr,ni="__reactProps$"+Zr,tn="__reactContainer$"+Zr,Qu="__reactEvents$"+Zr,Mx="__reactListeners$"+Zr,Dx="__reactHandles$"+Zr;function Wn(e){var t=e[Ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tn]||n[Ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sh(e);e!==null;){if(n=e[Ft])return n;e=Sh(e)}return t}e=n,n=e.parentNode}return null}function Ri(e){return e=e[Ft]||e[tn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function br(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function La(e){return e[ni]||null}var Wu=[],Cr=-1;function Dn(e){return{current:e}}function te(e){0>Cr||(e.current=Wu[Cr],Wu[Cr]=null,Cr--)}function J(e,t){Cr++,Wu[Cr]=e.current,e.current=t}var In={},Oe=Dn(In),qe=Dn(!1),Jn=In;function zr(e,t){var n=e.type.contextTypes;if(!n)return In;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function Qe(e){return e=e.childContextTypes,e!=null}function Jo(){te(qe),te(Oe)}function bh(e,t,n){if(Oe.current!==In)throw Error(T(168));J(Oe,t),J(qe,n)}function M1(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(T(108,Sw(e)||"Unknown",s));return ie({},n,r)}function ea(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||In,Jn=Oe.current,J(Oe,e),J(qe,qe.current),!0}function Ch(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=M1(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,te(qe),te(Oe),J(Oe,e)):te(qe),J(qe,n)}var Gt=null,Ma=!1,Fl=!1;function D1(e){Gt===null?Gt=[e]:Gt.push(e)}function Fx(e){Ma=!0,D1(e)}function Fn(){if(!Fl&&Gt!==null){Fl=!0;var e=0,t=Z;try{var n=Gt;for(Z=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Gt=null,Ma=!1}catch(s){throw Gt!==null&&(Gt=Gt.slice(e+1)),l1(Xc,Fn),s}finally{Z=t,Fl=!1}}return null}var Er=[],Rr=0,ta=null,na=0,lt=[],ut=0,er=null,Xt=1,Yt="";function Vn(e,t){Er[Rr++]=na,Er[Rr++]=ta,ta=e,na=t}function F1(e,t,n){lt[ut++]=Xt,lt[ut++]=Yt,lt[ut++]=er,er=e;var r=Xt;e=Yt;var s=32-kt(r)-1;r&=~(1<<s),n+=1;var i=32-kt(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,Xt=1<<32-kt(t)+s|n<<s|r,Yt=i+e}else Xt=1<<i|n<<s|r,Yt=e}function id(e){e.return!==null&&(Vn(e,1),F1(e,1,0))}function od(e){for(;e===ta;)ta=Er[--Rr],Er[Rr]=null,na=Er[--Rr],Er[Rr]=null;for(;e===er;)er=lt[--ut],lt[ut]=null,Yt=lt[--ut],lt[ut]=null,Xt=lt[--ut],lt[ut]=null}var et=null,Ye=null,ne=!1,Ct=null;function $1(e,t){var n=ht(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 Eh(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,et=e,Ye=kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,et=e,Ye=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=er!==null?{id:Xt,overflow:Yt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ht(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,et=e,Ye=null,!0):!1;default:return!1}}function Ku(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Gu(e){if(ne){var t=Ye;if(t){var n=t;if(!Eh(e,t)){if(Ku(e))throw Error(T(418));t=kn(n.nextSibling);var r=et;t&&Eh(e,t)?$1(r,n):(e.flags=e.flags&-4097|2,ne=!1,et=e)}}else{if(Ku(e))throw Error(T(418));e.flags=e.flags&-4097|2,ne=!1,et=e}}}function Rh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;et=e}function Zi(e){if(e!==et)return!1;if(!ne)return Rh(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Hu(e.type,e.memoizedProps)),t&&(t=Ye)){if(Ku(e))throw z1(),Error(T(418));for(;t;)$1(e,t),t=kn(t.nextSibling)}if(Rh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ye=kn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ye=null}}else Ye=et?kn(e.stateNode.nextSibling):null;return!0}function z1(){for(var e=Ye;e;)e=kn(e.nextSibling)}function Ur(){Ye=et=null,ne=!1}function ad(e){Ct===null?Ct=[e]:Ct.push(e)}var $x=on.ReactCurrentBatchConfig;function St(e,t){if(e&&e.defaultProps){t=ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ra=Dn(null),sa=null,kr=null,ld=null;function ud(){ld=kr=sa=null}function cd(e){var t=ra.current;te(ra),e._currentValue=t}function Xu(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 Ar(e,t){sa=e,ld=kr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(He=!0),e.firstContext=null)}function mt(e){var t=e._currentValue;if(ld!==e)if(e={context:e,memoizedValue:t,next:null},kr===null){if(sa===null)throw Error(T(308));kr=e,sa.dependencies={lanes:0,firstContext:e}}else kr=kr.next=e;return t}var Kn=null;function dd(e){Kn===null?Kn=[e]:Kn.push(e)}function U1(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,dd(t)):(n.next=s.next,s.next=n),t.interleaved=n,nn(e,r)}function nn(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 pn=!1;function fd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B1(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 Jt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,nn(e,n)}return s=r.interleaved,s===null?(t.next=t,dd(r)):(t.next=s.next,s.next=t),r.interleaved=t,nn(e,n)}function xo(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,Yc(e,n)}}function kh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=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};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,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 ia(e,t,n,r){var s=e.updateQueue;pn=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?i=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(i!==null){var d=s.baseState;o=0,c=u=l=null,a=i;do{var h=a.lane,p=a.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var m=e,y=a;switch(h=t,p=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(p,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,h=typeof m=="function"?m.call(p,d,h):m,h==null)break e;d=ie({},d,h);break e;case 2:pn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=s.effects,h===null?s.effects=[a]:h.push(a))}else p={eventTime:p,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=p,l=d):c=c.next=p,o|=h;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;h=a,a=h.next,h.next=null,s.lastBaseUpdate=h,s.shared.pending=null}}while(1);if(c===null&&(l=d),s.baseState=l,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);nr|=o,e.lanes=o,e.memoizedState=d}}function Ph(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(T(191,s));s.call(r)}}}var V1=new Um.Component().refs;function Yu(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Da={isMounted:function(e){return(e=e._reactInternals)?lr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ae(),s=Nn(e),i=Jt(r,s);i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,s),t!==null&&(Pt(t,e,s,r),xo(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ae(),s=Nn(e),i=Jt(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Pn(e,i,s),t!==null&&(Pt(t,e,s,r),xo(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ae(),r=Nn(e),s=Jt(n,r);s.tag=2,t!=null&&(s.callback=t),t=Pn(e,s,r),t!==null&&(Pt(t,e,r,n),xo(t,e,r))}};function Oh(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Js(n,r)||!Js(s,i):!0}function H1(e,t,n){var r=!1,s=In,i=t.contextType;return typeof i=="object"&&i!==null?i=mt(i):(s=Qe(t)?Jn:Oe.current,r=t.contextTypes,i=(r=r!=null)?zr(e,s):In),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Da,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function Nh(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&&Da.enqueueReplaceState(t,t.state,null)}function Zu(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=V1,fd(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=mt(i):(i=Qe(t)?Jn:Oe.current,s.context=zr(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Yu(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Da.enqueueReplaceState(s,s.state,null),ia(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function cs(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(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=s.refs;a===V1&&(a=s.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Ji(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function jh(e){var t=e._init;return t(e._payload)}function q1(e){function t(g,v){if(e){var w=g.deletions;w===null?(g.deletions=[v],g.flags|=16):w.push(v)}}function n(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function r(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function s(g,v){return g=jn(g,v),g.index=0,g.sibling=null,g}function i(g,v,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<v?(g.flags|=2,v):w):(g.flags|=2,v)):(g.flags|=1048576,v)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function a(g,v,w,b){return v===null||v.tag!==6?(v=ql(w,g.mode,b),v.return=g,v):(v=s(v,w),v.return=g,v)}function l(g,v,w,b){var E=w.type;return E===yr?c(g,v,w.props.children,b,w.key):v!==null&&(v.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===hn&&jh(E)===v.type)?(b=s(v,w.props),b.ref=cs(g,v,w),b.return=g,b):(b=ko(w.type,w.key,w.props,null,g.mode,b),b.ref=cs(g,v,w),b.return=g,b)}function u(g,v,w,b){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=Ql(w,g.mode,b),v.return=g,v):(v=s(v,w.children||[]),v.return=g,v)}function c(g,v,w,b,E){return v===null||v.tag!==7?(v=Zn(w,g.mode,b,E),v.return=g,v):(v=s(v,w),v.return=g,v)}function d(g,v,w){if(typeof v=="string"&&v!==""||typeof v=="number")return v=ql(""+v,g.mode,w),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Bi:return w=ko(v.type,v.key,v.props,null,g.mode,w),w.ref=cs(g,null,v),w.return=g,w;case vr:return v=Ql(v,g.mode,w),v.return=g,v;case hn:var b=v._init;return d(g,b(v._payload),w)}if(xs(v)||is(v))return v=Zn(v,g.mode,w,null),v.return=g,v;Ji(g,v)}return null}function h(g,v,w,b){var E=v!==null?v.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return E!==null?null:a(g,v,""+w,b);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:return w.key===E?l(g,v,w,b):null;case vr:return w.key===E?u(g,v,w,b):null;case hn:return E=w._init,h(g,v,E(w._payload),b)}if(xs(w)||is(w))return E!==null?null:c(g,v,w,b,null);Ji(g,w)}return null}function p(g,v,w,b,E){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(w)||null,a(v,g,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Bi:return g=g.get(b.key===null?w:b.key)||null,l(v,g,b,E);case vr:return g=g.get(b.key===null?w:b.key)||null,u(v,g,b,E);case hn:var R=b._init;return p(g,v,w,R(b._payload),E)}if(xs(b)||is(b))return g=g.get(w)||null,c(v,g,b,E,null);Ji(v,b)}return null}function m(g,v,w,b){for(var E=null,R=null,k=v,P=v=0,_=null;k!==null&&P<w.length;P++){k.index>P?(_=k,k=null):_=k.sibling;var F=h(g,k,w[P],b);if(F===null){k===null&&(k=_);break}e&&k&&F.alternate===null&&t(g,k),v=i(F,v,P),R===null?E=F:R.sibling=F,R=F,k=_}if(P===w.length)return n(g,k),ne&&Vn(g,P),E;if(k===null){for(;P<w.length;P++)k=d(g,w[P],b),k!==null&&(v=i(k,v,P),R===null?E=k:R.sibling=k,R=k);return ne&&Vn(g,P),E}for(k=r(g,k);P<w.length;P++)_=p(k,g,P,w[P],b),_!==null&&(e&&_.alternate!==null&&k.delete(_.key===null?P:_.key),v=i(_,v,P),R===null?E=_:R.sibling=_,R=_);return e&&k.forEach(function(A){return t(g,A)}),ne&&Vn(g,P),E}function y(g,v,w,b){var E=is(w);if(typeof E!="function")throw Error(T(150));if(w=E.call(w),w==null)throw Error(T(151));for(var R=E=null,k=v,P=v=0,_=null,F=w.next();k!==null&&!F.done;P++,F=w.next()){k.index>P?(_=k,k=null):_=k.sibling;var A=h(g,k,F.value,b);if(A===null){k===null&&(k=_);break}e&&k&&A.alternate===null&&t(g,k),v=i(A,v,P),R===null?E=A:R.sibling=A,R=A,k=_}if(F.done)return n(g,k),ne&&Vn(g,P),E;if(k===null){for(;!F.done;P++,F=w.next())F=d(g,F.value,b),F!==null&&(v=i(F,v,P),R===null?E=F:R.sibling=F,R=F);return ne&&Vn(g,P),E}for(k=r(g,k);!F.done;P++,F=w.next())F=p(k,g,P,F.value,b),F!==null&&(e&&F.alternate!==null&&k.delete(F.key===null?P:F.key),v=i(F,v,P),R===null?E=F:R.sibling=F,R=F);return e&&k.forEach(function(I){return t(g,I)}),ne&&Vn(g,P),E}function S(g,v,w,b){if(typeof w=="object"&&w!==null&&w.type===yr&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Bi:e:{for(var E=w.key,R=v;R!==null;){if(R.key===E){if(E=w.type,E===yr){if(R.tag===7){n(g,R.sibling),v=s(R,w.props.children),v.return=g,g=v;break e}}else if(R.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===hn&&jh(E)===R.type){n(g,R.sibling),v=s(R,w.props),v.ref=cs(g,R,w),v.return=g,g=v;break e}n(g,R);break}else t(g,R);R=R.sibling}w.type===yr?(v=Zn(w.props.children,g.mode,b,w.key),v.return=g,g=v):(b=ko(w.type,w.key,w.props,null,g.mode,b),b.ref=cs(g,v,w),b.return=g,g=b)}return o(g);case vr:e:{for(R=w.key;v!==null;){if(v.key===R)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){n(g,v.sibling),v=s(v,w.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=Ql(w,g.mode,b),v.return=g,g=v}return o(g);case hn:return R=w._init,S(g,v,R(w._payload),b)}if(xs(w))return m(g,v,w,b);if(is(w))return y(g,v,w,b);Ji(g,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,v!==null&&v.tag===6?(n(g,v.sibling),v=s(v,w),v.return=g,g=v):(n(g,v),v=ql(w,g.mode,b),v.return=g,g=v),o(g)):n(g,v)}return S}var Br=q1(!0),Q1=q1(!1),ki={},Ut=Dn(ki),ri=Dn(ki),si=Dn(ki);function Gn(e){if(e===ki)throw Error(T(174));return e}function hd(e,t){switch(J(si,t),J(ri,e),J(Ut,ki),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ju(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ju(t,e)}te(Ut),J(Ut,t)}function Vr(){te(Ut),te(ri),te(si)}function W1(e){Gn(si.current);var t=Gn(Ut.current),n=ju(t,e.type);t!==n&&(J(ri,e),J(Ut,n))}function pd(e){ri.current===e&&(te(Ut),te(ri))}var re=Dn(0);function oa(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 $l=[];function md(){for(var e=0;e<$l.length;e++)$l[e]._workInProgressVersionPrimary=null;$l.length=0}var So=on.ReactCurrentDispatcher,zl=on.ReactCurrentBatchConfig,tr=0,se=null,fe=null,ge=null,aa=!1,Ts=!1,ii=0,zx=0;function Re(){throw Error(T(321))}function gd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function vd(e,t,n,r,s,i){if(tr=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,So.current=e===null||e.memoizedState===null?Hx:qx,e=n(r,s),Ts){i=0;do{if(Ts=!1,ii=0,25<=i)throw Error(T(301));i+=1,ge=fe=null,t.updateQueue=null,So.current=Qx,e=n(r,s)}while(Ts)}if(So.current=la,t=fe!==null&&fe.next!==null,tr=0,ge=fe=se=null,aa=!1,t)throw Error(T(300));return e}function yd(){var e=ii!==0;return ii=0,e}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?se.memoizedState=ge=e:ge=ge.next=e,ge}function gt(){if(fe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=ge===null?se.memoizedState:ge.next;if(t!==null)ge=t,fe=e;else{if(e===null)throw Error(T(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},ge===null?se.memoizedState=ge=e:ge=ge.next=e}return ge}function oi(e,t){return typeof t=="function"?t(e):t}function Ul(e){var t=gt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=fe,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var a=o=null,l=null,u=i;do{var c=u.lane;if((tr&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,se.lanes|=c,nr|=c}u=u.next}while(u!==null&&u!==i);l===null?o=r:l.next=a,Ot(r,t.memoizedState)||(He=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,se.lanes|=i,nr|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bl(e){var t=gt(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);Ot(i,t.memoizedState)||(He=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function K1(){}function G1(e,t){var n=se,r=gt(),s=t(),i=!Ot(r.memoizedState,s);if(i&&(r.memoizedState=s,He=!0),r=r.queue,wd(Z1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,ai(9,Y1.bind(null,n,r,s,t),void 0,null),ve===null)throw Error(T(349));tr&30||X1(n,t,s)}return s}function X1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Y1(e,t,n,r){t.value=n,t.getSnapshot=r,J1(t)&&eg(e)}function Z1(e,t,n){return n(function(){J1(t)&&eg(e)})}function J1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function eg(e){var t=nn(e,1);t!==null&&Pt(t,e,1,-1)}function Th(e){var t=Mt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:oi,lastRenderedState:e},t.queue=e,e=e.dispatch=Vx.bind(null,se,e),[t.memoizedState,e]}function ai(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=se.updateQueue,t===null?(t={lastEffect:null,stores:null},se.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 tg(){return gt().memoizedState}function bo(e,t,n,r){var s=Mt();se.flags|=e,s.memoizedState=ai(1|t,n,void 0,r===void 0?null:r)}function Fa(e,t,n,r){var s=gt();r=r===void 0?null:r;var i=void 0;if(fe!==null){var o=fe.memoizedState;if(i=o.destroy,r!==null&&gd(r,o.deps)){s.memoizedState=ai(t,n,i,r);return}}se.flags|=e,s.memoizedState=ai(1|t,n,i,r)}function _h(e,t){return bo(8390656,8,e,t)}function wd(e,t){return Fa(2048,8,e,t)}function ng(e,t){return Fa(4,2,e,t)}function rg(e,t){return Fa(4,4,e,t)}function sg(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 ig(e,t,n){return n=n!=null?n.concat([e]):null,Fa(4,4,sg.bind(null,t,e),n)}function xd(){}function og(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ag(e,t){var n=gt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&gd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function lg(e,t,n){return tr&21?(Ot(n,t)||(n=d1(),se.lanes|=n,nr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,He=!0),e.memoizedState=n)}function Ux(e,t){var n=Z;Z=n!==0&&4>n?n:4,e(!0);var r=zl.transition;zl.transition={};try{e(!1),t()}finally{Z=n,zl.transition=r}}function ug(){return gt().memoizedState}function Bx(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},cg(e))dg(t,n);else if(n=U1(e,t,n,r),n!==null){var s=Ae();Pt(n,e,r,s),fg(n,t,r)}}function Vx(e,t,n){var r=Nn(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(cg(e))dg(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,a=i(o,n);if(s.hasEagerState=!0,s.eagerState=a,Ot(a,o)){var l=t.interleaved;l===null?(s.next=s,dd(t)):(s.next=l.next,l.next=s),t.interleaved=s;return}}catch{}finally{}n=U1(e,t,s,r),n!==null&&(s=Ae(),Pt(n,e,r,s),fg(n,t,r))}}function cg(e){var t=e.alternate;return e===se||t!==null&&t===se}function dg(e,t){Ts=aa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fg(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yc(e,n)}}var la={readContext:mt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},Hx={readContext:mt,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:_h,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bo(4194308,4,sg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return bo(4,2,e,t)},useMemo:function(e,t){var n=Mt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Mt();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=Bx.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:Th,useDebugValue:xd,useDeferredValue:function(e){return Mt().memoizedState=e},useTransition:function(){var e=Th(!1),t=e[0];return e=Ux.bind(null,e[1]),Mt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,s=Mt();if(ne){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),ve===null)throw Error(T(349));tr&30||X1(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,_h(Z1.bind(null,r,i,e),[e]),r.flags|=2048,ai(9,Y1.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Mt(),t=ve.identifierPrefix;if(ne){var n=Yt,r=Xt;n=(r&~(1<<32-kt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ii++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=zx++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qx={readContext:mt,useCallback:og,useContext:mt,useEffect:wd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:Ul,useRef:tg,useState:function(){return Ul(oi)},useDebugValue:xd,useDeferredValue:function(e){var t=gt();return lg(t,fe.memoizedState,e)},useTransition:function(){var e=Ul(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:G1,useId:ug,unstable_isNewReconciler:!1},Qx={readContext:mt,useCallback:og,useContext:mt,useEffect:wd,useImperativeHandle:ig,useInsertionEffect:ng,useLayoutEffect:rg,useMemo:ag,useReducer:Bl,useRef:tg,useState:function(){return Bl(oi)},useDebugValue:xd,useDeferredValue:function(e){var t=gt();return fe===null?t.memoizedState=e:lg(t,fe.memoizedState,e)},useTransition:function(){var e=Bl(oi)[0],t=gt().memoizedState;return[e,t]},useMutableSource:K1,useSyncExternalStore:G1,useId:ug,unstable_isNewReconciler:!1};function Hr(e,t){try{var n="",r=t;do n+=xw(r),r=r.return;while(r);var s=n}catch(i){s=`
|
|
37
|
+
`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var a=`
|
|
38
|
+
`+s[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Ic=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bi(e):""}function TE(e){switch(e.tag){case 5:return Bi(e.type);case 16:return Bi("Lazy");case 13:return Bi("Suspense");case 19:return Bi("SuspenseList");case 0:case 2:case 15:return e=_c(e.type,!1),e;case 11:return e=_c(e.type.render,!1),e;case 1:return e=_c(e.type,!0),e;default:return""}}function Wd(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 Ps:return"Fragment";case ks:return"Portal";case Ud:return"Profiler";case vp:return"StrictMode";case Hd:return"Suspense";case qd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g1:return(e.displayName||"Context")+".Consumer";case m1:return(e._context.displayName||"Context")+".Provider";case yp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wp:return t=e.displayName||null,t!==null?t:Wd(e.type)||"Memo";case rr:t=e._payload,e=e._init;try{return Wd(e(t))}catch{}}return null}function kE(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 Wd(t);case 8:return t===vp?"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 kr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function y1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PE(e){var t=y1(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 s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.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 Ea(e){e._valueTracker||(e._valueTracker=PE(e))}function w1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=y1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Al(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 Qd(e,t){var n=t.checked;return Ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Gm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=kr(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 x1(e,t){t=t.checked,t!=null&&gp(e,"checked",t,!1)}function Gd(e,t){x1(e,t);var n=kr(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")?Kd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Kd(e,t.type,kr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Km(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 Kd(e,t,n){(t!=="number"||Al(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vi=Array.isArray;function Bs(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+kr(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Xd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Xm(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(U(92));if(Vi(n)){if(1<n.length)throw Error(U(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:kr(n)}}function b1(e,t){var n=kr(t.value),r=kr(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 Ym(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function S1(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 Yd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?S1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ta,C1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ta=Ta||document.createElement("div"),Ta.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ta.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function yo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gi={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},jE=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(e){jE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gi[t]=Gi[e]})});function E1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gi.hasOwnProperty(e)&&Gi[e]?(""+t).trim():t+"px"}function T1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=E1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var OE=Ce({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 Jd(e,t){if(t){if(OE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function Zd(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 ef=null;function xp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tf=null,Vs=null,Us=null;function Jm(e){if(e=ta(e)){if(typeof tf!="function")throw Error(U(280));var t=e.stateNode;t&&(t=Iu(t),tf(e.stateNode,e.type,t))}}function k1(e){Vs?Us?Us.push(e):Us=[e]:Vs=e}function P1(){if(Vs){var e=Vs,t=Us;if(Us=Vs=null,Jm(e),t)for(e=0;e<t.length;e++)Jm(t[e])}}function j1(e,t){return e(t)}function O1(){}var Mc=!1;function R1(e,t,n){if(Mc)return e(t,n);Mc=!0;try{return j1(e,t,n)}finally{Mc=!1,(Vs!==null||Us!==null)&&(O1(),P1())}}function wo(e,t){var n=e.stateNode;if(n===null)return null;var r=Iu(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(U(231,t,typeof n));return n}var nf=!1;if(Hn)try{var Ti={};Object.defineProperty(Ti,"passive",{get:function(){nf=!0}}),window.addEventListener("test",Ti,Ti),window.removeEventListener("test",Ti,Ti)}catch{nf=!1}function RE(e,t,n,r,s,i,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Ki=!1,Il=null,_l=!1,rf=null,NE={onError:function(e){Ki=!0,Il=e}};function AE(e,t,n,r,s,i,o,l,a){Ki=!1,Il=null,RE.apply(NE,arguments)}function IE(e,t,n,r,s,i,o,l,a){if(AE.apply(this,arguments),Ki){if(Ki){var u=Il;Ki=!1,Il=null}else throw Error(U(198));_l||(_l=!0,rf=u)}}function fs(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 N1(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 Zm(e){if(fs(e)!==e)throw Error(U(188))}function _E(e){var t=e.alternate;if(!t){if(t=fs(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Zm(s),e;if(i===r)return Zm(s),t;i=i.sibling}throw Error(U(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function A1(e){return e=_E(e),e!==null?I1(e):null}function I1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=I1(e);if(t!==null)return t;e=e.sibling}return null}var _1=Rt.unstable_scheduleCallback,eg=Rt.unstable_cancelCallback,ME=Rt.unstable_shouldYield,LE=Rt.unstable_requestPaint,Re=Rt.unstable_now,DE=Rt.unstable_getCurrentPriorityLevel,bp=Rt.unstable_ImmediatePriority,M1=Rt.unstable_UserBlockingPriority,Ml=Rt.unstable_NormalPriority,FE=Rt.unstable_LowPriority,L1=Rt.unstable_IdlePriority,Ou=null,En=null;function $E(e){if(En&&typeof En.onCommitFiberRoot=="function")try{En.onCommitFiberRoot(Ou,e,void 0,(e.current.flags&128)===128)}catch{}}var cn=Math.clz32?Math.clz32:VE,zE=Math.log,BE=Math.LN2;function VE(e){return e>>>=0,e===0?32:31-(zE(e)/BE|0)|0}var ka=64,Pa=4194304;function Ui(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 Ll(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=Ui(l):(i&=o,i!==0&&(r=Ui(i)))}else o=n&~s,o!==0?r=Ui(o):i!==0&&(r=Ui(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&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-cn(t),s=1<<n,r|=e[n],t&=~s;return r}function UE(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 HE(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-cn(i),l=1<<o,a=s[o];a===-1?(!(l&n)||l&r)&&(s[o]=UE(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function sf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function D1(){var e=ka;return ka<<=1,!(ka&4194240)&&(ka=64),e}function Lc(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-cn(t),e[t]=n}function qE(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 s=31-cn(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function Sp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-cn(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var de=0;function F1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var $1,Cp,z1,B1,V1,of=!1,ja=[],gr=null,vr=null,yr=null,xo=new Map,bo=new Map,ir=[],WE="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 tg(e,t){switch(e){case"focusin":case"focusout":gr=null;break;case"dragenter":case"dragleave":vr=null;break;case"mouseover":case"mouseout":yr=null;break;case"pointerover":case"pointerout":xo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bo.delete(t.pointerId)}}function ki(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=ta(t),t!==null&&Cp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function QE(e,t,n,r,s){switch(t){case"focusin":return gr=ki(gr,e,t,n,r,s),!0;case"dragenter":return vr=ki(vr,e,t,n,r,s),!0;case"mouseover":return yr=ki(yr,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return xo.set(i,ki(xo.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,bo.set(i,ki(bo.get(i)||null,e,t,n,r,s)),!0}return!1}function U1(e){var t=Wr(e.target);if(t!==null){var n=fs(t);if(n!==null){if(t=n.tag,t===13){if(t=N1(n),t!==null){e.blockedOn=t,V1(e.priority,function(){z1(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 el(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=af(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ef=r,n.target.dispatchEvent(r),ef=null}else return t=ta(n),t!==null&&Cp(t),e.blockedOn=n,!1;t.shift()}return!0}function ng(e,t,n){el(e)&&n.delete(t)}function GE(){of=!1,gr!==null&&el(gr)&&(gr=null),vr!==null&&el(vr)&&(vr=null),yr!==null&&el(yr)&&(yr=null),xo.forEach(ng),bo.forEach(ng)}function Pi(e,t){e.blockedOn===t&&(e.blockedOn=null,of||(of=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,GE)))}function So(e){function t(s){return Pi(s,e)}if(0<ja.length){Pi(ja[0],e);for(var n=1;n<ja.length;n++){var r=ja[n];r.blockedOn===e&&(r.blockedOn=null)}}for(gr!==null&&Pi(gr,e),vr!==null&&Pi(vr,e),yr!==null&&Pi(yr,e),xo.forEach(t),bo.forEach(t),n=0;n<ir.length;n++)r=ir[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ir.length&&(n=ir[0],n.blockedOn===null);)U1(n),n.blockedOn===null&&ir.shift()}var Hs=Yn.ReactCurrentBatchConfig,Dl=!0;function KE(e,t,n,r){var s=de,i=Hs.transition;Hs.transition=null;try{de=1,Ep(e,t,n,r)}finally{de=s,Hs.transition=i}}function XE(e,t,n,r){var s=de,i=Hs.transition;Hs.transition=null;try{de=4,Ep(e,t,n,r)}finally{de=s,Hs.transition=i}}function Ep(e,t,n,r){if(Dl){var s=af(e,t,n,r);if(s===null)Wc(e,t,r,Fl,n),tg(e,r);else if(QE(s,e,t,n,r))r.stopPropagation();else if(tg(e,r),t&4&&-1<WE.indexOf(e)){for(;s!==null;){var i=ta(s);if(i!==null&&$1(i),i=af(e,t,n,r),i===null&&Wc(e,t,r,Fl,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Wc(e,t,r,null,n)}}var Fl=null;function af(e,t,n,r){if(Fl=null,e=xp(r),e=Wr(e),e!==null)if(t=fs(e),t===null)e=null;else if(n=t.tag,n===13){if(e=N1(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 Fl=e,null}function H1(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(DE()){case bp:return 1;case M1:return 4;case Ml:case FE:return 16;case L1:return 536870912;default:return 16}default:return 16}}var lr=null,Tp=null,tl=null;function q1(){if(tl)return tl;var e,t=Tp,n=t.length,r,s="value"in lr?lr.value:lr.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===s[i-r];r++);return tl=s.slice(e,1<r?1-r:void 0)}function nl(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 Oa(){return!0}function rg(){return!1}function It(e){function t(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Oa:rg,this.isPropagationStopped=rg,this}return Ce(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=Oa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Oa)},persist:function(){},isPersistent:Oa}),t}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kp=It(hi),ea=Ce({},hi,{view:0,detail:0}),YE=It(ea),Dc,Fc,ji,Ru=Ce({},ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pp,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!==ji&&(ji&&e.type==="mousemove"?(Dc=e.screenX-ji.screenX,Fc=e.screenY-ji.screenY):Fc=Dc=0,ji=e),Dc)},movementY:function(e){return"movementY"in e?e.movementY:Fc}}),sg=It(Ru),JE=Ce({},Ru,{dataTransfer:0}),ZE=It(JE),e4=Ce({},ea,{relatedTarget:0}),$c=It(e4),t4=Ce({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),n4=It(t4),r4=Ce({},hi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),s4=It(r4),i4=Ce({},hi,{data:0}),ig=It(i4),o4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a4={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"},l4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u4(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=l4[e])?!!t[e]:!1}function Pp(){return u4}var c4=Ce({},ea,{key:function(e){if(e.key){var t=o4[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a4[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pp,charCode:function(e){return e.type==="keypress"?nl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),d4=It(c4),f4=Ce({},Ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),og=It(f4),p4=Ce({},ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pp}),h4=It(p4),m4=Ce({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),g4=It(m4),v4=Ce({},Ru,{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}),y4=It(v4),w4=[9,13,27,32],jp=Hn&&"CompositionEvent"in window,Xi=null;Hn&&"documentMode"in document&&(Xi=document.documentMode);var x4=Hn&&"TextEvent"in window&&!Xi,W1=Hn&&(!jp||Xi&&8<Xi&&11>=Xi),ag=String.fromCharCode(32),lg=!1;function Q1(e,t){switch(e){case"keyup":return w4.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function G1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var js=!1;function b4(e,t){switch(e){case"compositionend":return G1(t);case"keypress":return t.which!==32?null:(lg=!0,ag);case"textInput":return e=t.data,e===ag&&lg?null:e;default:return null}}function S4(e,t){if(js)return e==="compositionend"||!jp&&Q1(e,t)?(e=q1(),tl=Tp=lr=null,js=!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 W1&&t.locale!=="ko"?null:t.data;default:return null}}var C4={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 ug(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!C4[e.type]:t==="textarea"}function K1(e,t,n,r){k1(r),t=$l(t,"onChange"),0<t.length&&(n=new kp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yi=null,Co=null;function E4(e){oy(e,0)}function Nu(e){var t=Ns(e);if(w1(t))return e}function T4(e,t){if(e==="change")return t}var X1=!1;if(Hn){var zc;if(Hn){var Bc="oninput"in document;if(!Bc){var cg=document.createElement("div");cg.setAttribute("oninput","return;"),Bc=typeof cg.oninput=="function"}zc=Bc}else zc=!1;X1=zc&&(!document.documentMode||9<document.documentMode)}function dg(){Yi&&(Yi.detachEvent("onpropertychange",Y1),Co=Yi=null)}function Y1(e){if(e.propertyName==="value"&&Nu(Co)){var t=[];K1(t,Co,e,xp(e)),R1(E4,t)}}function k4(e,t,n){e==="focusin"?(dg(),Yi=t,Co=n,Yi.attachEvent("onpropertychange",Y1)):e==="focusout"&&dg()}function P4(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Nu(Co)}function j4(e,t){if(e==="click")return Nu(t)}function O4(e,t){if(e==="input"||e==="change")return Nu(t)}function R4(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fn=typeof Object.is=="function"?Object.is:R4;function Eo(e,t){if(fn(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 s=n[r];if(!Vd.call(t,s)||!fn(e[s],t[s]))return!1}return!0}function fg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pg(e,t){var n=fg(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=fg(n)}}function J1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?J1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Z1(){for(var e=window,t=Al();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Al(e.document)}return t}function Op(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 N4(e){var t=Z1(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&J1(n.ownerDocument.documentElement,n)){if(r!==null&&Op(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 s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=pg(n,i);var o=pg(n,r);s&&o&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>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 A4=Hn&&"documentMode"in document&&11>=document.documentMode,Os=null,lf=null,Ji=null,uf=!1;function hg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uf||Os==null||Os!==Al(r)||(r=Os,"selectionStart"in r&&Op(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}),Ji&&Eo(Ji,r)||(Ji=r,r=$l(lf,"onSelect"),0<r.length&&(t=new kp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Os)))}function Ra(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Rs={animationend:Ra("Animation","AnimationEnd"),animationiteration:Ra("Animation","AnimationIteration"),animationstart:Ra("Animation","AnimationStart"),transitionend:Ra("Transition","TransitionEnd")},Vc={},ey={};Hn&&(ey=document.createElement("div").style,"AnimationEvent"in window||(delete Rs.animationend.animation,delete Rs.animationiteration.animation,delete Rs.animationstart.animation),"TransitionEvent"in window||delete Rs.transitionend.transition);function Au(e){if(Vc[e])return Vc[e];if(!Rs[e])return e;var t=Rs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ey)return Vc[e]=t[n];return e}var ty=Au("animationend"),ny=Au("animationiteration"),ry=Au("animationstart"),sy=Au("transitionend"),iy=new Map,mg="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 Ir(e,t){iy.set(e,t),ds(t,[e])}for(var Uc=0;Uc<mg.length;Uc++){var Hc=mg[Uc],I4=Hc.toLowerCase(),_4=Hc[0].toUpperCase()+Hc.slice(1);Ir(I4,"on"+_4)}Ir(ty,"onAnimationEnd");Ir(ny,"onAnimationIteration");Ir(ry,"onAnimationStart");Ir("dblclick","onDoubleClick");Ir("focusin","onFocus");Ir("focusout","onBlur");Ir(sy,"onTransitionEnd");Js("onMouseEnter",["mouseout","mouseover"]);Js("onMouseLeave",["mouseout","mouseover"]);Js("onPointerEnter",["pointerout","pointerover"]);Js("onPointerLeave",["pointerout","pointerover"]);ds("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ds("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ds("onBeforeInput",["compositionend","keypress","textInput","paste"]);ds("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ds("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hi="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(" "),M4=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hi));function gg(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,IE(r,t,void 0,e),e.currentTarget=null}function oy(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&s.isPropagationStopped())break e;gg(s,l,u),i=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&s.isPropagationStopped())break e;gg(s,l,u),i=a}}}if(_l)throw e=rf,_l=!1,rf=null,e}function ge(e,t){var n=t[hf];n===void 0&&(n=t[hf]=new Set);var r=e+"__bubble";n.has(r)||(ay(t,e,2,!1),n.add(r))}function qc(e,t,n){var r=0;t&&(r|=4),ay(n,e,r,t)}var Na="_reactListening"+Math.random().toString(36).slice(2);function To(e){if(!e[Na]){e[Na]=!0,h1.forEach(function(n){n!=="selectionchange"&&(M4.has(n)||qc(n,!1,e),qc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Na]||(t[Na]=!0,qc("selectionchange",!1,t))}}function ay(e,t,n,r){switch(H1(t)){case 1:var s=KE;break;case 4:s=XE;break;default:s=Ep}n=s.bind(null,t,n,e),s=void 0,!nf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Wc(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;o=o.return}for(;l!==null;){if(o=Wr(l),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}l=l.parentNode}}r=r.return}R1(function(){var u=i,c=xp(n),f=[];e:{var p=iy.get(e);if(p!==void 0){var h=kp,v=e;switch(e){case"keypress":if(nl(n)===0)break e;case"keydown":case"keyup":h=d4;break;case"focusin":v="focus",h=$c;break;case"focusout":v="blur",h=$c;break;case"beforeblur":case"afterblur":h=$c;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":h=sg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=ZE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=h4;break;case ty:case ny:case ry:h=n4;break;case sy:h=g4;break;case"scroll":h=YE;break;case"wheel":h=y4;break;case"copy":case"cut":case"paste":h=s4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=og}var w=(t&4)!==0,b=!w&&e==="scroll",g=w?p!==null?p+"Capture":null:p;w=[];for(var m=u,y;m!==null;){y=m;var x=y.stateNode;if(y.tag===5&&x!==null&&(y=x,g!==null&&(x=wo(m,g),x!=null&&w.push(ko(m,x,y)))),b)break;m=m.return}0<w.length&&(p=new h(p,v,null,n,c),f.push({event:p,listeners:w}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==ef&&(v=n.relatedTarget||n.fromElement)&&(Wr(v)||v[qn]))break e;if((h||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,h?(v=n.relatedTarget||n.toElement,h=u,v=v?Wr(v):null,v!==null&&(b=fs(v),v!==b||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=u),h!==v)){if(w=sg,x="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(w=og,x="onPointerLeave",g="onPointerEnter",m="pointer"),b=h==null?p:Ns(h),y=v==null?p:Ns(v),p=new w(x,m+"leave",h,n,c),p.target=b,p.relatedTarget=y,x=null,Wr(c)===u&&(w=new w(g,m+"enter",v,n,c),w.target=y,w.relatedTarget=b,x=w),b=x,h&&v)t:{for(w=h,g=v,m=0,y=w;y;y=Ss(y))m++;for(y=0,x=g;x;x=Ss(x))y++;for(;0<m-y;)w=Ss(w),m--;for(;0<y-m;)g=Ss(g),y--;for(;m--;){if(w===g||g!==null&&w===g.alternate)break t;w=Ss(w),g=Ss(g)}w=null}else w=null;h!==null&&vg(f,p,h,w,!1),v!==null&&b!==null&&vg(f,b,v,w,!0)}}e:{if(p=u?Ns(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var C=T4;else if(ug(p))if(X1)C=O4;else{C=P4;var T=k4}else(h=p.nodeName)&&h.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(C=j4);if(C&&(C=C(e,u))){K1(f,C,n,c);break e}T&&T(e,p,u),e==="focusout"&&(T=p._wrapperState)&&T.controlled&&p.type==="number"&&Kd(p,"number",p.value)}switch(T=u?Ns(u):window,e){case"focusin":(ug(T)||T.contentEditable==="true")&&(Os=T,lf=u,Ji=null);break;case"focusout":Ji=lf=Os=null;break;case"mousedown":uf=!0;break;case"contextmenu":case"mouseup":case"dragend":uf=!1,hg(f,n,c);break;case"selectionchange":if(A4)break;case"keydown":case"keyup":hg(f,n,c)}var E;if(jp)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else js?Q1(e,n)&&(j="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(W1&&n.locale!=="ko"&&(js||j!=="onCompositionStart"?j==="onCompositionEnd"&&js&&(E=q1()):(lr=c,Tp="value"in lr?lr.value:lr.textContent,js=!0)),T=$l(u,j),0<T.length&&(j=new ig(j,e,null,n,c),f.push({event:j,listeners:T}),E?j.data=E:(E=G1(n),E!==null&&(j.data=E)))),(E=x4?b4(e,n):S4(e,n))&&(u=$l(u,"onBeforeInput"),0<u.length&&(c=new ig("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}oy(f,t)})}function ko(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $l(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=wo(e,n),i!=null&&r.unshift(ko(e,i,s)),i=wo(e,t),i!=null&&r.push(ko(e,i,s))),e=e.return}return r}function Ss(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vg(e,t,n,r,s){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=wo(n,i),a!=null&&o.unshift(ko(n,a,l))):s||(a=wo(n,i),a!=null&&o.push(ko(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var L4=/\r\n?/g,D4=/\u0000|\uFFFD/g;function yg(e){return(typeof e=="string"?e:""+e).replace(L4,`
|
|
39
|
+
`).replace(D4,"")}function Aa(e,t,n){if(t=yg(t),yg(e)!==t&&n)throw Error(U(425))}function zl(){}var cf=null,df=null;function ff(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 pf=typeof setTimeout=="function"?setTimeout:void 0,F4=typeof clearTimeout=="function"?clearTimeout:void 0,wg=typeof Promise=="function"?Promise:void 0,$4=typeof queueMicrotask=="function"?queueMicrotask:typeof wg<"u"?function(e){return wg.resolve(null).then(e).catch(z4)}:pf;function z4(e){setTimeout(function(){throw e})}function Qc(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),So(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);So(t)}function wr(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 xg(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 mi=Math.random().toString(36).slice(2),xn="__reactFiber$"+mi,Po="__reactProps$"+mi,qn="__reactContainer$"+mi,hf="__reactEvents$"+mi,B4="__reactListeners$"+mi,V4="__reactHandles$"+mi;function Wr(e){var t=e[xn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qn]||n[xn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xg(e);e!==null;){if(n=e[xn])return n;e=xg(e)}return t}e=n,n=e.parentNode}return null}function ta(e){return e=e[xn]||e[qn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ns(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function Iu(e){return e[Po]||null}var mf=[],As=-1;function _r(e){return{current:e}}function ve(e){0>As||(e.current=mf[As],mf[As]=null,As--)}function he(e,t){As++,mf[As]=e.current,e.current=t}var Pr={},Ke=_r(Pr),mt=_r(!1),ts=Pr;function Zs(e,t){var n=e.type.contextTypes;if(!n)return Pr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function gt(e){return e=e.childContextTypes,e!=null}function Bl(){ve(mt),ve(Ke)}function bg(e,t,n){if(Ke.current!==Pr)throw Error(U(168));he(Ke,t),he(mt,n)}function ly(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error(U(108,kE(e)||"Unknown",s));return Ce({},n,r)}function Vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pr,ts=Ke.current,he(Ke,e),he(mt,mt.current),!0}function Sg(e,t,n){var r=e.stateNode;if(!r)throw Error(U(169));n?(e=ly(e,t,ts),r.__reactInternalMemoizedMergedChildContext=e,ve(mt),ve(Ke),he(Ke,e)):ve(mt),he(mt,n)}var Fn=null,_u=!1,Gc=!1;function uy(e){Fn===null?Fn=[e]:Fn.push(e)}function U4(e){_u=!0,uy(e)}function Mr(){if(!Gc&&Fn!==null){Gc=!0;var e=0,t=de;try{var n=Fn;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Fn=null,_u=!1}catch(s){throw Fn!==null&&(Fn=Fn.slice(e+1)),_1(bp,Mr),s}finally{de=t,Gc=!1}}return null}var Is=[],_s=0,Ul=null,Hl=0,$t=[],zt=0,ns=null,$n=1,zn="";function Vr(e,t){Is[_s++]=Hl,Is[_s++]=Ul,Ul=e,Hl=t}function cy(e,t,n){$t[zt++]=$n,$t[zt++]=zn,$t[zt++]=ns,ns=e;var r=$n;e=zn;var s=32-cn(r)-1;r&=~(1<<s),n+=1;var i=32-cn(t)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,$n=1<<32-cn(t)+s|n<<s|r,zn=i+e}else $n=1<<i|n<<s|r,zn=e}function Rp(e){e.return!==null&&(Vr(e,1),cy(e,1,0))}function Np(e){for(;e===Ul;)Ul=Is[--_s],Is[_s]=null,Hl=Is[--_s],Is[_s]=null;for(;e===ns;)ns=$t[--zt],$t[zt]=null,zn=$t[--zt],$t[zt]=null,$n=$t[--zt],$t[zt]=null}var jt=null,Tt=null,ye=!1,on=null;function dy(e,t){var n=qt(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 Cg(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,jt=e,Tt=wr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,jt=e,Tt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ns!==null?{id:$n,overflow:zn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=qt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,jt=e,Tt=null,!0):!1;default:return!1}}function gf(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vf(e){if(ye){var t=Tt;if(t){var n=t;if(!Cg(e,t)){if(gf(e))throw Error(U(418));t=wr(n.nextSibling);var r=jt;t&&Cg(e,t)?dy(r,n):(e.flags=e.flags&-4097|2,ye=!1,jt=e)}}else{if(gf(e))throw Error(U(418));e.flags=e.flags&-4097|2,ye=!1,jt=e}}}function Eg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;jt=e}function Ia(e){if(e!==jt)return!1;if(!ye)return Eg(e),ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ff(e.type,e.memoizedProps)),t&&(t=Tt)){if(gf(e))throw fy(),Error(U(418));for(;t;)dy(e,t),t=wr(t.nextSibling)}if(Eg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Tt=wr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Tt=null}}else Tt=jt?wr(e.stateNode.nextSibling):null;return!0}function fy(){for(var e=Tt;e;)e=wr(e.nextSibling)}function ei(){Tt=jt=null,ye=!1}function Ap(e){on===null?on=[e]:on.push(e)}var H4=Yn.ReactCurrentBatchConfig;function nn(e,t){if(e&&e.defaultProps){t=Ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var ql=_r(null),Wl=null,Ms=null,Ip=null;function _p(){Ip=Ms=Wl=null}function Mp(e){var t=ql.current;ve(ql),e._currentValue=t}function yf(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 qs(e,t){Wl=e,Ip=Ms=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ht=!0),e.firstContext=null)}function Kt(e){var t=e._currentValue;if(Ip!==e)if(e={context:e,memoizedValue:t,next:null},Ms===null){if(Wl===null)throw Error(U(308));Ms=e,Wl.dependencies={lanes:0,firstContext:e}}else Ms=Ms.next=e;return t}var Qr=null;function Lp(e){Qr===null?Qr=[e]:Qr.push(e)}function py(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,Lp(t)):(n.next=s.next,s.next=n),t.interleaved=n,Wn(e,r)}function Wn(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 sr=!1;function Dp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hy(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 Un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function xr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ae&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,Wn(e,n)}return s=r.interleaved,s===null?(t.next=t,Lp(r)):(t.next=s.next,s.next=t),r.interleaved=t,Wn(e,n)}function rl(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,Sp(e,n)}}function Tg(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=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};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,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 Ql(e,t,n,r){var s=e.updateQueue;sr=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?i=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var f=s.baseState;o=0,c=u=a=null,l=i;do{var p=l.lane,h=l.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,w=l;switch(p=t,h=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){f=v.call(h,f,p);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,p=typeof v=="function"?v.call(h,f,p):v,p==null)break e;f=Ce({},f,p);break e;case 2:sr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,p=s.effects,p===null?s.effects=[l]:p.push(l))}else h={eventTime:h,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=h,a=f):c=c.next=h,o|=p;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;p=l,l=p.next,p.next=null,s.lastBaseUpdate=p,s.shared.pending=null}}while(1);if(c===null&&(a=f),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=c,t=s.shared.interleaved,t!==null){s=t;do o|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);ss|=o,e.lanes=o,e.memoizedState=f}}function kg(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(U(191,s));s.call(r)}}}var my=new p1.Component().refs;function wf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Mu={isMounted:function(e){return(e=e._reactInternals)?fs(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=rt(),s=Sr(e),i=Un(r,s);i.payload=t,n!=null&&(i.callback=n),t=xr(e,i,s),t!==null&&(dn(t,e,s,r),rl(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=rt(),s=Sr(e),i=Un(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=xr(e,i,s),t!==null&&(dn(t,e,s,r),rl(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=rt(),r=Sr(e),s=Un(n,r);s.tag=2,t!=null&&(s.callback=t),t=xr(e,s,r),t!==null&&(dn(t,e,r,n),rl(t,e,r))}};function Pg(e,t,n,r,s,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Eo(n,r)||!Eo(s,i):!0}function gy(e,t,n){var r=!1,s=Pr,i=t.contextType;return typeof i=="object"&&i!==null?i=Kt(i):(s=gt(t)?ts:Ke.current,r=t.contextTypes,i=(r=r!=null)?Zs(e,s):Pr),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Mu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function jg(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&&Mu.enqueueReplaceState(t,t.state,null)}function xf(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs=my,Dp(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=Kt(i):(i=gt(t)?ts:Ke.current,s.context=Zs(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(wf(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Mu.enqueueReplaceState(s,s.state,null),Ql(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Oi(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(U(309));var r=n.stateNode}if(!r)throw Error(U(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var l=s.refs;l===my&&(l=s.refs={}),o===null?delete l[i]:l[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(U(284));if(!n._owner)throw Error(U(290,e))}return e}function _a(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Og(e){var t=e._init;return t(e._payload)}function vy(e){function t(g,m){if(e){var y=g.deletions;y===null?(g.deletions=[m],g.flags|=16):y.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=Cr(g,m),g.index=0,g.sibling=null,g}function i(g,m,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<m?(g.flags|=2,m):y):(g.flags|=2,m)):(g.flags|=1048576,m)}function o(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,y,x){return m===null||m.tag!==6?(m=td(y,g.mode,x),m.return=g,m):(m=s(m,y),m.return=g,m)}function a(g,m,y,x){var C=y.type;return C===Ps?c(g,m,y.props.children,x,y.key):m!==null&&(m.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rr&&Og(C)===m.type)?(x=s(m,y.props),x.ref=Oi(g,m,y),x.return=g,x):(x=ul(y.type,y.key,y.props,null,g.mode,x),x.ref=Oi(g,m,y),x.return=g,x)}function u(g,m,y,x){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=nd(y,g.mode,x),m.return=g,m):(m=s(m,y.children||[]),m.return=g,m)}function c(g,m,y,x,C){return m===null||m.tag!==7?(m=Jr(y,g.mode,x,C),m.return=g,m):(m=s(m,y),m.return=g,m)}function f(g,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=td(""+m,g.mode,y),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ca:return y=ul(m.type,m.key,m.props,null,g.mode,y),y.ref=Oi(g,null,m),y.return=g,y;case ks:return m=nd(m,g.mode,y),m.return=g,m;case rr:var x=m._init;return f(g,x(m._payload),y)}if(Vi(m)||Ei(m))return m=Jr(m,g.mode,y,null),m.return=g,m;_a(g,m)}return null}function p(g,m,y,x){var C=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return C!==null?null:l(g,m,""+y,x);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ca:return y.key===C?a(g,m,y,x):null;case ks:return y.key===C?u(g,m,y,x):null;case rr:return C=y._init,p(g,m,C(y._payload),x)}if(Vi(y)||Ei(y))return C!==null?null:c(g,m,y,x,null);_a(g,y)}return null}function h(g,m,y,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return g=g.get(y)||null,l(m,g,""+x,C);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ca:return g=g.get(x.key===null?y:x.key)||null,a(m,g,x,C);case ks:return g=g.get(x.key===null?y:x.key)||null,u(m,g,x,C);case rr:var T=x._init;return h(g,m,y,T(x._payload),C)}if(Vi(x)||Ei(x))return g=g.get(y)||null,c(m,g,x,C,null);_a(m,x)}return null}function v(g,m,y,x){for(var C=null,T=null,E=m,j=m=0,P=null;E!==null&&j<y.length;j++){E.index>j?(P=E,E=null):P=E.sibling;var M=p(g,E,y[j],x);if(M===null){E===null&&(E=P);break}e&&E&&M.alternate===null&&t(g,E),m=i(M,m,j),T===null?C=M:T.sibling=M,T=M,E=P}if(j===y.length)return n(g,E),ye&&Vr(g,j),C;if(E===null){for(;j<y.length;j++)E=f(g,y[j],x),E!==null&&(m=i(E,m,j),T===null?C=E:T.sibling=E,T=E);return ye&&Vr(g,j),C}for(E=r(g,E);j<y.length;j++)P=h(E,g,j,y[j],x),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?j:P.key),m=i(P,m,j),T===null?C=P:T.sibling=P,T=P);return e&&E.forEach(function(N){return t(g,N)}),ye&&Vr(g,j),C}function w(g,m,y,x){var C=Ei(y);if(typeof C!="function")throw Error(U(150));if(y=C.call(y),y==null)throw Error(U(151));for(var T=C=null,E=m,j=m=0,P=null,M=y.next();E!==null&&!M.done;j++,M=y.next()){E.index>j?(P=E,E=null):P=E.sibling;var N=p(g,E,M.value,x);if(N===null){E===null&&(E=P);break}e&&E&&N.alternate===null&&t(g,E),m=i(N,m,j),T===null?C=N:T.sibling=N,T=N,E=P}if(M.done)return n(g,E),ye&&Vr(g,j),C;if(E===null){for(;!M.done;j++,M=y.next())M=f(g,M.value,x),M!==null&&(m=i(M,m,j),T===null?C=M:T.sibling=M,T=M);return ye&&Vr(g,j),C}for(E=r(g,E);!M.done;j++,M=y.next())M=h(E,g,j,M.value,x),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?j:M.key),m=i(M,m,j),T===null?C=M:T.sibling=M,T=M);return e&&E.forEach(function(R){return t(g,R)}),ye&&Vr(g,j),C}function b(g,m,y,x){if(typeof y=="object"&&y!==null&&y.type===Ps&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Ca:e:{for(var C=y.key,T=m;T!==null;){if(T.key===C){if(C=y.type,C===Ps){if(T.tag===7){n(g,T.sibling),m=s(T,y.props.children),m.return=g,g=m;break e}}else if(T.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===rr&&Og(C)===T.type){n(g,T.sibling),m=s(T,y.props),m.ref=Oi(g,T,y),m.return=g,g=m;break e}n(g,T);break}else t(g,T);T=T.sibling}y.type===Ps?(m=Jr(y.props.children,g.mode,x,y.key),m.return=g,g=m):(x=ul(y.type,y.key,y.props,null,g.mode,x),x.ref=Oi(g,m,y),x.return=g,g=x)}return o(g);case ks:e:{for(T=y.key;m!==null;){if(m.key===T)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=s(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=nd(y,g.mode,x),m.return=g,g=m}return o(g);case rr:return T=y._init,b(g,m,T(y._payload),x)}if(Vi(y))return v(g,m,y,x);if(Ei(y))return w(g,m,y,x);_a(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,y),m.return=g,g=m):(n(g,m),m=td(y,g.mode,x),m.return=g,g=m),o(g)):n(g,m)}return b}var ti=vy(!0),yy=vy(!1),na={},Tn=_r(na),jo=_r(na),Oo=_r(na);function Gr(e){if(e===na)throw Error(U(174));return e}function Fp(e,t){switch(he(Oo,t),he(jo,e),he(Tn,na),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yd(t,e)}ve(Tn),he(Tn,t)}function ni(){ve(Tn),ve(jo),ve(Oo)}function wy(e){Gr(Oo.current);var t=Gr(Tn.current),n=Yd(t,e.type);t!==n&&(he(jo,e),he(Tn,n))}function $p(e){jo.current===e&&(ve(Tn),ve(jo))}var xe=_r(0);function Gl(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 Kc=[];function zp(){for(var e=0;e<Kc.length;e++)Kc[e]._workInProgressVersionPrimary=null;Kc.length=0}var sl=Yn.ReactCurrentDispatcher,Xc=Yn.ReactCurrentBatchConfig,rs=0,Se=null,_e=null,De=null,Kl=!1,Zi=!1,Ro=0,q4=0;function We(){throw Error(U(321))}function Bp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!fn(e[n],t[n]))return!1;return!0}function Vp(e,t,n,r,s,i){if(rs=i,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sl.current=e===null||e.memoizedState===null?K4:X4,e=n(r,s),Zi){i=0;do{if(Zi=!1,Ro=0,25<=i)throw Error(U(301));i+=1,De=_e=null,t.updateQueue=null,sl.current=Y4,e=n(r,s)}while(Zi)}if(sl.current=Xl,t=_e!==null&&_e.next!==null,rs=0,De=_e=Se=null,Kl=!1,t)throw Error(U(300));return e}function Up(){var e=Ro!==0;return Ro=0,e}function vn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?Se.memoizedState=De=e:De=De.next=e,De}function Xt(){if(_e===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=De===null?Se.memoizedState:De.next;if(t!==null)De=t,_e=e;else{if(e===null)throw Error(U(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},De===null?Se.memoizedState=De=e:De=De.next=e}return De}function No(e,t){return typeof t=="function"?t(e):t}function Yc(e){var t=Xt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=_e,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,a=null,u=i;do{var c=u.lane;if((rs&c)===c)a!==null&&(a=a.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 f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,Se.lanes|=c,ss|=c}u=u.next}while(u!==null&&u!==i);a===null?o=r:a.next=l,fn(r,t.memoizedState)||(ht=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,Se.lanes|=i,ss|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Jc(e){var t=Xt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=e(i,o.action),o=o.next;while(o!==s);fn(i,t.memoizedState)||(ht=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function xy(){}function by(e,t){var n=Se,r=Xt(),s=t(),i=!fn(r.memoizedState,s);if(i&&(r.memoizedState=s,ht=!0),r=r.queue,Hp(Ey.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||De!==null&&De.memoizedState.tag&1){if(n.flags|=2048,Ao(9,Cy.bind(null,n,r,s,t),void 0,null),Fe===null)throw Error(U(349));rs&30||Sy(n,t,s)}return s}function Sy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Cy(e,t,n,r){t.value=n,t.getSnapshot=r,Ty(t)&&ky(e)}function Ey(e,t,n){return n(function(){Ty(t)&&ky(e)})}function Ty(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!fn(e,n)}catch{return!0}}function ky(e){var t=Wn(e,1);t!==null&&dn(t,e,1,-1)}function Rg(e){var t=vn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t.queue=e,e=e.dispatch=G4.bind(null,Se,e),[t.memoizedState,e]}function Ao(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Se.updateQueue,t===null?(t={lastEffect:null,stores:null},Se.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 Py(){return Xt().memoizedState}function il(e,t,n,r){var s=vn();Se.flags|=e,s.memoizedState=Ao(1|t,n,void 0,r===void 0?null:r)}function Lu(e,t,n,r){var s=Xt();r=r===void 0?null:r;var i=void 0;if(_e!==null){var o=_e.memoizedState;if(i=o.destroy,r!==null&&Bp(r,o.deps)){s.memoizedState=Ao(t,n,i,r);return}}Se.flags|=e,s.memoizedState=Ao(1|t,n,i,r)}function Ng(e,t){return il(8390656,8,e,t)}function Hp(e,t){return Lu(2048,8,e,t)}function jy(e,t){return Lu(4,2,e,t)}function Oy(e,t){return Lu(4,4,e,t)}function Ry(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 Ny(e,t,n){return n=n!=null?n.concat([e]):null,Lu(4,4,Ry.bind(null,t,e),n)}function qp(){}function Ay(e,t){var n=Xt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bp(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Iy(e,t){var n=Xt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Bp(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function _y(e,t,n){return rs&21?(fn(n,t)||(n=D1(),Se.lanes|=n,ss|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ht=!0),e.memoizedState=n)}function W4(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=Xc.transition;Xc.transition={};try{e(!1),t()}finally{de=n,Xc.transition=r}}function My(){return Xt().memoizedState}function Q4(e,t,n){var r=Sr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ly(e))Dy(t,n);else if(n=py(e,t,n,r),n!==null){var s=rt();dn(n,e,r,s),Fy(n,t,r)}}function G4(e,t,n){var r=Sr(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ly(e))Dy(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,fn(l,o)){var a=t.interleaved;a===null?(s.next=s,Lp(t)):(s.next=a.next,a.next=s),t.interleaved=s;return}}catch{}finally{}n=py(e,t,s,r),n!==null&&(s=rt(),dn(n,e,r,s),Fy(n,t,r))}}function Ly(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function Dy(e,t){Zi=Kl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Sp(e,n)}}var Xl={readContext:Kt,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},K4={readContext:Kt,useCallback:function(e,t){return vn().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:Ng,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,il(4194308,4,Ry.bind(null,t,e),n)},useLayoutEffect:function(e,t){return il(4194308,4,e,t)},useInsertionEffect:function(e,t){return il(4,2,e,t)},useMemo:function(e,t){var n=vn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vn();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=Q4.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=vn();return e={current:e},t.memoizedState=e},useState:Rg,useDebugValue:qp,useDeferredValue:function(e){return vn().memoizedState=e},useTransition:function(){var e=Rg(!1),t=e[0];return e=W4.bind(null,e[1]),vn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Se,s=vn();if(ye){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Fe===null)throw Error(U(349));rs&30||Sy(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,Ng(Ey.bind(null,r,i,e),[e]),r.flags|=2048,Ao(9,Cy.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=vn(),t=Fe.identifierPrefix;if(ye){var n=zn,r=$n;n=(r&~(1<<32-cn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Ro++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=q4++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},X4={readContext:Kt,useCallback:Ay,useContext:Kt,useEffect:Hp,useImperativeHandle:Ny,useInsertionEffect:jy,useLayoutEffect:Oy,useMemo:Iy,useReducer:Yc,useRef:Py,useState:function(){return Yc(No)},useDebugValue:qp,useDeferredValue:function(e){var t=Xt();return _y(t,_e.memoizedState,e)},useTransition:function(){var e=Yc(No)[0],t=Xt().memoizedState;return[e,t]},useMutableSource:xy,useSyncExternalStore:by,useId:My,unstable_isNewReconciler:!1},Y4={readContext:Kt,useCallback:Ay,useContext:Kt,useEffect:Hp,useImperativeHandle:Ny,useInsertionEffect:jy,useLayoutEffect:Oy,useMemo:Iy,useReducer:Jc,useRef:Py,useState:function(){return Jc(No)},useDebugValue:qp,useDeferredValue:function(e){var t=Xt();return _e===null?t.memoizedState=e:_y(t,_e.memoizedState,e)},useTransition:function(){var e=Jc(No)[0],t=Xt().memoizedState;return[e,t]},useMutableSource:xy,useSyncExternalStore:by,useId:My,unstable_isNewReconciler:!1};function ri(e,t){try{var n="",r=t;do n+=TE(r),r=r.return;while(r);var s=n}catch(i){s=`
|
|
40
40
|
Error generating stack: `+i.message+`
|
|
41
|
-
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Vl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ju(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Wx=typeof WeakMap=="function"?WeakMap:Map;function hg(e,t,n){n=Jt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ca||(ca=!0,uc=r),Ju(e,t)},n}function pg(e,t,n){n=Jt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Ju(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ju(e,t),typeof r!="function"&&(On===null?On=new Set([this]):On.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ih(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wx;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=aS.bind(null,e,t,n),t.then(e,e))}function Ah(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 Lh(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=Jt(-1,1),t.tag=2,Pn(n,t,1))),n.lanes|=1),e)}var Kx=on.ReactCurrentOwner,He=!1;function Te(e,t,n,r){t.child=e===null?Q1(t,null,n,r):Br(t,e.child,n,r)}function Mh(e,t,n,r,s){n=n.render;var i=t.ref;return Ar(t,s),r=vd(e,t,n,r,i,s),n=yd(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ne&&n&&id(t),t.flags|=1,Te(e,t,r,s),t.child)}function Dh(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Od(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,mg(e,t,i,r,s)):(e=ko(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Js,n(o,r)&&e.ref===t.ref)return rn(e,t,s)}return t.flags|=1,e=jn(i,r),e.ref=t.ref,e.return=t,t.child=e}function mg(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Js(i,r)&&e.ref===t.ref)if(He=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(He=!0);else return t.lanes=e.lanes,rn(e,t,s)}return ec(e,t,n,r,s)}function gg(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},J(Or,Ge),Ge|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,J(Or,Ge),Ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,J(Or,Ge),Ge|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,J(Or,Ge),Ge|=r;return Te(e,t,s,n),t.child}function vg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ec(e,t,n,r,s){var i=Qe(n)?Jn:Oe.current;return i=zr(t,i),Ar(t,s),n=vd(e,t,n,r,i,s),r=yd(),e!==null&&!He?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,rn(e,t,s)):(ne&&r&&id(t),t.flags|=1,Te(e,t,n,s),t.child)}function Fh(e,t,n,r,s){if(Qe(n)){var i=!0;ea(t)}else i=!1;if(Ar(t,s),t.stateNode===null)Co(e,t),H1(t,n,r),Zu(t,n,r,s),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=mt(u):(u=Qe(n)?Jn:Oe.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)&&Nh(t,o,r,u),pn=!1;var h=t.memoizedState;o.state=h,ia(t,r,o,s),l=t.memoizedState,a!==r||h!==l||qe.current||pn?(typeof c=="function"&&(Yu(t,n,c,r),l=t.memoizedState),(a=pn||Oh(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,B1(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:St(t.type,a),o.props=u,d=t.pendingProps,h=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=mt(l):(l=Qe(n)?Jn:Oe.current,l=zr(t,l));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||h!==l)&&Nh(t,o,r,l),pn=!1,h=t.memoizedState,o.state=h,ia(t,r,o,s);var m=t.memoizedState;a!==d||h!==m||qe.current||pn?(typeof p=="function"&&(Yu(t,n,p,r),m=t.memoizedState),(u=pn||Oh(t,n,u,r,h,m,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,m,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,m,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=m),o.props=r,o.state=m,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 tc(e,t,n,r,i,s)}function tc(e,t,n,r,s,i){vg(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Ch(t,n,!1),rn(e,t,i);r=t.stateNode,Kx.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Br(t,e.child,null,i),t.child=Br(t,null,a,i)):Te(e,t,a,i),t.memoizedState=r.state,s&&Ch(t,n,!0),t.child}function yg(e){var t=e.stateNode;t.pendingContext?bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bh(e,t.context,!1),hd(e,t.containerInfo)}function $h(e,t,n,r,s){return Ur(),ad(s),t.flags|=256,Te(e,t,n,r),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function wg(e,t,n){var r=t.pendingProps,s=re.current,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(s&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),J(re,s&1),e===null)return Gu(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,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Ua(o,r,0,null),e=Zn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=rc(n),t.memoizedState=nc,e):Sd(t,o));if(s=e.memoizedState,s!==null&&(a=s.dehydrated,a!==null))return Gx(e,t,o,r,a,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,a=s.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=jn(s,l),r.subtreeFlags=s.subtreeFlags&14680064),a!==null?i=jn(a,i):(i=Zn(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=nc,r}return i=e.child,e=i.sibling,r=jn(i,{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 Sd(e,t){return t=Ua({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eo(e,t,n,r){return r!==null&&ad(r),Br(t,e.child,null,n),e=Sd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Gx(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Vl(Error(T(422))),eo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=Ua({mode:"visible",children:r.children},s,0,null),i=Zn(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Br(t,e.child,null,o),t.child.memoizedState=rc(o),t.memoizedState=nc,i);if(!(t.mode&1))return eo(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(T(419)),r=Vl(i,r,void 0),eo(e,t,o,r)}if(a=(o&e.childLanes)!==0,He||a){if(r=ve,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,nn(e,s),Pt(r,e,s,-1))}return Pd(),r=Vl(Error(T(421))),eo(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=lS.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Ye=kn(s.nextSibling),et=t,ne=!0,Ct=null,e!==null&&(lt[ut++]=Xt,lt[ut++]=Yt,lt[ut++]=er,Xt=e.id,Yt=e.overflow,er=t),t=Sd(t,r.children),t.flags|=4096,t)}function zh(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xu(e.return,t,n)}function Hl(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function xg(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Te(e,t,r.children,n),r=re.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&&zh(e,n,t);else if(e.tag===19)zh(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(J(re,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&oa(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Hl(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&oa(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Hl(t,!0,n,null,i);break;case"together":Hl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Co(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function rn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=jn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=jn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Xx(e,t,n){switch(t.tag){case 3:yg(t),Ur();break;case 5:W1(t);break;case 1:Qe(t.type)&&ea(t);break;case 4:hd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;J(ra,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(J(re,re.current&1),t.flags|=128,null):n&t.child.childLanes?wg(e,t,n):(J(re,re.current&1),e=rn(e,t,n),e!==null?e.sibling:null);J(re,re.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return xg(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),J(re,re.current),r)break;return null;case 22:case 23:return t.lanes=0,gg(e,t,n)}return rn(e,t,n)}var Sg,sc,bg,Cg;Sg=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}};sc=function(){};bg=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Gn(Ut.current);var i=null;switch(n){case"input":s=ku(e,s),r=ku(e,r),i=[];break;case"select":s=ie({},s,{value:void 0}),r=ie({},r,{value:void 0}),i=[];break;case"textarea":s=Nu(e,s),r=Nu(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Zo)}Tu(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var a=s[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qs.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=s!=null?s[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||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qs.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ee("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Cg=function(e,t,n,r){n!==r&&(t.flags|=4)};function ds(e,t){if(!ne)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 ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yx(e,t,n){var r=t.pendingProps;switch(od(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return Qe(t.type)&&Jo(),ke(t),null;case 3:return r=t.stateNode,Vr(),te(qe),te(Oe),md(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Zi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&(fc(Ct),Ct=null))),sc(e,t),ke(t),null;case 5:pd(t);var s=Gn(si.current);if(n=t.type,e!==null&&t.stateNode!=null)bg(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return ke(t),null}if(e=Gn(Ut.current),Zi(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ft]=t,r[ni]=i,e=(t.mode&1)!==0,n){case"dialog":ee("cancel",r),ee("close",r);break;case"iframe":case"object":case"embed":ee("load",r);break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],r);break;case"source":ee("error",r);break;case"img":case"image":case"link":ee("error",r),ee("load",r);break;case"details":ee("toggle",r);break;case"input":Gf(r,i),ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ee("invalid",r);break;case"textarea":Yf(r,i),ee("invalid",r)}Tu(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var a=i[o];o==="children"?typeof a=="string"?r.textContent!==a&&(i.suppressHydrationWarning!==!0&&Yi(r.textContent,a,e),s=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(i.suppressHydrationWarning!==!0&&Yi(r.textContent,a,e),s=["children",""+a]):Qs.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&ee("scroll",r)}switch(n){case"input":Vi(r),Xf(r,i,!0);break;case"textarea":Vi(r),Zf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Zo)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xm(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[Ft]=t,e[ni]=r,Sg(e,t,!1,!1),t.stateNode=e;e:{switch(o=_u(n,r),n){case"dialog":ee("cancel",e),ee("close",e),s=r;break;case"iframe":case"object":case"embed":ee("load",e),s=r;break;case"video":case"audio":for(s=0;s<bs.length;s++)ee(bs[s],e);s=r;break;case"source":ee("error",e),s=r;break;case"img":case"image":case"link":ee("error",e),ee("load",e),s=r;break;case"details":ee("toggle",e),s=r;break;case"input":Gf(e,r),s=ku(e,r),ee("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=ie({},r,{value:void 0}),ee("invalid",e);break;case"textarea":Yf(e,r),s=Nu(e,r),ee("invalid",e);break;default:s=r}Tu(n,s),a=s;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Jm(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ym(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ws(e,l):typeof l=="number"&&Ws(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qs.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",e):l!=null&&qc(e,i,l,o))}switch(n){case"input":Vi(e),Xf(e,r,!1);break;case"textarea":Vi(e),Zf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_n(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?jr(e,!!r.multiple,i,!1):r.defaultValue!=null&&jr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Zo)}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 ke(t),null;case 6:if(e&&t.stateNode!=null)Cg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=Gn(si.current),Gn(Ut.current),Zi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ft]=t,(i=r.nodeValue!==n)&&(e=et,e!==null))switch(e.tag){case 3:Yi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Yi(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ft]=t,t.stateNode=r}return ke(t),null;case 13:if(te(re),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Ye!==null&&t.mode&1&&!(t.flags&128))z1(),Ur(),t.flags|=98560,i=!1;else if(i=Zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(T(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(T(317));i[Ft]=t}else Ur(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ke(t),i=!1}else Ct!==null&&(fc(Ct),Ct=null),i=!0;if(!i)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||re.current&1?he===0&&(he=3):Pd())),t.updateQueue!==null&&(t.flags|=4),ke(t),null);case 4:return Vr(),sc(e,t),e===null&&ei(t.stateNode.containerInfo),ke(t),null;case 10:return cd(t.type._context),ke(t),null;case 17:return Qe(t.type)&&Jo(),ke(t),null;case 19:if(te(re),i=t.memoizedState,i===null)return ke(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)ds(i,!1);else{if(he!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oa(e),o!==null){for(t.flags|=128,ds(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return J(re,re.current&1|2),t.child}e=e.sibling}i.tail!==null&&ue()>qr&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304)}else{if(!r)if(e=oa(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ds(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ne)return ke(t),null}else 2*ue()-i.renderingStartTime>qr&&n!==1073741824&&(t.flags|=128,r=!0,ds(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ue(),t.sibling=null,n=re.current,J(re,r?n&1|2:n&1),t):(ke(t),null);case 22:case 23:return kd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Zx(e,t){switch(od(t),t.tag){case 1:return Qe(t.type)&&Jo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vr(),te(qe),te(Oe),md(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pd(t),null;case 13:if(te(re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));Ur()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return te(re),null;case 4:return Vr(),null;case 10:return cd(t.type._context),null;case 22:case 23:return kd(),null;case 24:return null;default:return null}}var to=!1,Pe=!1,Jx=typeof WeakSet=="function"?WeakSet:Set,z=null;function Pr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ic(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Uh=!1;function eS(e,t){if(Bu=Go,e=P1(),sd(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 s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.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 p;d!==n||s!==0&&d.nodeType!==3||(a=o+s),d!==i||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++u===s&&(a=o),h===i&&++c===r&&(l=o),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vu={focusedElem:e,selectionRange:n},Go=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,S=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:St(t.type,y),S);g.__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(T(163))}}catch(b){oe(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return m=Uh,Uh=!1,m}function _s(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&ic(t,n,i)}s=s.next}while(s!==r)}}function $a(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 oc(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 Eg(e){var t=e.alternate;t!==null&&(e.alternate=null,Eg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ft],delete t[ni],delete t[Qu],delete t[Mx],delete t[Dx])),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 Rg(e){return e.tag===5||e.tag===3||e.tag===4}function Bh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rg(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 ac(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=Zo));else if(r!==4&&(e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function lc(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(lc(e,t,n),e=e.sibling;e!==null;)lc(e,t,n),e=e.sibling}var Se=null,bt=!1;function cn(e,t,n){for(n=n.child;n!==null;)kg(e,t,n),n=n.sibling}function kg(e,t,n){if(zt&&typeof zt.onCommitFiberUnmount=="function")try{zt.onCommitFiberUnmount(Ta,n)}catch{}switch(n.tag){case 5:Pe||Pr(n,t);case 6:var r=Se,s=bt;Se=null,cn(e,t,n),Se=r,bt=s,Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Se.removeChild(n.stateNode));break;case 18:Se!==null&&(bt?(e=Se,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),Ys(e)):Dl(Se,n.stateNode));break;case 4:r=Se,s=bt,Se=n.stateNode.containerInfo,bt=!0,cn(e,t,n),Se=r,bt=s;break;case 0:case 11:case 14:case 15:if(!Pe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&ic(n,t,o),s=s.next}while(s!==r)}cn(e,t,n);break;case 1:if(!Pe&&(Pr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){oe(n,t,a)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Pe=(r=Pe)||n.memoizedState!==null,cn(e,t,n),Pe=r):cn(e,t,n);break;default:cn(e,t,n)}}function Vh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jx),t.forEach(function(r){var s=uS.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:Se=a.stateNode,bt=!1;break e;case 3:Se=a.stateNode.containerInfo,bt=!0;break e;case 4:Se=a.stateNode.containerInfo,bt=!0;break e}a=a.return}if(Se===null)throw Error(T(160));kg(i,o,s),Se=null,bt=!1;var l=s.alternate;l!==null&&(l.return=null),s.return=null}catch(u){oe(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Pg(t,e),t=t.sibling}function Pg(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xt(t,e),At(e),r&4){try{_s(3,e,e.return),$a(3,e)}catch(y){oe(e,e.return,y)}try{_s(5,e,e.return)}catch(y){oe(e,e.return,y)}}break;case 1:xt(t,e),At(e),r&512&&n!==null&&Pr(n,n.return);break;case 5:if(xt(t,e),At(e),r&512&&n!==null&&Pr(n,n.return),e.flags&32){var s=e.stateNode;try{Ws(s,"")}catch(y){oe(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&i.type==="radio"&&i.name!=null&&Km(s,i),_u(a,o);var u=_u(a,i);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];c==="style"?Jm(s,d):c==="dangerouslySetInnerHTML"?Ym(s,d):c==="children"?Ws(s,d):qc(s,c,d,u)}switch(a){case"input":Pu(s,i);break;case"textarea":Gm(s,i);break;case"select":var h=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?jr(s,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?jr(s,!!i.multiple,i.defaultValue,!0):jr(s,!!i.multiple,i.multiple?[]:"",!1))}s[ni]=i}catch(y){oe(e,e.return,y)}}break;case 6:if(xt(t,e),At(e),r&4){if(e.stateNode===null)throw Error(T(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){oe(e,e.return,y)}}break;case 3:if(xt(t,e),At(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ys(t.containerInfo)}catch(y){oe(e,e.return,y)}break;case 4:xt(t,e),At(e);break;case 13:xt(t,e),At(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Ed=ue())),r&4&&Vh(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Pe=(u=Pe)||c,xt(t,e),Pe=u):xt(t,e),At(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(z=e,c=e.child;c!==null;){for(d=z=c;z!==null;){switch(h=z,p=h.child,h.tag){case 0:case 11:case 14:case 15:_s(4,h,h.return);break;case 1:Pr(h,h.return);var m=h.stateNode;if(typeof m.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){oe(r,n,y)}}break;case 5:Pr(h,h.return);break;case 22:if(h.memoizedState!==null){qh(d);continue}}p!==null?(p.return=h,z=p):qh(d)}c=c.sibling}e:for(c=null,d=e;;){if(d.tag===5){if(c===null){c=d;try{s=d.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(a=d.stateNode,l=d.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Zm("display",o))}catch(y){oe(e,e.return,y)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){oe(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:xt(t,e),At(e),r&4&&Vh(e);break;case 21:break;default:xt(t,e),At(e)}}function At(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Rg(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(Ws(s,""),r.flags&=-33);var i=Bh(e);lc(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,a=Bh(e);ac(e,a,o);break;default:throw Error(T(161))}}catch(l){oe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function tS(e,t,n){z=e,Og(e)}function Og(e,t,n){for(var r=(e.mode&1)!==0;z!==null;){var s=z,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||to;if(!o){var a=s.alternate,l=a!==null&&a.memoizedState!==null||Pe;a=to;var u=Pe;if(to=o,(Pe=l)&&!u)for(z=s;z!==null;)o=z,l=o.child,o.tag===22&&o.memoizedState!==null?Qh(s):l!==null?(l.return=o,z=l):Qh(s);for(;i!==null;)z=i,Og(i),i=i.sibling;z=s,to=a,Pe=u}Hh(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,z=i):Hh(e)}}function Hh(e){for(;z!==null;){var t=z;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Pe||$a(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Pe)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ph(t,i,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}Ph(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&&Ys(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}Pe||t.flags&512&&oc(t)}catch(h){oe(t,t.return,h)}}if(t===e){z=null;break}if(n=t.sibling,n!==null){n.return=t.return,z=n;break}z=t.return}}function qh(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var n=t.sibling;if(n!==null){n.return=t.return,z=n;break}z=t.return}}function Qh(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$a(4,t)}catch(l){oe(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(l){oe(t,s,l)}}var i=t.return;try{oc(t)}catch(l){oe(t,i,l)}break;case 5:var o=t.return;try{oc(t)}catch(l){oe(t,o,l)}}}catch(l){oe(t,t.return,l)}if(t===e){z=null;break}var a=t.sibling;if(a!==null){a.return=t.return,z=a;break}z=t.return}}var nS=Math.ceil,ua=on.ReactCurrentDispatcher,bd=on.ReactCurrentOwner,pt=on.ReactCurrentBatchConfig,W=0,ve=null,de=null,be=0,Ge=0,Or=Dn(0),he=0,li=null,nr=0,za=0,Cd=0,Is=null,Be=null,Ed=0,qr=1/0,Wt=null,ca=!1,uc=null,On=null,no=!1,wn=null,da=0,As=0,cc=null,Eo=-1,Ro=0;function Ae(){return W&6?ue():Eo!==-1?Eo:Eo=ue()}function Nn(e){return e.mode&1?W&2&&be!==0?be&-be:$x.transition!==null?(Ro===0&&(Ro=d1()),Ro):(e=Z,e!==0||(e=window.event,e=e===void 0?16:y1(e.type)),e):1}function Pt(e,t,n,r){if(50<As)throw As=0,cc=null,Error(T(185));Ci(e,n,r),(!(W&2)||e!==ve)&&(e===ve&&(!(W&2)&&(za|=n),he===4&&gn(e,be)),We(e,r),n===1&&W===0&&!(t.mode&1)&&(qr=ue()+500,Ma&&Fn()))}function We(e,t){var n=e.callbackNode;$w(e,t);var r=Ko(e,e===ve?be:0);if(r===0)n!==null&&th(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&th(n),t===1)e.tag===0?Fx(Wh.bind(null,e)):D1(Wh.bind(null,e)),Ax(function(){!(W&6)&&Fn()}),n=null;else{switch(f1(r)){case 1:n=Xc;break;case 4:n=u1;break;case 16:n=Wo;break;case 536870912:n=c1;break;default:n=Wo}n=Mg(n,Ng.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ng(e,t){if(Eo=-1,Ro=0,W&6)throw Error(T(327));var n=e.callbackNode;if(Lr()&&e.callbackNode!==n)return null;var r=Ko(e,e===ve?be:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=fa(e,r);else{t=r;var s=W;W|=2;var i=Tg();(ve!==e||be!==t)&&(Wt=null,qr=ue()+500,Yn(e,t));do try{iS();break}catch(a){jg(e,a)}while(1);ud(),ua.current=i,W=s,de!==null?t=0:(ve=null,be=0,t=he)}if(t!==0){if(t===2&&(s=Du(e),s!==0&&(r=s,t=dc(e,s))),t===1)throw n=li,Yn(e,0),gn(e,r),We(e,ue()),n;if(t===6)gn(e,r);else{if(s=e.current.alternate,!(r&30)&&!rS(s)&&(t=fa(e,r),t===2&&(i=Du(e),i!==0&&(r=i,t=dc(e,i))),t===1))throw n=li,Yn(e,0),gn(e,r),We(e,ue()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:Hn(e,Be,Wt);break;case 3:if(gn(e,r),(r&130023424)===r&&(t=Ed+500-ue(),10<t)){if(Ko(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){Ae(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=qu(Hn.bind(null,e,Be,Wt),t);break}Hn(e,Be,Wt);break;case 4:if(gn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-kt(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=ue()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nS(r/1960))-r,10<r){e.timeoutHandle=qu(Hn.bind(null,e,Be,Wt),r);break}Hn(e,Be,Wt);break;case 5:Hn(e,Be,Wt);break;default:throw Error(T(329))}}}return We(e,ue()),e.callbackNode===n?Ng.bind(null,e):null}function dc(e,t){var n=Is;return e.current.memoizedState.isDehydrated&&(Yn(e,t).flags|=256),e=fa(e,t),e!==2&&(t=Be,Be=n,t!==null&&fc(t)),e}function fc(e){Be===null?Be=e:Be.push.apply(Be,e)}function rS(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 s=n[r],i=s.getSnapshot;s=s.value;try{if(!Ot(i(),s))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 gn(e,t){for(t&=~Cd,t&=~za,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-kt(t),r=1<<n;e[n]=-1,t&=~r}}function Wh(e){if(W&6)throw Error(T(327));Lr();var t=Ko(e,0);if(!(t&1))return We(e,ue()),null;var n=fa(e,t);if(e.tag!==0&&n===2){var r=Du(e);r!==0&&(t=r,n=dc(e,r))}if(n===1)throw n=li,Yn(e,0),gn(e,t),We(e,ue()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hn(e,Be,Wt),We(e,ue()),null}function Rd(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(qr=ue()+500,Ma&&Fn())}}function rr(e){wn!==null&&wn.tag===0&&!(W&6)&&Lr();var t=W;W|=1;var n=pt.transition,r=Z;try{if(pt.transition=null,Z=1,e)return e()}finally{Z=r,pt.transition=n,W=t,!(W&6)&&Fn()}}function kd(){Ge=Or.current,te(Or)}function Yn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ix(n)),de!==null)for(n=de.return;n!==null;){var r=n;switch(od(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jo();break;case 3:Vr(),te(qe),te(Oe),md();break;case 5:pd(r);break;case 4:Vr();break;case 13:te(re);break;case 19:te(re);break;case 10:cd(r.type._context);break;case 22:case 23:kd()}n=n.return}if(ve=e,de=e=jn(e.current,null),be=Ge=t,he=0,li=null,Cd=za=nr=0,Be=Is=null,Kn!==null){for(t=0;t<Kn.length;t++)if(n=Kn[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Kn=null}return e}function jg(e,t){do{var n=de;try{if(ud(),So.current=la,aa){for(var r=se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}aa=!1}if(tr=0,ge=fe=se=null,Ts=!1,ii=0,bd.current=null,n===null||n.return===null){he=1,li=t,de=null;break}e:{var i=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 p=Ah(o);if(p!==null){p.flags&=-257,Lh(p,o,a,i,t),p.mode&1&&Ih(i,u,t),t=p,l=u;var m=t.updateQueue;if(m===null){var y=new Set;y.add(l),t.updateQueue=y}else m.add(l);break e}else{if(!(t&1)){Ih(i,u,t),Pd();break e}l=Error(T(426))}}else if(ne&&a.mode&1){var S=Ah(o);if(S!==null){!(S.flags&65536)&&(S.flags|=256),Lh(S,o,a,i,t),ad(Hr(l,a));break e}}i=l=Hr(l,a),he!==4&&(he=2),Is===null?Is=[i]:Is.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=hg(i,l,t);kh(i,g);break e;case 1:a=l;var v=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof v.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(On===null||!On.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var b=pg(i,a,t);kh(i,b);break e}}i=i.return}while(i!==null)}Ig(n)}catch(E){t=E,de===n&&n!==null&&(de=n=n.return);continue}break}while(1)}function Tg(){var e=ua.current;return ua.current=la,e===null?la:e}function Pd(){(he===0||he===3||he===2)&&(he=4),ve===null||!(nr&268435455)&&!(za&268435455)||gn(ve,be)}function fa(e,t){var n=W;W|=2;var r=Tg();(ve!==e||be!==t)&&(Wt=null,Yn(e,t));do try{sS();break}catch(s){jg(e,s)}while(1);if(ud(),W=n,ua.current=r,de!==null)throw Error(T(261));return ve=null,be=0,he}function sS(){for(;de!==null;)_g(de)}function iS(){for(;de!==null&&!jw();)_g(de)}function _g(e){var t=Lg(e.alternate,e,Ge);e.memoizedProps=e.pendingProps,t===null?Ig(e):de=t,bd.current=null}function Ig(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Zx(n,t),n!==null){n.flags&=32767,de=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{he=6,de=null;return}}else if(n=Yx(n,t,Ge),n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);he===0&&(he=5)}function Hn(e,t,n){var r=Z,s=pt.transition;try{pt.transition=null,Z=1,oS(e,t,n,r)}finally{pt.transition=s,Z=r}return null}function oS(e,t,n,r){do Lr();while(wn!==null);if(W&6)throw Error(T(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(zw(e,i),e===ve&&(de=ve=null,be=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||no||(no=!0,Mg(Wo,function(){return Lr(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=pt.transition,pt.transition=null;var o=Z;Z=1;var a=W;W|=4,bd.current=null,eS(e,n),Pg(n,e),kx(Vu),Go=!!Bu,Vu=Bu=null,e.current=n,tS(n),Tw(),W=a,Z=o,pt.transition=i}else e.current=n;if(no&&(no=!1,wn=e,da=s),i=e.pendingLanes,i===0&&(On=null),Aw(n.stateNode),We(e,ue()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(ca)throw ca=!1,e=uc,uc=null,e;return da&1&&e.tag!==0&&Lr(),i=e.pendingLanes,i&1?e===cc?As++:(As=0,cc=e):As=0,Fn(),null}function Lr(){if(wn!==null){var e=f1(da),t=pt.transition,n=Z;try{if(pt.transition=null,Z=16>e?16:e,wn===null)var r=!1;else{if(e=wn,wn=null,da=0,W&6)throw Error(T(331));var s=W;for(W|=4,z=e.current;z!==null;){var i=z,o=i.child;if(z.flags&16){var a=i.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(z=u;z!==null;){var c=z;switch(c.tag){case 0:case 11:case 15:_s(8,c,i)}var d=c.child;if(d!==null)d.return=c,z=d;else for(;z!==null;){c=z;var h=c.sibling,p=c.return;if(Eg(c),c===u){z=null;break}if(h!==null){h.return=p,z=h;break}z=p}}}var m=i.alternate;if(m!==null){var y=m.child;if(y!==null){m.child=null;do{var S=y.sibling;y.sibling=null,y=S}while(y!==null)}}z=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,z=o;else e:for(;z!==null;){if(i=z,i.flags&2048)switch(i.tag){case 0:case 11:case 15:_s(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,z=g;break e}z=i.return}}var v=e.current;for(z=v;z!==null;){o=z;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,z=w;else e:for(o=v;z!==null;){if(a=z,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:$a(9,a)}}catch(E){oe(a,a.return,E)}if(a===o){z=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,z=b;break e}z=a.return}}if(W=s,Fn(),zt&&typeof zt.onPostCommitFiberRoot=="function")try{zt.onPostCommitFiberRoot(Ta,e)}catch{}r=!0}return r}finally{Z=n,pt.transition=t}}return!1}function Kh(e,t,n){t=Hr(n,t),t=hg(e,t,1),e=Pn(e,t,1),t=Ae(),e!==null&&(Ci(e,1,t),We(e,t))}function oe(e,t,n){if(e.tag===3)Kh(e,e,n);else for(;t!==null;){if(t.tag===3){Kh(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(On===null||!On.has(r))){e=Hr(n,e),e=pg(t,e,1),t=Pn(t,e,1),e=Ae(),t!==null&&(Ci(t,1,e),We(t,e));break}}t=t.return}}function aS(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&n,ve===e&&(be&n)===n&&(he===4||he===3&&(be&130023424)===be&&500>ue()-Ed?Yn(e,0):Cd|=n),We(e,t)}function Ag(e,t){t===0&&(e.mode&1?(t=Qi,Qi<<=1,!(Qi&130023424)&&(Qi=4194304)):t=1);var n=Ae();e=nn(e,t),e!==null&&(Ci(e,t,n),We(e,n))}function lS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ag(e,n)}function uS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),Ag(e,n)}var Lg;Lg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qe.current)He=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return He=!1,Xx(e,t,n);He=!!(e.flags&131072)}else He=!1,ne&&t.flags&1048576&&F1(t,na,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Co(e,t),e=t.pendingProps;var s=zr(t,Oe.current);Ar(t,n),s=vd(null,t,r,e,s,n);var i=yd();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(i=!0,ea(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,fd(t),s.updater=Da,t.stateNode=s,s._reactInternals=t,Zu(t,r,e,n),t=tc(null,t,r,!0,i,n)):(t.tag=0,ne&&i&&id(t),Te(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Co(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=dS(r),e=St(r,e),s){case 0:t=ec(null,t,r,e,n);break e;case 1:t=Fh(null,t,r,e,n);break e;case 11:t=Mh(null,t,r,e,n);break e;case 14:t=Dh(null,t,r,St(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),ec(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Fh(e,t,r,s,n);case 3:e:{if(yg(t),e===null)throw Error(T(387));r=t.pendingProps,i=t.memoizedState,s=i.element,B1(e,t),ia(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Hr(Error(T(423)),t),t=$h(e,t,r,n,s);break e}else if(r!==s){s=Hr(Error(T(424)),t),t=$h(e,t,r,n,s);break e}else for(Ye=kn(t.stateNode.containerInfo.firstChild),et=t,ne=!0,Ct=null,n=Q1(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ur(),r===s){t=rn(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return W1(t),e===null&&Gu(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,Hu(r,s)?o=null:i!==null&&Hu(r,i)&&(t.flags|=32),vg(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&Gu(t),null;case 13:return wg(e,t,n);case 4:return hd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Br(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Mh(e,t,r,s,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,s=t.pendingProps,i=t.memoizedProps,o=s.value,J(ra,r._currentValue),r._currentValue=o,i!==null)if(Ot(i.value,o)){if(i.children===s.children&&!qe.current){t=rn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Jt(-1,n&-n),l.tag=2;var u=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Xu(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(T(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Xu(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Te(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,Ar(t,n),s=mt(s),r=r(s),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,s=St(r,t.pendingProps),s=St(r.type,s),Dh(e,t,r,s,n);case 15:return mg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:St(r,s),Co(e,t),t.tag=1,Qe(r)?(e=!0,ea(t)):e=!1,Ar(t,n),H1(t,r,s),Zu(t,r,s,n),tc(null,t,r,!0,e,n);case 19:return xg(e,t,n);case 22:return gg(e,t,n)}throw Error(T(156,t.tag))};function Mg(e,t){return l1(e,t)}function cS(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 ht(e,t,n,r){return new cS(e,t,n,r)}function Od(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dS(e){if(typeof e=="function")return Od(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Wc)return 11;if(e===Kc)return 14}return 2}function jn(e,t){var n=e.alternate;return n===null?(n=ht(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 ko(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Od(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case yr:return Zn(n.children,s,i,t);case Qc:o=8,s|=8;break;case bu:return e=ht(12,n,t,s|2),e.elementType=bu,e.lanes=i,e;case Cu:return e=ht(13,n,t,s),e.elementType=Cu,e.lanes=i,e;case Eu:return e=ht(19,n,t,s),e.elementType=Eu,e.lanes=i,e;case qm:return Ua(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vm:o=10;break e;case Hm:o=9;break e;case Wc:o=11;break e;case Kc:o=14;break e;case hn:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=ht(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Zn(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function Ua(e,t,n,r){return e=ht(22,e,r,t),e.elementType=qm,e.lanes=n,e.stateNode={isHidden:!1},e}function ql(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function Ql(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fS(e,t,n,r,s){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=kl(0),this.expirationTimes=kl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kl(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Nd(e,t,n,r,s,i,o,a,l){return e=new fS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fd(i),e}function hS(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:vr,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Dg(e){if(!e)return In;e=e._reactInternals;e:{if(lr(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Qe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Qe(n))return M1(e,n,t)}return t}function Fg(e,t,n,r,s,i,o,a,l){return e=Nd(n,r,!0,e,s,i,o,a,l),e.context=Dg(null),n=e.current,r=Ae(),s=Nn(n),i=Jt(r,s),i.callback=t??null,Pn(n,i,s),e.current.lanes=s,Ci(e,s,r),We(e,r),e}function Ba(e,t,n,r){var s=t.current,i=Ae(),o=Nn(s);return n=Dg(n),t.context===null?t.context=n:t.pendingContext=n,t=Jt(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Pn(s,t,o),e!==null&&(Pt(e,s,o,i),xo(e,s,o)),o}function ha(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 Gh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jd(e,t){Gh(e,t),(e=e.alternate)&&Gh(e,t)}function pS(){return null}var $g=typeof reportError=="function"?reportError:function(e){console.error(e)};function Td(e){this._internalRoot=e}Va.prototype.render=Td.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Ba(e,t,null,null)};Va.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rr(function(){Ba(null,e,null,null)}),t[tn]=null}};function Va(e){this._internalRoot=e}Va.prototype.unstable_scheduleHydration=function(e){if(e){var t=m1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<mn.length&&t!==0&&t<mn[n].priority;n++);mn.splice(n,0,e),n===0&&v1(e)}};function _d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ha(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Xh(){}function mS(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=ha(o);i.call(u)}}var o=Fg(t,r,e,0,null,!1,!1,"",Xh);return e._reactRootContainer=o,e[tn]=o.current,ei(e.nodeType===8?e.parentNode:e),rr(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var a=r;r=function(){var u=ha(l);a.call(u)}}var l=Nd(e,0,!1,null,null,!1,!1,"",Xh);return e._reactRootContainer=l,e[tn]=l.current,ei(e.nodeType===8?e.parentNode:e),rr(function(){Ba(t,l,n,r)}),l}function qa(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var a=s;s=function(){var l=ha(o);a.call(l)}}Ba(t,o,e,s)}else o=mS(n,t,e,s,r);return ha(o)}h1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ss(t.pendingLanes);n!==0&&(Yc(t,n|1),We(t,ue()),!(W&6)&&(qr=ue()+500,Fn()))}break;case 13:rr(function(){var r=nn(e,1);if(r!==null){var s=Ae();Pt(r,e,1,s)}}),jd(e,1)}};Zc=function(e){if(e.tag===13){var t=nn(e,134217728);if(t!==null){var n=Ae();Pt(t,e,134217728,n)}jd(e,134217728)}};p1=function(e){if(e.tag===13){var t=Nn(e),n=nn(e,t);if(n!==null){var r=Ae();Pt(n,e,t,r)}jd(e,t)}};m1=function(){return Z};g1=function(e,t){var n=Z;try{return Z=e,t()}finally{Z=n}};Au=function(e,t,n){switch(t){case"input":if(Pu(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 s=La(r);if(!s)throw Error(T(90));Wm(r),Pu(r,s)}}}break;case"textarea":Gm(e,n);break;case"select":t=n.value,t!=null&&jr(e,!!n.multiple,t,!1)}};n1=Rd;r1=rr;var gS={usingClientEntryPoint:!1,Events:[Ri,br,La,e1,t1,Rd]},fs={findFiberByHostInstance:Wn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vS={bundleType:fs.bundleType,version:fs.version,rendererPackageName:fs.rendererPackageName,rendererConfig:fs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=o1(e),e===null?null:e.stateNode},findFiberByHostInstance:fs.findFiberByHostInstance||pS,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 ro=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ro.isDisabled&&ro.supportsFiber)try{Ta=ro.inject(vS),zt=ro}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gS;rt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_d(t))throw Error(T(200));return hS(e,t,null,n)};rt.createRoot=function(e,t){if(!_d(e))throw Error(T(299));var n=!1,r="",s=$g;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Nd(e,1,!1,null,null,n,!1,r,s),e[tn]=t.current,ei(e.nodeType===8?e.parentNode:e),new Td(t)};rt.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(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=o1(t),e=e===null?null:e.stateNode,e};rt.flushSync=function(e){return rr(e)};rt.hydrate=function(e,t,n){if(!Ha(t))throw Error(T(200));return qa(null,e,t,!0,n)};rt.hydrateRoot=function(e,t,n){if(!_d(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=$g;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Fg(t,null,e,1,n??null,s,!1,i,o),e[tn]=t.current,ei(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Va(t)};rt.render=function(e,t,n){if(!Ha(t))throw Error(T(200));return qa(null,e,t,!1,n)};rt.unmountComponentAtNode=function(e){if(!Ha(e))throw Error(T(40));return e._reactRootContainer?(rr(function(){qa(null,null,e,!1,function(){e._reactRootContainer=null,e[tn]=null})}),!0):!1};rt.unstable_batchedUpdates=Rd;rt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ha(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return qa(e,t,n,!1,r)};rt.version="18.2.0-next-9e3b772b8-20220608";function zg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zg)}catch(e){console.error(e)}}zg(),Fm.exports=rt;var Pi=Fm.exports,Ug={exports:{}},Bg={};/**
|
|
41
|
+
`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Zc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var J4=typeof WeakMap=="function"?WeakMap:Map;function $y(e,t,n){n=Un(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jl||(Jl=!0,Nf=r),bf(e,t)},n}function zy(e,t,n){n=Un(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){bf(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){bf(e,t),typeof r!="function"&&(br===null?br=new Set([this]):br.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Ag(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new J4;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=f3.bind(null,e,t,n),t.then(e,e))}function Ig(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 _g(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,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=Un(-1,1),t.tag=2,xr(n,t,1))),n.lanes|=1),e)}var Z4=Yn.ReactCurrentOwner,ht=!1;function Je(e,t,n,r){t.child=e===null?yy(t,null,n,r):ti(t,e.child,n,r)}function Mg(e,t,n,r,s){n=n.render;var i=t.ref;return qs(t,s),r=Vp(e,t,n,r,i,s),n=Up(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Qn(e,t,s)):(ye&&n&&Rp(t),t.flags|=1,Je(e,t,r,s),t.child)}function Lg(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!Zp(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,By(e,t,i,r,s)):(e=ul(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Eo,n(o,r)&&e.ref===t.ref)return Qn(e,t,s)}return t.flags|=1,e=Cr(i,r),e.ref=t.ref,e.return=t,t.child=e}function By(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(Eo(i,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(ht=!0);else return t.lanes=e.lanes,Qn(e,t,s)}return Sf(e,t,n,r,s)}function Vy(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},he(Ds,St),St|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,he(Ds,St),St|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,he(Ds,St),St|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,he(Ds,St),St|=r;return Je(e,t,s,n),t.child}function Uy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Sf(e,t,n,r,s){var i=gt(n)?ts:Ke.current;return i=Zs(t,i),qs(t,s),n=Vp(e,t,n,r,i,s),r=Up(),e!==null&&!ht?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Qn(e,t,s)):(ye&&r&&Rp(t),t.flags|=1,Je(e,t,n,s),t.child)}function Dg(e,t,n,r,s){if(gt(n)){var i=!0;Vl(t)}else i=!1;if(qs(t,s),t.stateNode===null)ol(e,t),gy(t,n,r),xf(t,n,r,s),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Kt(u):(u=gt(n)?ts:Ke.current,u=Zs(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&jg(t,o,r,u),sr=!1;var p=t.memoizedState;o.state=p,Ql(t,r,o,s),a=t.memoizedState,l!==r||p!==a||mt.current||sr?(typeof c=="function"&&(wf(t,n,c,r),a=t.memoizedState),(l=sr||Pg(t,n,l,r,p,a,u))?(f||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=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,hy(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:nn(t.type,l),o.props=u,f=t.pendingProps,p=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Kt(a):(a=gt(n)?ts:Ke.current,a=Zs(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||p!==a)&&jg(t,o,r,a),sr=!1,p=t.memoizedState,o.state=p,Ql(t,r,o,s);var v=t.memoizedState;l!==f||p!==v||mt.current||sr?(typeof h=="function"&&(wf(t,n,h,r),v=t.memoizedState),(u=sr||Pg(t,n,u,r,p,v,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),o.props=r,o.state=v,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Cf(e,t,n,r,i,s)}function Cf(e,t,n,r,s,i){Uy(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return s&&Sg(t,n,!1),Qn(e,t,i);r=t.stateNode,Z4.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ti(t,e.child,null,i),t.child=ti(t,null,l,i)):Je(e,t,l,i),t.memoizedState=r.state,s&&Sg(t,n,!0),t.child}function Hy(e){var t=e.stateNode;t.pendingContext?bg(e,t.pendingContext,t.pendingContext!==t.context):t.context&&bg(e,t.context,!1),Fp(e,t.containerInfo)}function Fg(e,t,n,r,s){return ei(),Ap(s),t.flags|=256,Je(e,t,n,r),t.child}var Ef={dehydrated:null,treeContext:null,retryLane:0};function Tf(e){return{baseLanes:e,cachePool:null,transitions:null}}function qy(e,t,n){var r=t.pendingProps,s=xe.current,i=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),he(xe,s&1),e===null)return vf(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,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=$u(o,r,0,null),e=Jr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Tf(n),t.memoizedState=Ef,e):Wp(t,o));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return e3(e,t,o,r,l,s,n);if(i){i=r.fallback,o=t.mode,s=e.child,l=s.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Cr(s,a),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=Cr(l,i):(i=Jr(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o=o===null?Tf(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=e.childLanes&~n,t.memoizedState=Ef,r}return i=e.child,e=i.sibling,r=Cr(i,{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 Wp(e,t){return t=$u({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ma(e,t,n,r){return r!==null&&Ap(r),ti(t,e.child,null,n),e=Wp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function e3(e,t,n,r,s,i,o){if(n)return t.flags&256?(t.flags&=-257,r=Zc(Error(U(422))),Ma(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=$u({mode:"visible",children:r.children},s,0,null),i=Jr(i,s,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ti(t,e.child,null,o),t.child.memoizedState=Tf(o),t.memoizedState=Ef,i);if(!(t.mode&1))return Ma(e,t,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(U(419)),r=Zc(i,r,void 0),Ma(e,t,o,r)}if(l=(o&e.childLanes)!==0,ht||l){if(r=Fe,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=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:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,Wn(e,s),dn(r,e,s,-1))}return Jp(),r=Zc(Error(U(421))),Ma(e,t,o,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=p3.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Tt=wr(s.nextSibling),jt=t,ye=!0,on=null,e!==null&&($t[zt++]=$n,$t[zt++]=zn,$t[zt++]=ns,$n=e.id,zn=e.overflow,ns=t),t=Wp(t,r.children),t.flags|=4096,t)}function $g(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),yf(e.return,t,n)}function ed(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function Wy(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(Je(e,t,r.children,n),r=xe.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&&$g(e,n,t);else if(e.tag===19)$g(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(he(xe,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Gl(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),ed(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Gl(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}ed(t,!0,n,null,i);break;case"together":ed(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ol(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Qn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ss|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=Cr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function t3(e,t,n){switch(t.tag){case 3:Hy(t),ei();break;case 5:wy(t);break;case 1:gt(t.type)&&Vl(t);break;case 4:Fp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;he(ql,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(he(xe,xe.current&1),t.flags|=128,null):n&t.child.childLanes?qy(e,t,n):(he(xe,xe.current&1),e=Qn(e,t,n),e!==null?e.sibling:null);he(xe,xe.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wy(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),he(xe,xe.current),r)break;return null;case 22:case 23:return t.lanes=0,Vy(e,t,n)}return Qn(e,t,n)}var Qy,kf,Gy,Ky;Qy=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}};kf=function(){};Gy=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,Gr(Tn.current);var i=null;switch(n){case"input":s=Qd(e,s),r=Qd(e,r),i=[];break;case"select":s=Ce({},s,{value:void 0}),r=Ce({},r,{value:void 0}),i=[];break;case"textarea":s=Xd(e,s),r=Xd(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=zl)}Jd(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(vo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(vo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ge("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Ky=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ri(e,t){if(!ye)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 Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function n3(e,t,n){var r=t.pendingProps;switch(Np(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return gt(t.type)&&Bl(),Qe(t),null;case 3:return r=t.stateNode,ni(),ve(mt),ve(Ke),zp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ia(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,on!==null&&(_f(on),on=null))),kf(e,t),Qe(t),null;case 5:$p(t);var s=Gr(Oo.current);if(n=t.type,e!==null&&t.stateNode!=null)Gy(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Qe(t),null}if(e=Gr(Tn.current),Ia(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[xn]=t,r[Po]=i,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(s=0;s<Hi.length;s++)ge(Hi[s],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":Gm(r,i),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},ge("invalid",r);break;case"textarea":Xm(r,i),ge("invalid",r)}Jd(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Aa(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Aa(r.textContent,l,e),s=["children",""+l]):vo.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&ge("scroll",r)}switch(n){case"input":Ea(r),Km(r,i,!0);break;case"textarea":Ea(r),Ym(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=zl)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=S1(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[xn]=t,e[Po]=r,Qy(e,t,!1,!1),t.stateNode=e;e:{switch(o=Zd(n,r),n){case"dialog":ge("cancel",e),ge("close",e),s=r;break;case"iframe":case"object":case"embed":ge("load",e),s=r;break;case"video":case"audio":for(s=0;s<Hi.length;s++)ge(Hi[s],e);s=r;break;case"source":ge("error",e),s=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),s=r;break;case"details":ge("toggle",e),s=r;break;case"input":Gm(e,r),s=Qd(e,r),ge("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=Ce({},r,{value:void 0}),ge("invalid",e);break;case"textarea":Xm(e,r),s=Xd(e,r),ge("invalid",e);break;default:s=r}Jd(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?T1(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&C1(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&yo(e,a):typeof a=="number"&&yo(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(vo.hasOwnProperty(i)?a!=null&&i==="onScroll"&&ge("scroll",e):a!=null&&gp(e,i,a,o))}switch(n){case"input":Ea(e),Km(e,r,!1);break;case"textarea":Ea(e),Ym(e);break;case"option":r.value!=null&&e.setAttribute("value",""+kr(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Bs(e,!!r.multiple,i,!1):r.defaultValue!=null&&Bs(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=zl)}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 Qe(t),null;case 6:if(e&&t.stateNode!=null)Ky(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(n=Gr(Oo.current),Gr(Tn.current),Ia(t)){if(r=t.stateNode,n=t.memoizedProps,r[xn]=t,(i=r.nodeValue!==n)&&(e=jt,e!==null))switch(e.tag){case 3:Aa(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Aa(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[xn]=t,t.stateNode=r}return Qe(t),null;case 13:if(ve(xe),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ye&&Tt!==null&&t.mode&1&&!(t.flags&128))fy(),ei(),t.flags|=98560,i=!1;else if(i=Ia(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(U(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(U(317));i[xn]=t}else ei(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Qe(t),i=!1}else on!==null&&(_f(on),on=null),i=!0;if(!i)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||xe.current&1?Me===0&&(Me=3):Jp())),t.updateQueue!==null&&(t.flags|=4),Qe(t),null);case 4:return ni(),kf(e,t),e===null&&To(t.stateNode.containerInfo),Qe(t),null;case 10:return Mp(t.type._context),Qe(t),null;case 17:return gt(t.type)&&Bl(),Qe(t),null;case 19:if(ve(xe),i=t.memoizedState,i===null)return Qe(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Ri(i,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Gl(e),o!==null){for(t.flags|=128,Ri(i,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,e=o.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return he(xe,xe.current&1|2),t.child}e=e.sibling}i.tail!==null&&Re()>si&&(t.flags|=128,r=!0,Ri(i,!1),t.lanes=4194304)}else{if(!r)if(e=Gl(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ri(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ye)return Qe(t),null}else 2*Re()-i.renderingStartTime>si&&n!==1073741824&&(t.flags|=128,r=!0,Ri(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Re(),t.sibling=null,n=xe.current,he(xe,r?n&1|2:n&1),t):(Qe(t),null);case 22:case 23:return Yp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?St&1073741824&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function r3(e,t){switch(Np(t),t.tag){case 1:return gt(t.type)&&Bl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ni(),ve(mt),ve(Ke),zp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $p(t),null;case 13:if(ve(xe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ve(xe),null;case 4:return ni(),null;case 10:return Mp(t.type._context),null;case 22:case 23:return Yp(),null;case 24:return null;default:return null}}var La=!1,Ge=!1,s3=typeof WeakSet=="function"?WeakSet:Set,G=null;function Ls(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function Pf(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var zg=!1;function i3(e,t){if(cf=Dl,e=Z1(),Op(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 s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var h;f!==n||s!==0&&f.nodeType!==3||(l=o+s),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++u===s&&(l=o),p===i&&++c===r&&(a=o),(h=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(df={focusedElem:e,selectionRange:n},Dl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,b=v.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?w:nn(t.type,w),b);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(x){Ee(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return v=zg,zg=!1,v}function eo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Pf(t,n,i)}s=s.next}while(s!==r)}}function Du(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 jf(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 Xy(e){var t=e.alternate;t!==null&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xn],delete t[Po],delete t[hf],delete t[B4],delete t[V4])),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 Yy(e){return e.tag===5||e.tag===3||e.tag===4}function Bg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Yy(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 Of(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=zl));else if(r!==4&&(e=e.child,e!==null))for(Of(e,t,n),e=e.sibling;e!==null;)Of(e,t,n),e=e.sibling}function Rf(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(Rf(e,t,n),e=e.sibling;e!==null;)Rf(e,t,n),e=e.sibling}var Be=null,sn=!1;function er(e,t,n){for(n=n.child;n!==null;)Jy(e,t,n),n=n.sibling}function Jy(e,t,n){if(En&&typeof En.onCommitFiberUnmount=="function")try{En.onCommitFiberUnmount(Ou,n)}catch{}switch(n.tag){case 5:Ge||Ls(n,t);case 6:var r=Be,s=sn;Be=null,er(e,t,n),Be=r,sn=s,Be!==null&&(sn?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(sn?(e=Be,n=n.stateNode,e.nodeType===8?Qc(e.parentNode,n):e.nodeType===1&&Qc(e,n),So(e)):Qc(Be,n.stateNode));break;case 4:r=Be,s=sn,Be=n.stateNode.containerInfo,sn=!0,er(e,t,n),Be=r,sn=s;break;case 0:case 11:case 14:case 15:if(!Ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Pf(n,t,o),s=s.next}while(s!==r)}er(e,t,n);break;case 1:if(!Ge&&(Ls(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ee(n,t,l)}er(e,t,n);break;case 21:er(e,t,n);break;case 22:n.mode&1?(Ge=(r=Ge)||n.memoizedState!==null,er(e,t,n),Ge=r):er(e,t,n);break;default:er(e,t,n)}}function Vg(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new s3),t.forEach(function(r){var s=h3.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function tn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:Be=l.stateNode,sn=!1;break e;case 3:Be=l.stateNode.containerInfo,sn=!0;break e;case 4:Be=l.stateNode.containerInfo,sn=!0;break e}l=l.return}if(Be===null)throw Error(U(160));Jy(i,o,s),Be=null,sn=!1;var a=s.alternate;a!==null&&(a.return=null),s.return=null}catch(u){Ee(s,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zy(t,e),t=t.sibling}function Zy(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(tn(t,e),mn(e),r&4){try{eo(3,e,e.return),Du(3,e)}catch(w){Ee(e,e.return,w)}try{eo(5,e,e.return)}catch(w){Ee(e,e.return,w)}}break;case 1:tn(t,e),mn(e),r&512&&n!==null&&Ls(n,n.return);break;case 5:if(tn(t,e),mn(e),r&512&&n!==null&&Ls(n,n.return),e.flags&32){var s=e.stateNode;try{yo(s,"")}catch(w){Ee(e,e.return,w)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,o=n!==null?n.memoizedProps:i,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&x1(s,i),Zd(l,o);var u=Zd(l,i);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?T1(s,f):c==="dangerouslySetInnerHTML"?C1(s,f):c==="children"?yo(s,f):gp(s,c,f,u)}switch(l){case"input":Gd(s,i);break;case"textarea":b1(s,i);break;case"select":var p=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?Bs(s,!!i.multiple,h,!1):p!==!!i.multiple&&(i.defaultValue!=null?Bs(s,!!i.multiple,i.defaultValue,!0):Bs(s,!!i.multiple,i.multiple?[]:"",!1))}s[Po]=i}catch(w){Ee(e,e.return,w)}}break;case 6:if(tn(t,e),mn(e),r&4){if(e.stateNode===null)throw Error(U(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(w){Ee(e,e.return,w)}}break;case 3:if(tn(t,e),mn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{So(t.containerInfo)}catch(w){Ee(e,e.return,w)}break;case 4:tn(t,e),mn(e);break;case 13:tn(t,e),mn(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Kp=Re())),r&4&&Vg(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(Ge=(u=Ge)||c,tn(t,e),Ge=u):tn(t,e),mn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(G=e,c=e.child;c!==null;){for(f=G=c;G!==null;){switch(p=G,h=p.child,p.tag){case 0:case 11:case 14:case 15:eo(4,p,p.return);break;case 1:Ls(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(w){Ee(r,n,w)}}break;case 5:Ls(p,p.return);break;case 22:if(p.memoizedState!==null){Hg(f);continue}}h!==null?(h.return=p,G=h):Hg(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=E1("display",o))}catch(w){Ee(e,e.return,w)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(w){Ee(e,e.return,w)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:tn(t,e),mn(e),r&4&&Vg(e);break;case 21:break;default:tn(t,e),mn(e)}}function mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Yy(n)){var r=n;break e}n=n.return}throw Error(U(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(yo(s,""),r.flags&=-33);var i=Bg(e);Rf(e,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Bg(e);Of(e,l,o);break;default:throw Error(U(161))}}catch(a){Ee(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function o3(e,t,n){G=e,ew(e)}function ew(e,t,n){for(var r=(e.mode&1)!==0;G!==null;){var s=G,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||La;if(!o){var l=s.alternate,a=l!==null&&l.memoizedState!==null||Ge;l=La;var u=Ge;if(La=o,(Ge=a)&&!u)for(G=s;G!==null;)o=G,a=o.child,o.tag===22&&o.memoizedState!==null?qg(s):a!==null?(a.return=o,G=a):qg(s);for(;i!==null;)G=i,ew(i),i=i.sibling;G=s,La=l,Ge=u}Ug(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,G=i):Ug(e)}}function Ug(e){for(;G!==null;){var t=G;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ge||Du(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ge)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:nn(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&kg(t,i,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}kg(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.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 f=c.dehydrated;f!==null&&So(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Ge||t.flags&512&&jf(t)}catch(p){Ee(t,t.return,p)}}if(t===e){G=null;break}if(n=t.sibling,n!==null){n.return=t.return,G=n;break}G=t.return}}function Hg(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var n=t.sibling;if(n!==null){n.return=t.return,G=n;break}G=t.return}}function qg(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Du(4,t)}catch(a){Ee(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(a){Ee(t,s,a)}}var i=t.return;try{jf(t)}catch(a){Ee(t,i,a)}break;case 5:var o=t.return;try{jf(t)}catch(a){Ee(t,o,a)}}}catch(a){Ee(t,t.return,a)}if(t===e){G=null;break}var l=t.sibling;if(l!==null){l.return=t.return,G=l;break}G=t.return}}var a3=Math.ceil,Yl=Yn.ReactCurrentDispatcher,Qp=Yn.ReactCurrentOwner,Wt=Yn.ReactCurrentBatchConfig,ae=0,Fe=null,Ie=null,Ve=0,St=0,Ds=_r(0),Me=0,Io=null,ss=0,Fu=0,Gp=0,to=null,pt=null,Kp=0,si=1/0,Ln=null,Jl=!1,Nf=null,br=null,Da=!1,ur=null,Zl=0,no=0,Af=null,al=-1,ll=0;function rt(){return ae&6?Re():al!==-1?al:al=Re()}function Sr(e){return e.mode&1?ae&2&&Ve!==0?Ve&-Ve:H4.transition!==null?(ll===0&&(ll=D1()),ll):(e=de,e!==0||(e=window.event,e=e===void 0?16:H1(e.type)),e):1}function dn(e,t,n,r){if(50<no)throw no=0,Af=null,Error(U(185));Zo(e,n,r),(!(ae&2)||e!==Fe)&&(e===Fe&&(!(ae&2)&&(Fu|=n),Me===4&&or(e,Ve)),vt(e,r),n===1&&ae===0&&!(t.mode&1)&&(si=Re()+500,_u&&Mr()))}function vt(e,t){var n=e.callbackNode;HE(e,t);var r=Ll(e,e===Fe?Ve:0);if(r===0)n!==null&&eg(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&eg(n),t===1)e.tag===0?U4(Wg.bind(null,e)):uy(Wg.bind(null,e)),$4(function(){!(ae&6)&&Mr()}),n=null;else{switch(F1(r)){case 1:n=bp;break;case 4:n=M1;break;case 16:n=Ml;break;case 536870912:n=L1;break;default:n=Ml}n=lw(n,tw.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tw(e,t){if(al=-1,ll=0,ae&6)throw Error(U(327));var n=e.callbackNode;if(Ws()&&e.callbackNode!==n)return null;var r=Ll(e,e===Fe?Ve:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=eu(e,r);else{t=r;var s=ae;ae|=2;var i=rw();(Fe!==e||Ve!==t)&&(Ln=null,si=Re()+500,Yr(e,t));do try{c3();break}catch(l){nw(e,l)}while(1);_p(),Yl.current=i,ae=s,Ie!==null?t=0:(Fe=null,Ve=0,t=Me)}if(t!==0){if(t===2&&(s=sf(e),s!==0&&(r=s,t=If(e,s))),t===1)throw n=Io,Yr(e,0),or(e,r),vt(e,Re()),n;if(t===6)or(e,r);else{if(s=e.current.alternate,!(r&30)&&!l3(s)&&(t=eu(e,r),t===2&&(i=sf(e),i!==0&&(r=i,t=If(e,i))),t===1))throw n=Io,Yr(e,0),or(e,r),vt(e,Re()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error(U(345));case 2:Ur(e,pt,Ln);break;case 3:if(or(e,r),(r&130023424)===r&&(t=Kp+500-Re(),10<t)){if(Ll(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){rt(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=pf(Ur.bind(null,e,pt,Ln),t);break}Ur(e,pt,Ln);break;case 4:if(or(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var o=31-cn(r);i=1<<o,o=t[o],o>s&&(s=o),r&=~i}if(r=s,r=Re()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*a3(r/1960))-r,10<r){e.timeoutHandle=pf(Ur.bind(null,e,pt,Ln),r);break}Ur(e,pt,Ln);break;case 5:Ur(e,pt,Ln);break;default:throw Error(U(329))}}}return vt(e,Re()),e.callbackNode===n?tw.bind(null,e):null}function If(e,t){var n=to;return e.current.memoizedState.isDehydrated&&(Yr(e,t).flags|=256),e=eu(e,t),e!==2&&(t=pt,pt=n,t!==null&&_f(t)),e}function _f(e){pt===null?pt=e:pt.push.apply(pt,e)}function l3(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 s=n[r],i=s.getSnapshot;s=s.value;try{if(!fn(i(),s))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 or(e,t){for(t&=~Gp,t&=~Fu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-cn(t),r=1<<n;e[n]=-1,t&=~r}}function Wg(e){if(ae&6)throw Error(U(327));Ws();var t=Ll(e,0);if(!(t&1))return vt(e,Re()),null;var n=eu(e,t);if(e.tag!==0&&n===2){var r=sf(e);r!==0&&(t=r,n=If(e,r))}if(n===1)throw n=Io,Yr(e,0),or(e,t),vt(e,Re()),n;if(n===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ur(e,pt,Ln),vt(e,Re()),null}function Xp(e,t){var n=ae;ae|=1;try{return e(t)}finally{ae=n,ae===0&&(si=Re()+500,_u&&Mr())}}function is(e){ur!==null&&ur.tag===0&&!(ae&6)&&Ws();var t=ae;ae|=1;var n=Wt.transition,r=de;try{if(Wt.transition=null,de=1,e)return e()}finally{de=r,Wt.transition=n,ae=t,!(ae&6)&&Mr()}}function Yp(){St=Ds.current,ve(Ds)}function Yr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,F4(n)),Ie!==null)for(n=Ie.return;n!==null;){var r=n;switch(Np(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Bl();break;case 3:ni(),ve(mt),ve(Ke),zp();break;case 5:$p(r);break;case 4:ni();break;case 13:ve(xe);break;case 19:ve(xe);break;case 10:Mp(r.type._context);break;case 22:case 23:Yp()}n=n.return}if(Fe=e,Ie=e=Cr(e.current,null),Ve=St=t,Me=0,Io=null,Gp=Fu=ss=0,pt=to=null,Qr!==null){for(t=0;t<Qr.length;t++)if(n=Qr[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Qr=null}return e}function nw(e,t){do{var n=Ie;try{if(_p(),sl.current=Xl,Kl){for(var r=Se.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Kl=!1}if(rs=0,De=_e=Se=null,Zi=!1,Ro=0,Qp.current=null,n===null||n.return===null){Me=1,Io=t,Ie=null;break}e:{var i=e,o=n.return,l=n,a=t;if(t=Ve,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=Ig(o);if(h!==null){h.flags&=-257,_g(h,o,l,i,t),h.mode&1&&Ag(i,u,t),t=h,a=u;var v=t.updateQueue;if(v===null){var w=new Set;w.add(a),t.updateQueue=w}else v.add(a);break e}else{if(!(t&1)){Ag(i,u,t),Jp();break e}a=Error(U(426))}}else if(ye&&l.mode&1){var b=Ig(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),_g(b,o,l,i,t),Ap(ri(a,l));break e}}i=a=ri(a,l),Me!==4&&(Me=2),to===null?to=[i]:to.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=$y(i,a,t);Tg(i,g);break e;case 1:l=a;var m=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(br===null||!br.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=zy(i,l,t);Tg(i,x);break e}}i=i.return}while(i!==null)}iw(n)}catch(C){t=C,Ie===n&&n!==null&&(Ie=n=n.return);continue}break}while(1)}function rw(){var e=Yl.current;return Yl.current=Xl,e===null?Xl:e}function Jp(){(Me===0||Me===3||Me===2)&&(Me=4),Fe===null||!(ss&268435455)&&!(Fu&268435455)||or(Fe,Ve)}function eu(e,t){var n=ae;ae|=2;var r=rw();(Fe!==e||Ve!==t)&&(Ln=null,Yr(e,t));do try{u3();break}catch(s){nw(e,s)}while(1);if(_p(),ae=n,Yl.current=r,Ie!==null)throw Error(U(261));return Fe=null,Ve=0,Me}function u3(){for(;Ie!==null;)sw(Ie)}function c3(){for(;Ie!==null&&!ME();)sw(Ie)}function sw(e){var t=aw(e.alternate,e,St);e.memoizedProps=e.pendingProps,t===null?iw(e):Ie=t,Qp.current=null}function iw(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=r3(n,t),n!==null){n.flags&=32767,Ie=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Me=6,Ie=null;return}}else if(n=n3(n,t,St),n!==null){Ie=n;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);Me===0&&(Me=5)}function Ur(e,t,n){var r=de,s=Wt.transition;try{Wt.transition=null,de=1,d3(e,t,n,r)}finally{Wt.transition=s,de=r}return null}function d3(e,t,n,r){do Ws();while(ur!==null);if(ae&6)throw Error(U(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(qE(e,i),e===Fe&&(Ie=Fe=null,Ve=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Da||(Da=!0,lw(Ml,function(){return Ws(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Wt.transition,Wt.transition=null;var o=de;de=1;var l=ae;ae|=4,Qp.current=null,i3(e,n),Zy(n,e),N4(df),Dl=!!cf,df=cf=null,e.current=n,o3(n),LE(),ae=l,de=o,Wt.transition=i}else e.current=n;if(Da&&(Da=!1,ur=e,Zl=s),i=e.pendingLanes,i===0&&(br=null),$E(n.stateNode),vt(e,Re()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Jl)throw Jl=!1,e=Nf,Nf=null,e;return Zl&1&&e.tag!==0&&Ws(),i=e.pendingLanes,i&1?e===Af?no++:(no=0,Af=e):no=0,Mr(),null}function Ws(){if(ur!==null){var e=F1(Zl),t=Wt.transition,n=de;try{if(Wt.transition=null,de=16>e?16:e,ur===null)var r=!1;else{if(e=ur,ur=null,Zl=0,ae&6)throw Error(U(331));var s=ae;for(ae|=4,G=e.current;G!==null;){var i=G,o=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(G=u;G!==null;){var c=G;switch(c.tag){case 0:case 11:case 15:eo(8,c,i)}var f=c.child;if(f!==null)f.return=c,G=f;else for(;G!==null;){c=G;var p=c.sibling,h=c.return;if(Xy(c),c===u){G=null;break}if(p!==null){p.return=h,G=p;break}G=h}}}var v=i.alternate;if(v!==null){var w=v.child;if(w!==null){v.child=null;do{var b=w.sibling;w.sibling=null,w=b}while(w!==null)}}G=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,G=o;else e:for(;G!==null;){if(i=G,i.flags&2048)switch(i.tag){case 0:case 11:case 15:eo(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,G=g;break e}G=i.return}}var m=e.current;for(G=m;G!==null;){o=G;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,G=y;else e:for(o=m;G!==null;){if(l=G,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Du(9,l)}}catch(C){Ee(l,l.return,C)}if(l===o){G=null;break e}var x=l.sibling;if(x!==null){x.return=l.return,G=x;break e}G=l.return}}if(ae=s,Mr(),En&&typeof En.onPostCommitFiberRoot=="function")try{En.onPostCommitFiberRoot(Ou,e)}catch{}r=!0}return r}finally{de=n,Wt.transition=t}}return!1}function Qg(e,t,n){t=ri(n,t),t=$y(e,t,1),e=xr(e,t,1),t=rt(),e!==null&&(Zo(e,1,t),vt(e,t))}function Ee(e,t,n){if(e.tag===3)Qg(e,e,n);else for(;t!==null;){if(t.tag===3){Qg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(br===null||!br.has(r))){e=ri(n,e),e=zy(t,e,1),t=xr(t,e,1),e=rt(),t!==null&&(Zo(t,1,e),vt(t,e));break}}t=t.return}}function f3(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=rt(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(Ve&n)===n&&(Me===4||Me===3&&(Ve&130023424)===Ve&&500>Re()-Kp?Yr(e,0):Gp|=n),vt(e,t)}function ow(e,t){t===0&&(e.mode&1?(t=Pa,Pa<<=1,!(Pa&130023424)&&(Pa=4194304)):t=1);var n=rt();e=Wn(e,t),e!==null&&(Zo(e,t,n),vt(e,n))}function p3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ow(e,n)}function h3(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(U(314))}r!==null&&r.delete(t),ow(e,n)}var aw;aw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||mt.current)ht=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ht=!1,t3(e,t,n);ht=!!(e.flags&131072)}else ht=!1,ye&&t.flags&1048576&&cy(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ol(e,t),e=t.pendingProps;var s=Zs(t,Ke.current);qs(t,n),s=Vp(null,t,r,e,s,n);var i=Up();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,gt(r)?(i=!0,Vl(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Dp(t),s.updater=Mu,t.stateNode=s,s._reactInternals=t,xf(t,r,e,n),t=Cf(null,t,r,!0,i,n)):(t.tag=0,ye&&i&&Rp(t),Je(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ol(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=g3(r),e=nn(r,e),s){case 0:t=Sf(null,t,r,e,n);break e;case 1:t=Dg(null,t,r,e,n);break e;case 11:t=Mg(null,t,r,e,n);break e;case 14:t=Lg(null,t,r,nn(r.type,e),n);break e}throw Error(U(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),Sf(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),Dg(e,t,r,s,n);case 3:e:{if(Hy(t),e===null)throw Error(U(387));r=t.pendingProps,i=t.memoizedState,s=i.element,hy(e,t),Ql(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=ri(Error(U(423)),t),t=Fg(e,t,r,n,s);break e}else if(r!==s){s=ri(Error(U(424)),t),t=Fg(e,t,r,n,s);break e}else for(Tt=wr(t.stateNode.containerInfo.firstChild),jt=t,ye=!0,on=null,n=yy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ei(),r===s){t=Qn(e,t,n);break e}Je(e,t,r,n)}t=t.child}return t;case 5:return wy(t),e===null&&vf(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,o=s.children,ff(r,s)?o=null:i!==null&&ff(r,i)&&(t.flags|=32),Uy(e,t),Je(e,t,o,n),t.child;case 6:return e===null&&vf(t),null;case 13:return qy(e,t,n);case 4:return Fp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ti(t,null,r,n):Je(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),Mg(e,t,r,s,n);case 7:return Je(e,t,t.pendingProps,n),t.child;case 8:return Je(e,t,t.pendingProps.children,n),t.child;case 12:return Je(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,o=s.value,he(ql,r._currentValue),r._currentValue=o,i!==null)if(fn(i.value,o)){if(i.children===s.children&&!mt.current){t=Qn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Un(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),yf(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(U(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),yf(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Je(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,qs(t,n),s=Kt(s),r=r(s),t.flags|=1,Je(e,t,r,n),t.child;case 14:return r=t.type,s=nn(r,t.pendingProps),s=nn(r.type,s),Lg(e,t,r,s,n);case 15:return By(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:nn(r,s),ol(e,t),t.tag=1,gt(r)?(e=!0,Vl(t)):e=!1,qs(t,n),gy(t,r,s),xf(t,r,s,n),Cf(null,t,r,!0,e,n);case 19:return Wy(e,t,n);case 22:return Vy(e,t,n)}throw Error(U(156,t.tag))};function lw(e,t){return _1(e,t)}function m3(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 qt(e,t,n,r){return new m3(e,t,n,r)}function Zp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function g3(e){if(typeof e=="function")return Zp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===yp)return 11;if(e===wp)return 14}return 2}function Cr(e,t){var n=e.alternate;return n===null?(n=qt(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 ul(e,t,n,r,s,i){var o=2;if(r=e,typeof e=="function")Zp(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ps:return Jr(n.children,s,i,t);case vp:o=8,s|=8;break;case Ud:return e=qt(12,n,t,s|2),e.elementType=Ud,e.lanes=i,e;case Hd:return e=qt(13,n,t,s),e.elementType=Hd,e.lanes=i,e;case qd:return e=qt(19,n,t,s),e.elementType=qd,e.lanes=i,e;case v1:return $u(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case m1:o=10;break e;case g1:o=9;break e;case yp:o=11;break e;case wp:o=14;break e;case rr:o=16,r=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=qt(o,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function Jr(e,t,n,r){return e=qt(7,e,r,t),e.lanes=n,e}function $u(e,t,n,r){return e=qt(22,e,r,t),e.elementType=v1,e.lanes=n,e.stateNode={isHidden:!1},e}function td(e,t,n){return e=qt(6,e,null,t),e.lanes=n,e}function nd(e,t,n){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function v3(e,t,n,r,s){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=Lc(0),this.expirationTimes=Lc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lc(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function eh(e,t,n,r,s,i,o,l,a){return e=new v3(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=qt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Dp(i),e}function y3(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ks,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function uw(e){if(!e)return Pr;e=e._reactInternals;e:{if(fs(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(gt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var n=e.type;if(gt(n))return ly(e,n,t)}return t}function cw(e,t,n,r,s,i,o,l,a){return e=eh(n,r,!0,e,s,i,o,l,a),e.context=uw(null),n=e.current,r=rt(),s=Sr(n),i=Un(r,s),i.callback=t??null,xr(n,i,s),e.current.lanes=s,Zo(e,s,r),vt(e,r),e}function zu(e,t,n,r){var s=t.current,i=rt(),o=Sr(s);return n=uw(n),t.context===null?t.context=n:t.pendingContext=n,t=Un(i,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=xr(s,t,o),e!==null&&(dn(e,s,o,i),rl(e,s,o)),o}function tu(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 Gg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function th(e,t){Gg(e,t),(e=e.alternate)&&Gg(e,t)}function w3(){return null}var dw=typeof reportError=="function"?reportError:function(e){console.error(e)};function nh(e){this._internalRoot=e}Bu.prototype.render=nh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));zu(e,t,null,null)};Bu.prototype.unmount=nh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;is(function(){zu(null,e,null,null)}),t[qn]=null}};function Bu(e){this._internalRoot=e}Bu.prototype.unstable_scheduleHydration=function(e){if(e){var t=B1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ir.length&&t!==0&&t<ir[n].priority;n++);ir.splice(n,0,e),n===0&&U1(e)}};function rh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Kg(){}function x3(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=tu(o);i.call(u)}}var o=cw(t,r,e,0,null,!1,!1,"",Kg);return e._reactRootContainer=o,e[qn]=o.current,To(e.nodeType===8?e.parentNode:e),is(),o}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=tu(a);l.call(u)}}var a=eh(e,0,!1,null,null,!1,!1,"",Kg);return e._reactRootContainer=a,e[qn]=a.current,To(e.nodeType===8?e.parentNode:e),is(function(){zu(t,a,n,r)}),a}function Uu(e,t,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var a=tu(o);l.call(a)}}zu(t,o,e,s)}else o=x3(n,t,e,s,r);return tu(o)}$1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ui(t.pendingLanes);n!==0&&(Sp(t,n|1),vt(t,Re()),!(ae&6)&&(si=Re()+500,Mr()))}break;case 13:is(function(){var r=Wn(e,1);if(r!==null){var s=rt();dn(r,e,1,s)}}),th(e,1)}};Cp=function(e){if(e.tag===13){var t=Wn(e,134217728);if(t!==null){var n=rt();dn(t,e,134217728,n)}th(e,134217728)}};z1=function(e){if(e.tag===13){var t=Sr(e),n=Wn(e,t);if(n!==null){var r=rt();dn(n,e,t,r)}th(e,t)}};B1=function(){return de};V1=function(e,t){var n=de;try{return de=e,t()}finally{de=n}};tf=function(e,t,n){switch(t){case"input":if(Gd(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 s=Iu(r);if(!s)throw Error(U(90));w1(r),Gd(r,s)}}}break;case"textarea":b1(e,n);break;case"select":t=n.value,t!=null&&Bs(e,!!n.multiple,t,!1)}};j1=Xp;O1=is;var b3={usingClientEntryPoint:!1,Events:[ta,Ns,Iu,k1,P1,Xp]},Ni={findFiberByHostInstance:Wr,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},S3={bundleType:Ni.bundleType,version:Ni.version,rendererPackageName:Ni.rendererPackageName,rendererConfig:Ni.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Yn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=A1(e),e===null?null:e.stateNode},findFiberByHostInstance:Ni.findFiberByHostInstance||w3,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 Fa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fa.isDisabled&&Fa.supportsFiber)try{Ou=Fa.inject(S3),En=Fa}catch{}}At.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b3;At.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rh(t))throw Error(U(200));return y3(e,t,null,n)};At.createRoot=function(e,t){if(!rh(e))throw Error(U(299));var n=!1,r="",s=dw;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=eh(e,1,!1,null,null,n,!1,r,s),e[qn]=t.current,To(e.nodeType===8?e.parentNode:e),new nh(t)};At.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(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=A1(t),e=e===null?null:e.stateNode,e};At.flushSync=function(e){return is(e)};At.hydrate=function(e,t,n){if(!Vu(t))throw Error(U(200));return Uu(null,e,t,!0,n)};At.hydrateRoot=function(e,t,n){if(!rh(e))throw Error(U(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=dw;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=cw(t,null,e,1,n??null,s,!1,i,o),e[qn]=t.current,To(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new Bu(t)};At.render=function(e,t,n){if(!Vu(t))throw Error(U(200));return Uu(null,e,t,!1,n)};At.unmountComponentAtNode=function(e){if(!Vu(e))throw Error(U(40));return e._reactRootContainer?(is(function(){Uu(null,null,e,!1,function(){e._reactRootContainer=null,e[qn]=null})}),!0):!1};At.unstable_batchedUpdates=Xp;At.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vu(n))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return Uu(e,t,n,!1,r)};At.version="18.2.0-next-9e3b772b8-20220608";function fw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fw)}catch(e){console.error(e)}}fw(),c1.exports=At;var Nn=c1.exports,pw={exports:{}},hw={};/**
|
|
42
42
|
* @license React
|
|
43
43
|
* use-sync-external-store-shim.production.min.js
|
|
44
44
|
*
|
|
@@ -46,7 +46,7 @@ Error generating stack: `+i.message+`
|
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/var Qr=x;function yS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wS=typeof Object.is=="function"?Object.is:yS,xS=Qr.useState,SS=Qr.useEffect,bS=Qr.useLayoutEffect,CS=Qr.useDebugValue;function ES(e,t){var n=t(),r=xS({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return bS(function(){s.value=n,s.getSnapshot=t,Wl(s)&&i({inst:s})},[e,n,t]),SS(function(){return Wl(s)&&i({inst:s}),e(function(){Wl(s)&&i({inst:s})})},[e]),CS(n),n}function Wl(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wS(e,n)}catch{return!0}}function RS(e,t){return t()}var kS=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?RS:ES;Bg.useSyncExternalStore=Qr.useSyncExternalStore!==void 0?Qr.useSyncExternalStore:kS;Ug.exports=Bg;var Vg=Ug.exports;const Hg=Vg.useSyncExternalStore,Yh=x.createContext(void 0),qg=x.createContext(!1);function Qg(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Yh),window.ReactQueryClientContext):Yh)}const it=({context:e}={})=>{const t=x.useContext(Qg(e,x.useContext(qg)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},PS=({client:e,children:t,context:n,contextSharing:r=!1})=>{x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=Qg(n,r);return x.createElement(qg.Provider,{value:!n&&r},x.createElement(s.Provider,{value:e},t))},Wg=x.createContext(!1),OS=()=>x.useContext(Wg);Wg.Provider;function NS(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const jS=x.createContext(NS()),TS=()=>x.useContext(jS);function Kg(e,t){return typeof e=="function"?e(...t):!!e}const _S=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},IS=e=>{x.useEffect(()=>{e.clearReset()},[e])},AS=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Kg(n,[e.error,r]),LS=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},MS=(e,t)=>e.isLoading&&e.isFetching&&!t,DS=(e,t,n)=>(e==null?void 0:e.suspense)&&MS(t,n),FS=(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 Gg(e,t){const n=it({context:e.context}),r=OS(),s=TS(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ae.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ae.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ae.batchCalls(i.onSettled)),LS(i),_S(i,s),IS(s);const[o]=x.useState(()=>new t(n,i)),a=o.getOptimisticResult(i);if(Hg(x.useCallback(l=>{const u=r?()=>{}:o.subscribe(ae.batchCalls(l));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),x.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),DS(i,a,r))throw FS(i,o,s);if(AS({result:a,errorResetBoundary:s,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw a.error;return i.notifyOnChangeProps?a:o.trackResult(a)}function Id(e,t,n){const r=gr(e,t,n);return Gg(r,Dm)}function an(e,t,n){const r=Z2(e,t,n),s=it({context:r.context}),[i]=x.useState(()=>new pw(s,r));x.useEffect(()=>{i.setOptions(r)},[i,r]);const o=Hg(x.useCallback(l=>i.subscribe(ae.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),a=x.useCallback((l,u)=>{i.mutate(l,u).catch($S)},[i]);if(o.error&&Kg(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:a,mutateAsync:o.mutate}}function $S(){}function zS(e,t,n){const r=gr(e,t,n);return Gg(r,hw)}function US(){return Id({queryKey:["session"],queryFn:async()=>await Y.session().getSession(),suspense:!0})}function Xg({appCode:e}){return Id({queryKey:["conf"],queryFn:async()=>await Y.conf().getConf(e),suspense:!0})}const Yg=x.createContext(null);function BS({children:e,params:t}){const n=t.app,{t:r}=pe(),s=r(n),i=US(),o=Xg({appCode:n}),a=(o==null?void 0:o.isSuccess)&&(i==null?void 0:i.isSuccess);x.useEffect(()=>{var u,c;(c=document.querySelector("html"))==null||c.setAttribute("lang",((u=i==null?void 0:i.data)==null?void 0:u.currentLanguage)||"fr")},[i==null?void 0:i.data]),x.useEffect(()=>{document.title=`${s}`},[n,i.data,s]);const l=x.useMemo(()=>{var u,c,d,h,p,m;return{appCode:n,applications:(u=o==null?void 0:o.data)==null?void 0:u.applications,confQuery:o,currentApp:(c=o==null?void 0:o.data)==null?void 0:c.currentApp,currentLanguage:(d=i==null?void 0:i.data)==null?void 0:d.currentLanguage,init:a,sessionQuery:i,user:(h=i==null?void 0:i.data)==null?void 0:h.user,userDescription:(p=i==null?void 0:i.data)==null?void 0:p.userDescription,userProfile:(m=i==null?void 0:i.data)==null?void 0:m.userProfile}},[n,o,a,i]);return f.jsx(Yg.Provider,{value:l,children:e})}function yt(){const e=x.useContext(Yg);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function VS(){var r;const{sessionQuery:e}=yt(),t=new Set;return(r=e==null?void 0:e.data)==null?void 0:r.bookmarkedApps.filter(s=>{const i=t.has(s.displayName);return t.add(s.displayName),!i})}function Ls(e){const[t,n]=x.useState();return x.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await Y.rights().sessionHasWorkflowRight(e):await Y.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}function HS(){const e=typeof document<"u",[t,n]=x.useState(()=>document.title);return x.useEffect(()=>{e&&n(document.title)},[e]),t}function Zg(){const[e,t]=x.useState(!1),n=x.useRef(null),r=()=>{t(!0)},s=()=>{t(!1)};return x.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseover",r),i.addEventListener("mouseout",s),()=>{i.removeEventListener("mouseover",r),i.removeEventListener("mouseout",s)}},[n]),[n,e]}function qS({user:e,avatar:t}){const{t:n}=pe(),r=HS(),[s,i]=x.useState(!0),[o,a]=Zg(),l=x.useId(),u=x.useId(),c=t,d=e==null?void 0:e.username,h=n("welcome",{username:e==null?void 0:e.firstName}),p=VS(),m=Ls("net.atos.entng.community.controllers.CommunityController|view"),y=Ls("org.entcore.conversation.controllers.ConversationController|view"),S=Ls("fr.openent.searchengine.controllers.SearchEngineController|view"),g=x.useCallback(()=>{i(!s)},[s]),v=async()=>{await Y.session().logout(),window.location.href="/auth/login"};return x.useMemo(()=>({title:r,bookmarkedApps:p,appsRef:o,isAppsHovered:a,popoverAppsId:l,popoverSearchId:u,userAvatar:c,userName:d,welcomeUser:h,communityWorkflow:m,conversationWorflow:y,searchWorkflow:S,isCollapsed:s,toggleCollapsedNav:g,handleLogout:v}),[o,p,m,y,a,s,l,u,S,r,g,c,d,h])}function Jg(){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 s(a){const l=t(a);return l?`bg-app-${l}`:"bg-app-placeholder"}function i(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:s,getBackgroundLightIconClass:i,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function Qa(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}const e0=x.createContext(null);function QS({children:e}){var s;const{appCode:t}=yt(),n=Xg({appCode:t});x.useEffect(()=>{var u,c,d,h,p,m,y,S,g;const i=document.getElementById("favicon");i.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=(p=(h=(d=n==null?void 0:n.data)==null?void 0:d.theme)==null?void 0:h.bootstrapVersion)==null?void 0:p.split("-"),a=o?o[o.length-1]:void 0;[{data:"data-skin",value:(y=(m=n==null?void 0:n.data)==null?void 0:m.theme)==null?void 0:y.skinName},{data:"data-theme",value:(g=(S=n==null?void 0:n.data)==null?void 0:S.theme)==null?void 0:g.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=x.useMemo(()=>{var i;return{theme:(i=n==null?void 0:n.data)==null?void 0:i.theme}},[(s=n==null?void 0:n.data)==null?void 0:s.theme]);return f.jsx(e0.Provider,{value:r,children:e})}function Ad(){const e=x.useContext(e0);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function Ld(){const{user:e,userDescription:t,userProfile:n}=yt(),{theme:r}=Ad();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function WS(){const[e,t]=x.useState("pending"),{currentApp:n}=yt();x.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await Y.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const Zh=["mousedown","touchstart"];function t0(e,t,n){const r=x.useRef();return x.useEffect(()=>{const s=i=>{const{target:o}=i??{};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&&!i.composedPath().includes(u))&&!a&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||Zh).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||Zh).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}let KS={data:""},GS=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||KS,XS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,YS=/\/\*[^]*?\*\/| +/g,Jh=/\n+/g,vn=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?vn(o,i):i+"{"+vn(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=vn(o,t?t.replace(/([^,])+/g,a=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,a):a?a+" "+l:l)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=vn.p?vn.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},Qt={},n0=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+n0(e[n]);return t}return e},ZS=(e,t,n,r,s)=>{let i=n0(e),o=Qt[i]||(Qt[i]=(l=>{let u=0,c=11;for(;u<l.length;)c=101*c+l.charCodeAt(u++)>>>0;return"go"+c})(i));if(!Qt[o]){let l=i!==e?e:(u=>{let c,d,h=[{}];for(;c=XS.exec(u.replace(YS,""));)c[4]?h.shift():c[3]?(d=c[3].replace(Jh," ").trim(),h.unshift(h[0][d]=h[0][d]||{})):h[0][c[1]]=c[2].replace(Jh," ").trim();return h[0]})(e);Qt[o]=vn(s?{["@keyframes "+o]:l}:l,n?"":"."+o)}let a=n&&Qt.g?Qt.g:null;return n&&(Qt.g=Qt[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)})(Qt[o],t,r,a),o},JS=(e,t,n)=>e.reduce((r,s,i)=>{let o=t[i];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?"":vn(a,""):a===!1?"":a}return r+s+(o??"")},"");function Wa(e){let t=this||{},n=e.call?e(t.p):e;return ZS(n.unshift?n.raw?JS(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,GS(t.target),t.g,t.o,t.k)}let r0,hc,pc;Wa.bind({g:1});let sn=Wa.bind({k:1});function e4(e,t,n,r){vn.p=t,r0=e,hc=n,pc=r}function $n(e,t){let n=this||{};return function(){let r=arguments;function s(i,o){let a=Object.assign({},i),l=a.className||s.className;n.p=Object.assign({theme:hc&&hc()},a),n.o=/ *go\d+/.test(l),a.className=Wa.apply(n,r)+(l?" "+l:""),t&&(a.ref=o);let u=e;return e[0]&&(u=a.as||e,delete a.as),pc&&u[0]&&pc(a),r0(u,a)}return t?t(s):s}}var t4=e=>typeof e=="function",pa=(e,t)=>t4(e)?e(t):e,n4=(()=>{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}})(),r4=20,Po=new Map,s4=1e3,ep=e=>{if(Po.has(e))return;let t=setTimeout(()=>{Po.delete(e),ur({type:4,toastId:e})},s4);Po.set(e,t)},i4=e=>{let t=Po.get(e);t&&clearTimeout(t)},mc=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,r4)};case 1:return t.toast.id&&i4(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?mc(e,{type:1,toast:n}):mc(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ep(r):e.toasts.forEach(i=>{ep(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},Oo=[],No={toasts:[],pausedAt:void 0},ur=e=>{No=mc(No,e),Oo.forEach(t=>{t(No)})},o4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},a4=(e={})=>{let[t,n]=x.useState(No);x.useEffect(()=>(Oo.push(n),()=>{let s=Oo.indexOf(n);s>-1&&Oo.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||o4[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},l4=(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)||n4()}),Oi=e=>(t,n)=>{let r=l4(t,e,n);return ur({type:2,toast:r}),r.id},Ze=(e,t)=>Oi("blank")(e,t);Ze.error=Oi("error");Ze.success=Oi("success");Ze.loading=Oi("loading");Ze.custom=Oi("custom");Ze.dismiss=e=>{ur({type:3,toastId:e})};Ze.remove=e=>ur({type:4,toastId:e});Ze.promise=(e,t,n)=>{let r=Ze.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(Ze.success(pa(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Ze.error(pa(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var u4=(e,t)=>{ur({type:1,toast:{id:e,height:t}})},c4=()=>{ur({type:5,time:Date.now()})},d4=e=>{let{toasts:t,pausedAt:n}=a4(e);x.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(a=>{if(a.duration===1/0)return;let l=(a.duration||0)+a.pauseDuration-(i-a.createdAt);if(l<0){a.visible&&Ze.dismiss(a.id);return}return setTimeout(()=>Ze.dismiss(a.id),l)});return()=>{o.forEach(a=>a&&clearTimeout(a))}},[t,n]);let r=x.useCallback(()=>{n&&ur({type:6,time:Date.now()})},[n]),s=x.useCallback((i,o)=>{let{reverseOrder:a=!1,gutter:l=8,defaultPosition:u}=o||{},c=t.filter(p=>(p.position||u)===(i.position||u)&&p.height),d=c.findIndex(p=>p.id===i.id),h=c.filter((p,m)=>m<d&&p.visible).length;return c.filter(p=>p.visible).slice(...a?[h+1]:[0,h]).reduce((p,m)=>p+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:u4,startPause:c4,endPause:r,calculateOffset:s}}},f4=sn`
|
|
49
|
+
*/var ii=S;function C3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var E3=typeof Object.is=="function"?Object.is:C3,T3=ii.useState,k3=ii.useEffect,P3=ii.useLayoutEffect,j3=ii.useDebugValue;function O3(e,t){var n=t(),r=T3({inst:{value:n,getSnapshot:t}}),s=r[0].inst,i=r[1];return P3(function(){s.value=n,s.getSnapshot=t,rd(s)&&i({inst:s})},[e,n,t]),k3(function(){return rd(s)&&i({inst:s}),e(function(){rd(s)&&i({inst:s})})},[e]),j3(n),n}function rd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!E3(e,n)}catch{return!0}}function R3(e,t){return t()}var N3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?R3:O3;hw.useSyncExternalStore=ii.useSyncExternalStore!==void 0?ii.useSyncExternalStore:N3;pw.exports=hw;var mw=pw.exports;const gw=mw.useSyncExternalStore,Xg=S.createContext(void 0),vw=S.createContext(!1);function yw(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Xg),window.ReactQueryClientContext):Xg)}const _t=({context:e}={})=>{const t=S.useContext(yw(e,S.useContext(vw)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},A3=({client:e,children:t,context:n,contextSharing:r=!1})=>{S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const s=yw(n,r);return S.createElement(vw.Provider,{value:!n&&r},S.createElement(s.Provider,{value:e},t))},ww=S.createContext(!1),I3=()=>S.useContext(ww);ww.Provider;function _3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const M3=S.createContext(_3()),L3=()=>S.useContext(M3);function xw(e,t){return typeof e=="function"?e(...t):!!e}const D3=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},F3=e=>{S.useEffect(()=>{e.clearReset()},[e])},$3=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&xw(n,[e.error,r]),z3=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},B3=(e,t)=>e.isLoading&&e.isFetching&&!t,V3=(e,t,n)=>(e==null?void 0:e.suspense)&&B3(t,n),U3=(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 bw(e,t){const n=_t({context:e.context}),r=I3(),s=L3(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ke.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ke.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ke.batchCalls(i.onSettled)),z3(i),D3(i,s),F3(s);const[o]=S.useState(()=>new t(n,i)),l=o.getOptimisticResult(i);if(gw(S.useCallback(a=>{const u=r?()=>{}:o.subscribe(ke.batchCalls(a));return o.updateResult(),u},[o,r]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),S.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),V3(i,l,r))throw U3(i,o,s);if($3({result:l,errorResetBoundary:s,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw l.error;return i.notifyOnChangeProps?l:o.trackResult(l)}function sh(e,t,n){const r=Ts(e,t,n);return bw(r,u1)}function Jn(e,t,n){const r=rE(e,t,n),s=_t({context:r.context}),[i]=S.useState(()=>new wE(s,r));S.useEffect(()=>{i.setOptions(r)},[i,r]);const o=gw(S.useCallback(a=>i.subscribe(ke.batchCalls(a)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=S.useCallback((a,u)=>{i.mutate(a,u).catch(H3)},[i]);if(o.error&&xw(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}function H3(){}function q3(e,t,n){const r=Ts(e,t,n);return bw(r,yE)}var ra=e=>e.type==="checkbox",Fs=e=>e instanceof Date,Ze=e=>e==null;const Sw=e=>typeof e=="object";var Le=e=>!Ze(e)&&!Array.isArray(e)&&Sw(e)&&!Fs(e),Cw=e=>Le(e)&&e.target?ra(e.target)?e.target.checked:e.target.value:e,W3=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Ew=(e,t)=>e.has(W3(t)),Q3=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},ih=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function rn(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(ih&&(e instanceof Blob||e instanceof FileList))&&(n||Le(e)))if(t=n?[]:{},!n&&!Q3(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=rn(e[r]));else return e;return t}var sa=e=>Array.isArray(e)?e.filter(Boolean):[],Te=e=>e===void 0,W=(e,t,n)=>{if(!t||!Le(e))return n;const r=sa(t.split(/[,[\].]+?/)).reduce((s,i)=>Ze(s)?s:s[i],e);return Te(r)||r===e?Te(e[t])?n:e[t]:r},Bt=e=>typeof e=="boolean";const nu={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ln={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},In={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},G3=Y.createContext(null),oh=()=>Y.useContext(G3);var Tw=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const o=i;return t._proxyFormState[o]!==ln.all&&(t._proxyFormState[o]=!r||ln.all),n&&(n[o]=!0),e[o]}});return s},Ft=e=>Le(e)&&!Object.keys(e).length,kw=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Ft(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!r||ln.all))},cl=e=>Array.isArray(e)?e:[e],Pw=(e,t,n)=>!e||!t||e===t||cl(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function ah(e){const t=Y.useRef(e);t.current=e,Y.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function K3(e){const t=oh(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[o,l]=Y.useState(n._formState),a=Y.useRef(!0),u=Y.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=Y.useRef(s);return c.current=s,ah({disabled:r,next:f=>a.current&&Pw(c.current,f.name,i)&&kw(f,u.current,n._updateFormState)&&l({...n._formState,...f}),subject:n._subjects.state}),Y.useEffect(()=>(a.current=!0,u.current.isValid&&n._updateValid(!0),()=>{a.current=!1}),[n]),Tw(o,n,u.current,!1)}var Sn=e=>typeof e=="string",jw=(e,t,n,r,s)=>Sn(e)?(r&&t.watch.add(e),W(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),W(n,i))):(r&&(t.watchAll=!0),n);function X3(e){const t=oh(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:o}=e||{},l=Y.useRef(r);l.current=r,ah({disabled:i,subject:n._subjects.values,next:c=>{Pw(l.current,c.name,o)&&u(rn(jw(l.current,n._names,c.values||n._formValues,!1,s)))}});const[a,u]=Y.useState(n._getWatch(r,s));return Y.useEffect(()=>n._removeUnmounted()),a}var lh=e=>/^\w*$/.test(e),Ow=e=>sa(e.replace(/["|']|\]/g,"").split(/\.|\[/)),pe=(e,t,n)=>{let r=-1;const s=lh(t)?[t]:Ow(t),i=s.length,o=i-1;for(;++r<i;){const l=s[r];let a=n;if(r!==o){const u=e[l];a=Le(u)||Array.isArray(u)?u:isNaN(+s[r+1])?{}:[]}e[l]=a,e=e[l]}return e};function Y3(e){const t=oh(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i}=e,o=Ew(s._names.array,n),l=X3({control:s,name:n,defaultValue:W(s._formValues,n,W(s._defaultValues,n,e.defaultValue)),exact:!0}),a=K3({control:s,name:n}),u=Y.useRef(s.register(n,{...e.rules,value:l,...Bt(e.disabled)?{disabled:e.disabled}:{}}));return Y.useEffect(()=>{const c=s._options.shouldUnregister||i,f=(p,h)=>{const v=W(s._fields,p);v&&(v._f.mount=h)};if(f(n,!0),c){const p=rn(W(s._options.defaultValues,n));pe(s._defaultValues,n,p),Te(W(s._formValues,n))&&pe(s._formValues,n,p)}return()=>{(o?c&&!s._state.action:c)?s.unregister(n):f(n,!1)}},[n,s,o,i]),Y.useEffect(()=>{W(s._fields,n)&&s._updateDisabledField({disabled:r,fields:s._fields,name:n,value:W(s._fields,n)._f.value})},[r,n,s]),{field:{name:n,value:l,...Bt(r)||Bt(a.disabled)?{disabled:a.disabled||r}:{},onChange:Y.useCallback(c=>u.current.onChange({target:{value:Cw(c),name:n},type:nu.CHANGE}),[n]),onBlur:Y.useCallback(()=>u.current.onBlur({target:{value:W(s._formValues,n),name:n},type:nu.BLUR}),[n,s]),ref:c=>{const f=W(s._fields,n);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:p=>c.setCustomValidity(p),reportValidity:()=>c.reportValidity()})}},formState:a,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!W(a.errors,n)},isDirty:{enumerable:!0,get:()=>!!W(a.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!W(a.touchedFields,n)},error:{enumerable:!0,get:()=>W(a.errors,n)}})}}const Hu=e=>e.render(Y3(e));var J3=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},Yg=e=>({isOnSubmit:!e||e===ln.onSubmit,isOnBlur:e===ln.onBlur,isOnChange:e===ln.onChange,isOnAll:e===ln.all,isOnTouch:e===ln.onTouched}),Jg=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ro=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=W(e,s);if(i){const{_f:o,...l}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],s)&&!r)break;if(o.ref&&t(o.ref,o.name)&&!r)break;ro(l,t)}else Le(l)&&ro(l,t)}}};var Z3=(e,t,n)=>{const r=sa(W(e,n));return pe(r,"root",t[n]),pe(e,n,r),e},uh=e=>e.type==="file",cr=e=>typeof e=="function",ru=e=>{if(!ih)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},dl=e=>Sn(e),ch=e=>e.type==="radio",su=e=>e instanceof RegExp;const Zg={value:!1,isValid:!1},ev={value:!0,isValid:!0};var Rw=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Te(e[0].attributes.value)?Te(e[0].value)||e[0].value===""?ev:{value:e[0].value,isValid:!0}:ev:Zg}return Zg};const tv={isValid:!1,value:null};var Nw=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,tv):tv;function nv(e,t,n="validate"){if(dl(e)||Array.isArray(e)&&e.every(dl)||Bt(e)&&!e)return{type:n,message:dl(e)?e:"",ref:t}}var Cs=e=>Le(e)&&!su(e)?e:{value:e,message:""},rv=async(e,t,n,r,s)=>{const{ref:i,refs:o,required:l,maxLength:a,minLength:u,min:c,max:f,pattern:p,validate:h,name:v,valueAsNumber:w,mount:b,disabled:g}=e._f,m=W(t,v);if(!b||g)return{};const y=o?o[0]:i,x=R=>{r&&y.reportValidity&&(y.setCustomValidity(Bt(R)?"":R||""),y.reportValidity())},C={},T=ch(i),E=ra(i),j=T||E,P=(w||uh(i))&&Te(i.value)&&Te(m)||ru(i)&&i.value===""||m===""||Array.isArray(m)&&!m.length,M=J3.bind(null,v,n,C),N=(R,I,L,k=In.maxLength,A=In.minLength)=>{const $=R?I:L;C[v]={type:R?k:A,message:$,ref:i,...M(R?k:A,$)}};if(s?!Array.isArray(m)||!m.length:l&&(!j&&(P||Ze(m))||Bt(m)&&!m||E&&!Rw(o).isValid||T&&!Nw(o).isValid)){const{value:R,message:I}=dl(l)?{value:!!l,message:l}:Cs(l);if(R&&(C[v]={type:In.required,message:I,ref:y,...M(In.required,I)},!n))return x(I),C}if(!P&&(!Ze(c)||!Ze(f))){let R,I;const L=Cs(f),k=Cs(c);if(!Ze(m)&&!isNaN(m)){const A=i.valueAsNumber||m&&+m;Ze(L.value)||(R=A>L.value),Ze(k.value)||(I=A<k.value)}else{const A=i.valueAsDate||new Date(m),$=B=>new Date(new Date().toDateString()+" "+B),_=i.type=="time",F=i.type=="week";Sn(L.value)&&m&&(R=_?$(m)>$(L.value):F?m>L.value:A>new Date(L.value)),Sn(k.value)&&m&&(I=_?$(m)<$(k.value):F?m<k.value:A<new Date(k.value))}if((R||I)&&(N(!!R,L.message,k.message,In.max,In.min),!n))return x(C[v].message),C}if((a||u)&&!P&&(Sn(m)||s&&Array.isArray(m))){const R=Cs(a),I=Cs(u),L=!Ze(R.value)&&m.length>+R.value,k=!Ze(I.value)&&m.length<+I.value;if((L||k)&&(N(L,R.message,I.message),!n))return x(C[v].message),C}if(p&&!P&&Sn(m)){const{value:R,message:I}=Cs(p);if(su(R)&&!m.match(R)&&(C[v]={type:In.pattern,message:I,ref:i,...M(In.pattern,I)},!n))return x(I),C}if(h){if(cr(h)){const R=await h(m,t),I=nv(R,y);if(I&&(C[v]={...I,...M(In.validate,I.message)},!n))return x(I.message),C}else if(Le(h)){let R={};for(const I in h){if(!Ft(R)&&!n)break;const L=nv(await h[I](m,t),y,I);L&&(R={...L,...M(I,L.message)},x(L.message),n&&(C[v]=R))}if(!Ft(R)&&(C[v]={ref:y,...R},!n))return C}}return x(!0),C};function eT(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Te(e)?r++:e[t[r++]];return e}function tT(e){for(const t in e)if(e.hasOwnProperty(t)&&!Te(e[t]))return!1;return!0}function ze(e,t){const n=Array.isArray(t)?t:lh(t)?[t]:Ow(t),r=n.length===1?e:eT(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(Le(r)&&Ft(r)||Array.isArray(r)&&tT(r))&&ze(e,n.slice(0,-1)),e}var sd=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},iu=e=>Ze(e)||!Sw(e);function Kr(e,t){if(iu(e)||iu(t))return e===t;if(Fs(e)&&Fs(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const s of n){const i=e[s];if(!r.includes(s))return!1;if(s!=="ref"){const o=t[s];if(Fs(i)&&Fs(o)||Le(i)&&Le(o)||Array.isArray(i)&&Array.isArray(o)?!Kr(i,o):i!==o)return!1}}return!0}var Aw=e=>e.type==="select-multiple",nT=e=>ch(e)||ra(e),id=e=>ru(e)&&e.isConnected,Iw=e=>{for(const t in e)if(cr(e[t]))return!0;return!1};function ou(e,t={}){const n=Array.isArray(e);if(Le(e)||n)for(const r in e)Array.isArray(e[r])||Le(e[r])&&!Iw(e[r])?(t[r]=Array.isArray(e[r])?[]:{},ou(e[r],t[r])):Ze(e[r])||(t[r]=!0);return t}function _w(e,t,n){const r=Array.isArray(e);if(Le(e)||r)for(const s in e)Array.isArray(e[s])||Le(e[s])&&!Iw(e[s])?Te(t)||iu(n[s])?n[s]=Array.isArray(e[s])?ou(e[s],[]):{...ou(e[s])}:_w(e[s],Ze(t)?{}:t[s],n[s]):n[s]=!Kr(e[s],t[s]);return n}var od=(e,t)=>_w(e,t,ou(t)),Mw=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Te(e)?e:t?e===""?NaN:e&&+e:n&&Sn(e)?new Date(e):r?r(e):e;function ad(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return uh(t)?t.files:ch(t)?Nw(e.refs).value:Aw(t)?[...t.selectedOptions].map(({value:n})=>n):ra(t)?Rw(e.refs).value:Mw(Te(t.value)?e.ref.value:t.value,e)}var rT=(e,t,n,r)=>{const s={};for(const i of e){const o=W(t,i);o&&pe(s,i,o._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},Ai=e=>Te(e)?e:su(e)?e.source:Le(e)?su(e.value)?e.value.source:e.value:e,sT=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function sv(e,t,n){const r=W(e,n);if(r||lh(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),o=W(t,i),l=W(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};s.pop()}return{name:n}}var iT=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,oT=(e,t)=>!sa(W(e,t)).length&&ze(e,t);const aT={mode:ln.onSubmit,reValidateMode:ln.onChange,shouldFocusError:!0};function lT(e={},t){let n={...aT,...e},r={submitCount:0,isDirty:!1,isLoading:cr(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:!1},s={},i=Le(n.defaultValues)||Le(n.values)?rn(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:rn(i),l={action:!1,mount:!1,watch:!1},a={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={values:sd(),array:sd(),state:sd()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,v=Yg(n.mode),w=Yg(n.reValidateMode),b=n.criteriaMode===ln.all,g=O=>D=>{clearTimeout(c),c=setTimeout(O,D)},m=async O=>{if(f.isValid||O){const D=n.resolver?Ft((await M()).errors):await R(s,!0);D!==r.isValid&&p.state.next({isValid:D})}},y=O=>f.isValidating&&p.state.next({isValidating:O}),x=(O,D=[],z,Q,q=!0,H=!0)=>{if(Q&&z){if(l.action=!0,H&&Array.isArray(W(s,O))){const X=z(W(s,O),Q.argA,Q.argB);q&&pe(s,O,X)}if(H&&Array.isArray(W(r.errors,O))){const X=z(W(r.errors,O),Q.argA,Q.argB);q&&pe(r.errors,O,X),oT(r.errors,O)}if(f.touchedFields&&H&&Array.isArray(W(r.touchedFields,O))){const X=z(W(r.touchedFields,O),Q.argA,Q.argB);q&&pe(r.touchedFields,O,X)}f.dirtyFields&&(r.dirtyFields=od(i,o)),p.state.next({name:O,isDirty:L(O,D),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else pe(o,O,D)},C=(O,D)=>{pe(r.errors,O,D),p.state.next({errors:r.errors})},T=O=>{r.errors=O,p.state.next({errors:r.errors,isValid:!1})},E=(O,D,z,Q)=>{const q=W(s,O);if(q){const H=W(o,O,Te(z)?W(i,O):z);Te(H)||Q&&Q.defaultChecked||D?pe(o,O,D?H:ad(q._f)):$(O,H),l.mount&&m()}},j=(O,D,z,Q,q)=>{let H=!1,X=!1;const ce={name:O},Oe=!!(W(s,O)&&W(s,O)._f.disabled);if(!z||Q){f.isDirty&&(X=r.isDirty,r.isDirty=ce.isDirty=L(),H=X!==ce.isDirty);const hn=Oe||Kr(W(i,O),D);X=!!(!Oe&&W(r.dirtyFields,O)),hn||Oe?ze(r.dirtyFields,O):pe(r.dirtyFields,O,!0),ce.dirtyFields=r.dirtyFields,H=H||f.dirtyFields&&X!==!hn}if(z){const hn=W(r.touchedFields,O);hn||(pe(r.touchedFields,O,z),ce.touchedFields=r.touchedFields,H=H||f.touchedFields&&hn!==z)}return H&&q&&p.state.next(ce),H?ce:{}},P=(O,D,z,Q)=>{const q=W(r.errors,O),H=f.isValid&&Bt(D)&&r.isValid!==D;if(e.delayError&&z?(u=g(()=>C(O,z)),u(e.delayError)):(clearTimeout(c),u=null,z?pe(r.errors,O,z):ze(r.errors,O)),(z?!Kr(q,z):q)||!Ft(Q)||H){const X={...Q,...H&&Bt(D)?{isValid:D}:{},errors:r.errors,name:O};r={...r,...X},p.state.next(X)}y(!1)},M=async O=>n.resolver(o,n.context,rT(O||a.mount,s,n.criteriaMode,n.shouldUseNativeValidation)),N=async O=>{const{errors:D}=await M(O);if(O)for(const z of O){const Q=W(D,z);Q?pe(r.errors,z,Q):ze(r.errors,z)}else r.errors=D;return D},R=async(O,D,z={valid:!0})=>{for(const Q in O){const q=O[Q];if(q){const{_f:H,...X}=q;if(H){const ce=a.array.has(H.name),Oe=await rv(q,o,b,n.shouldUseNativeValidation&&!D,ce);if(Oe[H.name]&&(z.valid=!1,D))break;!D&&(W(Oe,H.name)?ce?Z3(r.errors,Oe,H.name):pe(r.errors,H.name,Oe[H.name]):ze(r.errors,H.name))}X&&await R(X,D,z)}}return z.valid},I=()=>{for(const O of a.unMount){const D=W(s,O);D&&(D._f.refs?D._f.refs.every(z=>!id(z)):!id(D._f.ref))&&je(O)}a.unMount=new Set},L=(O,D)=>(O&&D&&pe(o,O,D),!Kr(le(),i)),k=(O,D,z)=>jw(O,a,{...l.mount?o:Te(D)?i:Sn(O)?{[O]:D}:D},z,D),A=O=>sa(W(l.mount?o:i,O,e.shouldUnregister?W(i,O,[]):[])),$=(O,D,z={})=>{const Q=W(s,O);let q=D;if(Q){const H=Q._f;H&&(!H.disabled&&pe(o,O,Mw(D,H)),q=ru(H.ref)&&Ze(D)?"":D,Aw(H.ref)?[...H.ref.options].forEach(X=>X.selected=q.includes(X.value)):H.refs?ra(H.ref)?H.refs.length>1?H.refs.forEach(X=>(!X.defaultChecked||!X.disabled)&&(X.checked=Array.isArray(q)?!!q.find(ce=>ce===X.value):q===X.value)):H.refs[0]&&(H.refs[0].checked=!!q):H.refs.forEach(X=>X.checked=X.value===q):uh(H.ref)?H.ref.value="":(H.ref.value=q,H.ref.type||p.values.next({name:O,values:{...o}})))}(z.shouldDirty||z.shouldTouch)&&j(O,q,z.shouldTouch,z.shouldDirty,!0),z.shouldValidate&&Z(O)},_=(O,D,z)=>{for(const Q in D){const q=D[Q],H=`${O}.${Q}`,X=W(s,H);(a.array.has(O)||!iu(q)||X&&!X._f)&&!Fs(q)?_(H,q,z):$(H,q,z)}},F=(O,D,z={})=>{const Q=W(s,O),q=a.array.has(O),H=rn(D);pe(o,O,H),q?(p.array.next({name:O,values:{...o}}),(f.isDirty||f.dirtyFields)&&z.shouldDirty&&p.state.next({name:O,dirtyFields:od(i,o),isDirty:L(O,H)})):Q&&!Q._f&&!Ze(H)?_(O,H,z):$(O,H,z),Jg(O,a)&&p.state.next({...r}),p.values.next({name:O,values:{...o}}),!l.mount&&t()},B=async O=>{const D=O.target;let z=D.name,Q=!0;const q=W(s,z),H=()=>D.type?ad(q._f):Cw(O),X=ce=>{Q=Number.isNaN(ce)||ce===W(o,z,ce)};if(q){let ce,Oe;const hn=H(),ys=O.type===nu.BLUR||O.type===nu.FOCUS_OUT,IS=!sT(q._f)&&!n.resolver&&!W(r.errors,z)&&!q._f.deps||iT(ys,W(r.touchedFields,z),r.isSubmitted,w,v),jc=Jg(z,a,ys);pe(o,z,hn),ys?(q._f.onBlur&&q._f.onBlur(O),u&&u(0)):q._f.onChange&&q._f.onChange(O);const Oc=j(z,hn,ys,!1),_S=!Ft(Oc)||jc;if(!ys&&p.values.next({name:z,type:O.type,values:{...o}}),IS)return f.isValid&&m(),_S&&p.state.next({name:z,...jc?{}:Oc});if(!ys&&jc&&p.state.next({...r}),y(!0),n.resolver){const{errors:hm}=await M([z]);if(X(hn),Q){const MS=sv(r.errors,s,z),mm=sv(hm,s,MS.name||z);ce=mm.error,z=mm.name,Oe=Ft(hm)}}else ce=(await rv(q,o,b,n.shouldUseNativeValidation))[z],X(hn),Q&&(ce?Oe=!1:f.isValid&&(Oe=await R(s,!0)));Q&&(q._f.deps&&Z(q._f.deps),P(z,Oe,ce,Oc))}},J=(O,D)=>{if(W(r.errors,D)&&O.focus)return O.focus(),1},Z=async(O,D={})=>{let z,Q;const q=cl(O);if(y(!0),n.resolver){const H=await N(Te(O)?O:q);z=Ft(H),Q=O?!q.some(X=>W(H,X)):z}else O?(Q=(await Promise.all(q.map(async H=>{const X=W(s,H);return await R(X&&X._f?{[H]:X}:X)}))).every(Boolean),!(!Q&&!r.isValid)&&m()):Q=z=await R(s);return p.state.next({...!Sn(O)||f.isValid&&z!==r.isValid?{}:{name:O},...n.resolver||!O?{isValid:z}:{},errors:r.errors,isValidating:!1}),D.shouldFocus&&!Q&&ro(s,J,O?q:a.mount),Q},le=O=>{const D={...i,...l.mount?o:{}};return Te(O)?D:Sn(O)?W(D,O):O.map(z=>W(D,z))},ne=(O,D)=>({invalid:!!W((D||r).errors,O),isDirty:!!W((D||r).dirtyFields,O),isTouched:!!W((D||r).touchedFields,O),error:W((D||r).errors,O)}),ue=O=>{O&&cl(O).forEach(D=>ze(r.errors,D)),p.state.next({errors:O?r.errors:{}})},fe=(O,D,z)=>{const Q=(W(s,O,{_f:{}})._f||{}).ref;pe(r.errors,O,{...D,ref:Q}),p.state.next({name:O,errors:r.errors,isValid:!1}),z&&z.shouldFocus&&Q&&Q.focus&&Q.focus()},we=(O,D)=>cr(O)?p.values.subscribe({next:z=>O(k(void 0,D),z)}):k(O,D,!0),je=(O,D={})=>{for(const z of O?cl(O):a.mount)a.mount.delete(z),a.array.delete(z),D.keepValue||(ze(s,z),ze(o,z)),!D.keepError&&ze(r.errors,z),!D.keepDirty&&ze(r.dirtyFields,z),!D.keepTouched&&ze(r.touchedFields,z),!n.shouldUnregister&&!D.keepDefaultValue&&ze(i,z);p.values.next({values:{...o}}),p.state.next({...r,...D.keepDirty?{isDirty:L()}:{}}),!D.keepIsValid&&m()},ut=({disabled:O,name:D,field:z,fields:Q,value:q})=>{if(Bt(O)){const H=O?void 0:Te(q)?ad(z?z._f:W(Q,D)._f):q;pe(o,D,H),j(D,H,!1,!1,!0)}},An=(O,D={})=>{let z=W(s,O);const Q=Bt(D.disabled);return pe(s,O,{...z||{},_f:{...z&&z._f?z._f:{ref:{name:O}},name:O,mount:!0,...D}}),a.mount.add(O),z?ut({field:z,disabled:D.disabled,name:O,value:D.value}):E(O,!0,D.value),{...Q?{disabled:D.disabled}:{},...n.progressive?{required:!!D.required,min:Ai(D.min),max:Ai(D.max),minLength:Ai(D.minLength),maxLength:Ai(D.maxLength),pattern:Ai(D.pattern)}:{},name:O,onChange:B,onBlur:B,ref:q=>{if(q){An(O,D),z=W(s,O);const H=Te(q.value)&&q.querySelectorAll&&q.querySelectorAll("input,select,textarea")[0]||q,X=nT(H),ce=z._f.refs||[];if(X?ce.find(Oe=>Oe===H):H===z._f.ref)return;pe(s,O,{_f:{...z._f,...X?{refs:[...ce.filter(id),H,...Array.isArray(W(i,O))?[{}]:[]],ref:{type:H.type,name:O}}:{ref:H}}}),E(O,!1,void 0,H)}else z=W(s,O,{}),z._f&&(z._f.mount=!1),(n.shouldUnregister||D.shouldUnregister)&&!(Ew(a.array,O)&&l.action)&&a.unMount.add(O)}}},vs=()=>n.shouldFocusError&&ro(s,J,a.mount),Tc=O=>{Bt(O)&&(p.state.next({disabled:O}),ro(s,(D,z)=>{let Q=O;const q=W(s,z);q&&Bt(q._f.disabled)&&(Q||(Q=q._f.disabled)),D.disabled=Q},0,!1))},bi=(O,D)=>async z=>{z&&(z.preventDefault&&z.preventDefault(),z.persist&&z.persist());let Q=rn(o);if(p.state.next({isSubmitting:!0}),n.resolver){const{errors:q,values:H}=await M();r.errors=q,Q=H}else await R(s);ze(r.errors,"root"),Ft(r.errors)?(p.state.next({errors:{}}),await O(Q,z)):(D&&await D({...r.errors},z),vs(),setTimeout(vs)),p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ft(r.errors),submitCount:r.submitCount+1,errors:r.errors})},kc=(O,D={})=>{W(s,O)&&(Te(D.defaultValue)?F(O,W(i,O)):(F(O,D.defaultValue),pe(i,O,D.defaultValue)),D.keepTouched||ze(r.touchedFields,O),D.keepDirty||(ze(r.dirtyFields,O),r.isDirty=D.defaultValue?L(O,W(i,O)):L()),D.keepError||(ze(r.errors,O),f.isValid&&m()),p.state.next({...r}))},wa=(O,D={})=>{const z=O?rn(O):i,Q=rn(z),q=O&&!Ft(O)?Q:i;if(D.keepDefaultValues||(i=z),!D.keepValues){if(D.keepDirtyValues||h)for(const H of a.mount)W(r.dirtyFields,H)?pe(q,H,W(o,H)):F(H,W(q,H));else{if(ih&&Te(O))for(const H of a.mount){const X=W(s,H);if(X&&X._f){const ce=Array.isArray(X._f.refs)?X._f.refs[0]:X._f.ref;if(ru(ce)){const Oe=ce.closest("form");if(Oe){Oe.reset();break}}}}s={}}o=e.shouldUnregister?D.keepDefaultValues?rn(i):{}:rn(q),p.array.next({values:{...q}}),p.values.next({values:{...q}})}a={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!f.isValid||!!D.keepIsValid,l.watch=!!e.shouldUnregister,p.state.next({submitCount:D.keepSubmitCount?r.submitCount:0,isDirty:D.keepDirty?r.isDirty:!!(D.keepDefaultValues&&!Kr(O,i)),isSubmitted:D.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:D.keepDirtyValues?r.dirtyFields:D.keepDefaultValues&&O?od(i,O):{},touchedFields:D.keepTouched?r.touchedFields:{},errors:D.keepErrors?r.errors:{},isSubmitSuccessful:D.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Si=(O,D)=>wa(cr(O)?O(o):O,D);return{control:{register:An,unregister:je,getFieldState:ne,handleSubmit:bi,setError:fe,_executeSchema:M,_getWatch:k,_getDirty:L,_updateValid:m,_removeUnmounted:I,_updateFieldArray:x,_updateDisabledField:ut,_getFieldArray:A,_reset:wa,_resetDefaultValues:()=>cr(n.defaultValues)&&n.defaultValues().then(O=>{Si(O,n.resetOptions),p.state.next({isLoading:!1})}),_updateFormState:O=>{r={...r,...O}},_disableForm:Tc,_subjects:p,_proxyFormState:f,_setErrors:T,get _fields(){return s},get _formValues(){return o},get _state(){return l},set _state(O){l=O},get _defaultValues(){return i},get _names(){return a},set _names(O){a=O},get _formState(){return r},set _formState(O){r=O},get _options(){return n},set _options(O){n={...n,...O}}},trigger:Z,register:An,handleSubmit:bi,watch:we,setValue:F,getValues:le,reset:Si,resetField:kc,clearErrors:ue,unregister:je,setError:fe,setFocus:(O,D={})=>{const z=W(s,O),Q=z&&z._f;if(Q){const q=Q.refs?Q.refs[0]:Q.ref;q.focus&&(q.focus(),D.shouldSelect&&q.select())}},getFieldState:ne}}function Lw(e={}){const t=Y.useRef(),n=Y.useRef(),[r,s]=Y.useState({isDirty:!1,isValidating:!1,isLoading:cr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:!1,defaultValues:cr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...lT(e,()=>s(o=>({...o}))),formState:r});const i=t.current.control;return i._options=e,ah({subject:i._subjects.state,next:o=>{kw(o,i._proxyFormState,i._updateFormState,!0)&&s({...i._formState})}}),Y.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),Y.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==r.isDirty&&i._subjects.state.next({isDirty:o})}},[i,r.isDirty]),Y.useEffect(()=>{e.values&&!Kr(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,s(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),Y.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),Y.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=Tw(r,i),t.current}function Dw(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=Dw(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=Dw(e))&&(r&&(r+=" "),r+=t);return r}const uT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),d.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-1M11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),cT=uT,dT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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-1",clipRule:"evenodd"}),d.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 0",clipRule:"evenodd"})]}),fT=dT,pT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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-1",clipRule:"evenodd"}),d.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.414",clipRule:"evenodd"})]}),hT=pT,mT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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-1zM4.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.12"})]}),dh=mT,gT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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 5M21 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.5M21 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.5",clipRule:"evenodd"})]}),vT=gT,yT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.556",clipRule:"evenodd"}),d.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 0",clipRule:"evenodd"})]}),Fw=yT,wT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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 3zm-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.916M3.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.923z",clipRule:"evenodd"})]}),xT=wT,bT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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-.675m7.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.864m-10.5 2.863v12.41a.954.954 0 0 0 .955.954h9.545a.955.955 0 0 0 .955-.955V7.227zm3.818 2.864c.528 0 .955.427.955.955v5.727a.955.955 0 1 1-1.91 0v-5.727c0-.528.428-.955.955-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",clipRule:"evenodd"})]}),$w=bT,ST=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.121",clipRule:"evenodd"}),d.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.879m-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-.465z",clipRule:"evenodd"})]}),CT=ST,ET=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0m9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1M8.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 0",clipRule:"evenodd"})]}),TT=ET,kT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.32",clipRule:"evenodd"})]}),PT=kT,jT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4z",clipRule:"evenodd"})]}),OT=jT,RT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.374zM1 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-2z",clipRule:"evenodd"})]}),NT=RT,AT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.71m4.548 0A16.3 16.3 0 0 1 16.95 11h3.995a9.008 9.008 0 0 0-6.67-7.71m.668 7.71A14.3 14.3 0 0 0 12 3.55 14.3 14.3 0 0 0 9.058 11zm-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),IT=AT,_T=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),d.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 1M13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1",clipRule:"evenodd"})]}),zw=_T,MT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.655",clipRule:"evenodd"})]}),LT=MT,DT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("circle",{cx:12,cy:4,r:2.5,fill:"currentColor"}),d.jsx("circle",{cx:12,cy:12,r:2.5,fill:"currentColor"}),d.jsx("circle",{cx:12,cy:20,r:2.5,fill:"currentColor"})]}),FT=DT,$T=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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-7z",clipRule:"evenodd"})]}),zT=$T,BT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.117",clipRule:"evenodd"})]}),_o=BT,VT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.141",clipRule:"evenodd"})]}),UT=VT,HT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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-.141",clipRule:"evenodd"})]}),iv=HT,qT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.117",clipRule:"evenodd"})]}),WT=qT,QT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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-1V4zm2-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 2zm1 12v6h8v-6z",clipRule:"evenodd"})]}),GT=QT,KT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 10a7 7 0 1 1 14 0 7 7 0 0 1-14 0m7-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 1",clipRule:"evenodd"})]}),XT=KT,YT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",clipRule:"evenodd"}),d.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-.219",clipRule:"evenodd"})]}),JT=YT,ZT=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("g",{fill:"currentColor",fillRule:"evenodd",clipPath:"url(#users_svg__a)",clipRule:"evenodd",children:d.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.272M15.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.036M1.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.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),d.jsx("defs",{children:d.jsx("clipPath",{id:"users_svg__a",children:d.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),ek=ZT;function jr(e){return Bw(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zn(e){var t;return(t=(Bw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bw(e){return e instanceof Node||e instanceof Ot(e).Node}function kt(e){return e instanceof Element||e instanceof Ot(e).Element}function Pn(e){return e instanceof HTMLElement||e instanceof Ot(e).HTMLElement}function ov(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot}function ia(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Yt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function tk(e){return["table","td","th"].includes(jr(e))}function fh(e){const t=ph(),n=Yt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function nk(e){let t=oi(e);for(;Pn(t)&&!qu(t);){if(fh(t))return t;t=oi(t)}return null}function ph(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qu(e){return["html","body","#document"].includes(jr(e))}function Yt(e){return Ot(e).getComputedStyle(e)}function Wu(e){return kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function oi(e){if(jr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ov(e)&&e.host||Zn(e);return ov(t)?t.host:t}function Vw(e){const t=oi(e);return qu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pn(t)&&ia(t)?t:Vw(t)}function Mo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Vw(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=Ot(s);return i?t.concat(o,o.visualViewport||[],ia(s)?s:[],o.frameElement&&n?Mo(o.frameElement):[]):t.concat(s,Mo(s,[],n))}const Lo=Math.min,Vt=Math.max,au=Math.round,$a=Math.floor,Or=e=>({x:e,y:e}),rk={left:"right",right:"left",bottom:"top",top:"bottom"},sk={start:"end",end:"start"};function Qu(e,t){return typeof e=="function"?e(t):e}function os(e){return e.split("-")[0]}function oa(e){return e.split("-")[1]}function ik(e){return e==="x"?"y":"x"}function Uw(e){return e==="y"?"height":"width"}function Gu(e){return["top","bottom"].includes(os(e))?"y":"x"}function Hw(e){return ik(Gu(e))}function ok(e,t,n){n===void 0&&(n=!1);const r=oa(e),s=Hw(e),i=Uw(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=lu(o)),[o,lu(o)]}function ak(e){const t=lu(e);return[Mf(e),t,Mf(t)]}function Mf(e){return e.replace(/start|end/g,t=>sk[t])}function lk(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function uk(e,t,n,r){const s=oa(e);let i=lk(os(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(Mf)))),i}function lu(e){return e.replace(/left|right|bottom|top/g,t=>rk[t])}function ck(e){return{top:0,right:0,bottom:0,left:0,...e}}function dk(e){return typeof e!="number"?ck(e):{top:e,right:e,bottom:e,left:e}}function uu(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function av(e,t,n){let{reference:r,floating:s}=e;const i=Gu(t),o=Hw(t),l=Uw(o),a=os(t),u=i==="y",c=r.x+r.width/2-s.width/2,f=r.y+r.height/2-s.height/2,p=r[l]/2-s[l]/2;let h;switch(a){case"top":h={x:c,y:r.y-s.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-s.width,y:f};break;default:h={x:r.x,y:r.y}}switch(oa(t)){case"start":h[o]-=p*(n&&u?-1:1);break;case"end":h[o]+=p*(n&&u?-1:1);break}return h}const fk=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,l=i.filter(Boolean),a=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:f}=av(u,r,a),p=r,h={},v=0;for(let w=0;w<l.length;w++){const{name:b,fn:g}=l[w],{x:m,y,data:x,reset:C}=await g({x:c,y:f,initialPlacement:r,placement:p,strategy:s,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=m??c,f=y??f,h={...h,[b]:{...h[b],...x}},C&&v<=50){v++,typeof C=="object"&&(C.placement&&(p=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):C.rects),{x:c,y:f}=av(u,p,a)),w=-1;continue}}return{x:c,y:f,placement:p,strategy:s,middlewareData:h}};async function qw(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:l,strategy:a}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Qu(t,e),v=dk(h),b=l[p?f==="floating"?"reference":"floating":f],g=uu(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:a})),m=f==="floating"?{...o.floating,x:r,y:s}:o.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),x=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},C=uu(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:m,offsetParent:y,strategy:a}):m);return{top:(g.top-C.top+v.top)/x.y,bottom:(C.bottom-g.bottom+v.bottom)/x.y,left:(g.left-C.left+v.left)/x.x,right:(C.right-g.right+v.right)/x.x}}const pk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...b}=Qu(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=os(s),m=os(l)===l,y=await(a.isRTL==null?void 0:a.isRTL(u.floating)),x=p||(m||!w?[lu(l)]:ak(l));!p&&v!=="none"&&x.push(...uk(l,w,v,y));const C=[l,...x],T=await qw(t,b),E=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&E.push(T[g]),f){const R=ok(s,o,y);E.push(T[R[0]],T[R[1]])}if(j=[...j,{placement:s,overflows:E}],!E.every(R=>R<=0)){var P,M;const R=(((P=i.flip)==null?void 0:P.index)||0)+1,I=C[R];if(I)return{data:{index:R,overflows:j},reset:{placement:I}};let L=(M=j.filter(k=>k.overflows[0]<=0).sort((k,A)=>k.overflows[1]-A.overflows[1])[0])==null?void 0:M.placement;if(!L)switch(h){case"bestFit":{var N;const k=(N=j.map(A=>[A.placement,A.overflows.filter($=>$>0).reduce(($,_)=>$+_,0)]).sort((A,$)=>A[1]-$[1])[0])==null?void 0:N[0];k&&(L=k);break}case"initialPlacement":L=l;break}if(s!==L)return{reset:{placement:L}}}return{}}}};async function hk(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=os(n),l=oa(n),a=Gu(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&a?-1:1,f=Qu(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof v=="number"&&(h=l==="end"?v*-1:v),a?{x:h*c,y:p*u}:{x:p*u,y:h*c}}const mk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:l}=t,a=await hk(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+a.x,y:i+a.y,data:{...a,placement:o}}}}},gk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:i}=t,{apply:o=()=>{},...l}=Qu(e,t),a=await qw(t,l),u=os(n),c=oa(n),f=Gu(n)==="y",{width:p,height:h}=r.floating;let v,w;u==="top"||u==="bottom"?(v=u,w=c===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(w=u,v=c==="end"?"top":"bottom");const b=h-a[v],g=p-a[w],m=!t.middlewareData.shift;let y=b,x=g;if(f){const T=p-a.left-a.right;x=c||m?Lo(g,T):T}else{const T=h-a.top-a.bottom;y=c||m?Lo(b,T):T}if(m&&!c){const T=Vt(a.left,0),E=Vt(a.right,0),j=Vt(a.top,0),P=Vt(a.bottom,0);f?x=p-2*(T!==0||E!==0?T+E:Vt(a.left,a.right)):y=h-2*(j!==0||P!==0?j+P:Vt(a.top,a.bottom))}await o({...t,availableWidth:x,availableHeight:y});const C=await s.getDimensions(i.floating);return p!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function Ww(e){const t=Yt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Pn(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,l=au(n)!==i||au(r)!==o;return l&&(n=i,r=o),{width:n,height:r,$:l}}function hh(e){return kt(e)?e:e.contextElement}function Qs(e){const t=hh(e);if(!Pn(t))return Or(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=Ww(t);let o=(i?au(n.width):n.width)/r,l=(i?au(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const vk=Or(0);function Qw(e){const t=Ot(e);return!ph()||!t.visualViewport?vk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yk(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ot(e)?!1:t}function as(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=hh(e);let o=Or(1);t&&(r?kt(r)&&(o=Qs(r)):o=Qs(e));const l=yk(i,n,r)?Qw(i):Or(0);let a=(s.left+l.x)/o.x,u=(s.top+l.y)/o.y,c=s.width/o.x,f=s.height/o.y;if(i){const p=Ot(i),h=r&&kt(r)?Ot(r):r;let v=p.frameElement;for(;v&&r&&h!==p;){const w=Qs(v),b=v.getBoundingClientRect(),g=Yt(v),m=b.left+(v.clientLeft+parseFloat(g.paddingLeft))*w.x,y=b.top+(v.clientTop+parseFloat(g.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,f*=w.y,a+=m,u+=y,v=Ot(v).frameElement}}return uu({width:c,height:f,x:a,y:u})}function wk(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Pn(n),i=Zn(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},l=Or(1);const a=Or(0);if((s||!s&&r!=="fixed")&&((jr(n)!=="body"||ia(i))&&(o=Wu(n)),Pn(n))){const u=as(n);l=Qs(n),a.x=u.x+n.clientLeft,a.y=u.y+n.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-o.scrollLeft*l.x+a.x,y:t.y*l.y-o.scrollTop*l.y+a.y}}function xk(e){return Array.from(e.getClientRects())}function Gw(e){return as(Zn(e)).left+Wu(e).scrollLeft}function bk(e){const t=Zn(e),n=Wu(e),r=e.ownerDocument.body,s=Vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Gw(e);const l=-n.scrollTop;return Yt(r).direction==="rtl"&&(o+=Vt(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:l}}function Sk(e,t){const n=Ot(e),r=Zn(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,l=0,a=0;if(s){i=s.width,o=s.height;const u=ph();(!u||u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:i,height:o,x:l,y:a}}function Ck(e,t){const n=as(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Pn(e)?Qs(e):Or(1),o=e.clientWidth*i.x,l=e.clientHeight*i.y,a=s*i.x,u=r*i.y;return{width:o,height:l,x:a,y:u}}function lv(e,t,n){let r;if(t==="viewport")r=Sk(e,n);else if(t==="document")r=bk(Zn(e));else if(kt(t))r=Ck(t,n);else{const s=Qw(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return uu(r)}function Kw(e,t){const n=oi(e);return n===t||!kt(n)||qu(n)?!1:Yt(n).position==="fixed"||Kw(n,t)}function Ek(e,t){const n=t.get(e);if(n)return n;let r=Mo(e,[],!1).filter(l=>kt(l)&&jr(l)!=="body"),s=null;const i=Yt(e).position==="fixed";let o=i?oi(e):e;for(;kt(o)&&!qu(o);){const l=Yt(o),a=fh(o);!a&&l.position==="fixed"&&(s=null),(i?!a&&!s:!a&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ia(o)&&!a&&Kw(e,o))?r=r.filter(c=>c!==o):s=l,o=oi(o)}return t.set(e,r),r}function Tk(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?Ek(t,this._c):[].concat(n),r],l=o[0],a=o.reduce((u,c)=>{const f=lv(t,c,s);return u.top=Vt(f.top,u.top),u.right=Lo(f.right,u.right),u.bottom=Lo(f.bottom,u.bottom),u.left=Vt(f.left,u.left),u},lv(t,l,s));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function kk(e){return Ww(e)}function Pk(e,t,n){const r=Pn(t),s=Zn(t),i=n==="fixed",o=as(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Or(0);if(r||!r&&!i)if((jr(t)!=="body"||ia(s))&&(l=Wu(t)),r){const u=as(t,!0,i,t);a.x=u.x+t.clientLeft,a.y=u.y+t.clientTop}else s&&(a.x=Gw(s));return{x:o.left+l.scrollLeft-a.x,y:o.top+l.scrollTop-a.y,width:o.width,height:o.height}}function uv(e,t){return!Pn(e)||Yt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Xw(e,t){const n=Ot(e);if(!Pn(e))return n;let r=uv(e,t);for(;r&&tk(r)&&Yt(r).position==="static";)r=uv(r,t);return r&&(jr(r)==="html"||jr(r)==="body"&&Yt(r).position==="static"&&!fh(r))?n:r||nk(e)||n}const jk=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||Xw,i=this.getDimensions;return{reference:Pk(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function Ok(e){return Yt(e).direction==="rtl"}const Rk={convertOffsetParentRelativeRectToViewportRelativeRect:wk,getDocumentElement:Zn,getClippingRect:Tk,getOffsetParent:Xw,getElementRects:jk,getClientRects:xk,getDimensions:kk,getScale:Qs,isElement:kt,isRTL:Ok};function Nk(e,t){let n=null,r;const s=Zn(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const{left:u,top:c,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const h=$a(c),v=$a(s.clientWidth-(u+f)),w=$a(s.clientHeight-(c+p)),b=$a(u),m={rootMargin:-h+"px "+-v+"px "+-w+"px "+-b+"px",threshold:Vt(0,Lo(1,a))||1};let y=!0;function x(C){const T=C[0].intersectionRatio;if(T!==a){if(!y)return o();T?o(!1,T):r=setTimeout(()=>{o(!1,1e-7)},100)}y=!1}try{n=new IntersectionObserver(x,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,m)}n.observe(e)}return o(!0),i}function Ak(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=hh(e),c=s||i?[...u?Mo(u):[],...Mo(t)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const f=u&&l?Nk(u,n):null;let p=-1,h=null;o&&(h=new ResizeObserver(g=>{let[m]=g;m&&m.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),n()}),u&&!a&&h.observe(u),h.observe(t));let v,w=a?as(e):null;a&&b();function b(){const g=as(e);w&&(g.x!==w.x||g.y!==w.y||g.width!==w.width||g.height!==w.height)&&n(),w=g,v=requestAnimationFrame(b)}return n(),()=>{c.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),f&&f(),h&&h.disconnect(),h=null,a&&cancelAnimationFrame(v)}}const Ik=(e,t,n)=>{const r=new Map,s={platform:Rk,...n},i={...s.platform,_c:r};return fk(e,t,{...s,platform:i})};var fl=typeof document<"u"?S.useLayoutEffect:S.useEffect;function cu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!cu(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!cu(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Yw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function cv(e,t){const n=Yw(e);return Math.round(t*n)/n}function dv(e){const t=S.useRef(e);return fl(()=>{t.current=e}),t}function _k(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,f]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=S.useState(r);cu(p,r)||h(r);const[v,w]=S.useState(null),[b,g]=S.useState(null),m=S.useCallback(A=>{A!=T.current&&(T.current=A,w(A))},[w]),y=S.useCallback(A=>{A!==E.current&&(E.current=A,g(A))},[g]),x=i||v,C=o||b,T=S.useRef(null),E=S.useRef(null),j=S.useRef(c),P=dv(a),M=dv(s),N=S.useCallback(()=>{if(!T.current||!E.current)return;const A={placement:t,strategy:n,middleware:p};M.current&&(A.platform=M.current),Ik(T.current,E.current,A).then($=>{const _={...$,isPositioned:!0};R.current&&!cu(j.current,_)&&(j.current=_,Nn.flushSync(()=>{f(_)}))})},[p,t,n,M]);fl(()=>{u===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(A=>({...A,isPositioned:!1})))},[u]);const R=S.useRef(!1);fl(()=>(R.current=!0,()=>{R.current=!1}),[]),fl(()=>{if(x&&(T.current=x),C&&(E.current=C),x&&C){if(P.current)return P.current(x,C,N);N()}},[x,C,N,P]);const I=S.useMemo(()=>({reference:T,floating:E,setReference:m,setFloating:y}),[m,y]),L=S.useMemo(()=>({reference:x,floating:C}),[x,C]),k=S.useMemo(()=>{const A={position:n,left:0,top:0};if(!L.floating)return A;const $=cv(L.floating,c.x),_=cv(L.floating,c.y);return l?{...A,transform:"translate("+$+"px, "+_+"px)",...Yw(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:$,top:_}},[n,l,L.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:N,refs:I,elements:L,floatingStyles:k}),[c,N,I,L,k])}var Jw=typeof document<"u"?S.useLayoutEffect:S.useEffect;let ld=!1,Mk=0;const fv=()=>"floating-ui-"+Mk++;function Lk(){const[e,t]=S.useState(()=>ld?fv():void 0);return Jw(()=>{e==null&&t(fv())},[]),S.useEffect(()=>{ld||(ld=!0)},[]),e}const Dk=B0["useId".toString()],Fk=Dk||Lk;function $k(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const zk=S.createContext(null),Bk=()=>S.useContext(zk),Vk=B0["useInsertionEffect".toString()],Uk=Vk||(e=>e());function Hk(e){const t=S.useRef(()=>{});return Uk(()=>{t.current=e}),S.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function qk(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=S.useState(null),l=((t=e.elements)==null?void 0:t.reference)||i,a=_k(e),u=Bk(),c=Hk((x,C)=>{x&&(p.current.openEvent=C),r==null||r(x,C)}),f=S.useRef(null),p=S.useRef({}),h=S.useState(()=>$k())[0],v=Fk(),w=S.useCallback(x=>{const C=kt(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;a.refs.setReference(C)},[a.refs]),b=S.useCallback(x=>{(kt(x)||x===null)&&(f.current=x,o(x)),(kt(a.refs.reference.current)||a.refs.reference.current===null||x!==null&&!kt(x))&&a.refs.setReference(x)},[a.refs]),g=S.useMemo(()=>({...a.refs,setReference:b,setPositionReference:w,domReference:f}),[a.refs,b,w]),m=S.useMemo(()=>({...a.elements,domReference:l}),[a.elements,l]),y=S.useMemo(()=>({...a,refs:g,elements:m,dataRef:p,nodeId:s,floatingId:v,events:h,open:n,onOpenChange:c}),[a,s,v,h,n,c,g,m]);return Jw(()=>{const x=u==null?void 0:u.nodesRef.current.find(C=>C.id===s);x&&(x.context=y)}),S.useMemo(()=>({...a,context:y,refs:g,elements:m}),[a,g,m,y])}let Wk={data:""},Qk=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Wk,Gk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Kk=/\/\*[^]*?\*\/| +/g,pv=/\n+/g,ar=(e,t)=>{let n="",r="",s="";for(let i in e){let o=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+o+";":r+=i[1]=="f"?ar(o,i):i+"{"+ar(o,i[1]=="k"?"":t)+"}":typeof o=="object"?r+=ar(o,t?t.replace(/([^,])+/g,l=>i.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):o!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=ar.p?ar.p(i,o):i+":"+o+";")}return n+(t&&s?t+"{"+s+"}":s)+r},_n={},Zw=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Zw(e[n]);return t}return e},Xk=(e,t,n,r,s)=>{let i=Zw(e),o=_n[i]||(_n[i]=(a=>{let u=0,c=11;for(;u<a.length;)c=101*c+a.charCodeAt(u++)>>>0;return"go"+c})(i));if(!_n[o]){let a=i!==e?e:(u=>{let c,f,p=[{}];for(;c=Gk.exec(u.replace(Kk,""));)c[4]?p.shift():c[3]?(f=c[3].replace(pv," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][c[1]]=c[2].replace(pv," ").trim();return p[0]})(e);_n[o]=ar(s?{["@keyframes "+o]:a}:a,n?"":"."+o)}let l=n&&_n.g?_n.g:null;return n&&(_n.g=_n[o]),((a,u,c,f)=>{f?u.data=u.data.replace(f,a):u.data.indexOf(a)===-1&&(u.data=c?a+u.data:u.data+a)})(_n[o],t,r,l),o},Yk=(e,t,n)=>e.reduce((r,s,i)=>{let o=t[i];if(o&&o.call){let l=o(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;o=a?"."+a:l&&typeof l=="object"?l.props?"":ar(l,""):l===!1?"":l}return r+s+(o??"")},"");function Ku(e){let t=this||{},n=e.call?e(t.p):e;return Xk(n.unshift?n.raw?Yk(n,[].slice.call(arguments,1),t.p):n.reduce((r,s)=>Object.assign(r,s&&s.call?s(t.p):s),{}):n,Qk(t.target),t.g,t.o,t.k)}let ex,Lf,Df;Ku.bind({g:1});let Gn=Ku.bind({k:1});function Jk(e,t,n,r){ar.p=t,ex=e,Lf=n,Df=r}function Lr(e,t){let n=this||{};return function(){let r=arguments;function s(i,o){let l=Object.assign({},i),a=l.className||s.className;n.p=Object.assign({theme:Lf&&Lf()},l),n.o=/ *go\d+/.test(a),l.className=Ku.apply(n,r)+(a?" "+a:""),t&&(l.ref=o);let u=e;return e[0]&&(u=l.as||e,delete l.as),Df&&u[0]&&Df(l),ex(u,l)}return t?t(s):s}}var Zk=e=>typeof e=="function",du=(e,t)=>Zk(e)?e(t):e,eP=(()=>{let e=0;return()=>(++e).toString()})(),tx=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),tP=20,pl=new Map,nP=1e3,hv=e=>{if(pl.has(e))return;let t=setTimeout(()=>{pl.delete(e),ps({type:4,toastId:e})},nP);pl.set(e,t)},rP=e=>{let t=pl.get(e);t&&clearTimeout(t)},Ff=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,tP)};case 1:return t.toast.id&&rP(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?Ff(e,{type:1,toast:n}):Ff(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?hv(r):e.toasts.forEach(i=>{hv(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let s=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+s}))}}},hl=[],ml={toasts:[],pausedAt:void 0},ps=e=>{ml=Ff(ml,e),hl.forEach(t=>{t(ml)})},sP={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},iP=(e={})=>{let[t,n]=S.useState(ml);S.useEffect(()=>(hl.push(n),()=>{let s=hl.indexOf(n);s>-1&&hl.splice(s,1)}),[t]);let r=t.toasts.map(s=>{var i,o;return{...e,...e[s.type],...s,duration:s.duration||((i=e[s.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||sP[s.type],style:{...e.style,...(o=e[s.type])==null?void 0:o.style,...s.style}}});return{...t,toasts:r}},oP=(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)||eP()}),aa=e=>(t,n)=>{let r=oP(t,e,n);return ps({type:2,toast:r}),r.id},Pt=(e,t)=>aa("blank")(e,t);Pt.error=aa("error");Pt.success=aa("success");Pt.loading=aa("loading");Pt.custom=aa("custom");Pt.dismiss=e=>{ps({type:3,toastId:e})};Pt.remove=e=>ps({type:4,toastId:e});Pt.promise=(e,t,n)=>{let r=Pt.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(s=>(Pt.success(du(t.success,s),{id:r,...n,...n==null?void 0:n.success}),s)).catch(s=>{Pt.error(du(t.error,s),{id:r,...n,...n==null?void 0:n.error})}),e};var aP=(e,t)=>{ps({type:1,toast:{id:e,height:t}})},lP=()=>{ps({type:5,time:Date.now()})},uP=e=>{let{toasts:t,pausedAt:n}=iP(e);S.useEffect(()=>{if(n)return;let i=Date.now(),o=t.map(l=>{if(l.duration===1/0)return;let a=(l.duration||0)+l.pauseDuration-(i-l.createdAt);if(a<0){l.visible&&Pt.dismiss(l.id);return}return setTimeout(()=>Pt.dismiss(l.id),a)});return()=>{o.forEach(l=>l&&clearTimeout(l))}},[t,n]);let r=S.useCallback(()=>{n&&ps({type:6,time:Date.now()})},[n]),s=S.useCallback((i,o)=>{let{reverseOrder:l=!1,gutter:a=8,defaultPosition:u}=o||{},c=t.filter(h=>(h.position||u)===(i.position||u)&&h.height),f=c.findIndex(h=>h.id===i.id),p=c.filter((h,v)=>v<f&&h.visible).length;return c.filter(h=>h.visible).slice(...l?[p+1]:[0,p]).reduce((h,v)=>h+(v.height||0)+a,0)},[t]);return{toasts:t,handlers:{updateHeight:aP,startPause:lP,endPause:r,calculateOffset:s}}},cP=Gn`
|
|
50
50
|
from {
|
|
51
51
|
transform: scale(0) rotate(45deg);
|
|
52
52
|
opacity: 0;
|
|
@@ -54,7 +54,7 @@ from {
|
|
|
54
54
|
to {
|
|
55
55
|
transform: scale(1) rotate(45deg);
|
|
56
56
|
opacity: 1;
|
|
57
|
-
}`,
|
|
57
|
+
}`,dP=Gn`
|
|
58
58
|
from {
|
|
59
59
|
transform: scale(0);
|
|
60
60
|
opacity: 0;
|
|
@@ -62,7 +62,7 @@ from {
|
|
|
62
62
|
to {
|
|
63
63
|
transform: scale(1);
|
|
64
64
|
opacity: 1;
|
|
65
|
-
}`,
|
|
65
|
+
}`,fP=Gn`
|
|
66
66
|
from {
|
|
67
67
|
transform: scale(0) rotate(90deg);
|
|
68
68
|
opacity: 0;
|
|
@@ -70,7 +70,7 @@ from {
|
|
|
70
70
|
to {
|
|
71
71
|
transform: scale(1) rotate(90deg);
|
|
72
72
|
opacity: 1;
|
|
73
|
-
}`,
|
|
73
|
+
}`,pP=Lr("div")`
|
|
74
74
|
width: 20px;
|
|
75
75
|
opacity: 0;
|
|
76
76
|
height: 20px;
|
|
@@ -79,14 +79,14 @@ to {
|
|
|
79
79
|
position: relative;
|
|
80
80
|
transform: rotate(45deg);
|
|
81
81
|
|
|
82
|
-
animation: ${
|
|
82
|
+
animation: ${cP} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
83
83
|
forwards;
|
|
84
84
|
animation-delay: 100ms;
|
|
85
85
|
|
|
86
86
|
&:after,
|
|
87
87
|
&:before {
|
|
88
88
|
content: '';
|
|
89
|
-
animation: ${
|
|
89
|
+
animation: ${dP} 0.15s ease-out forwards;
|
|
90
90
|
animation-delay: 150ms;
|
|
91
91
|
position: absolute;
|
|
92
92
|
border-radius: 3px;
|
|
@@ -99,18 +99,18 @@ to {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&:before {
|
|
102
|
-
animation: ${
|
|
102
|
+
animation: ${fP} 0.15s ease-out forwards;
|
|
103
103
|
animation-delay: 180ms;
|
|
104
104
|
transform: rotate(90deg);
|
|
105
105
|
}
|
|
106
|
-
`,
|
|
106
|
+
`,hP=Gn`
|
|
107
107
|
from {
|
|
108
108
|
transform: rotate(0deg);
|
|
109
109
|
}
|
|
110
110
|
to {
|
|
111
111
|
transform: rotate(360deg);
|
|
112
112
|
}
|
|
113
|
-
`,
|
|
113
|
+
`,mP=Lr("div")`
|
|
114
114
|
width: 12px;
|
|
115
115
|
height: 12px;
|
|
116
116
|
box-sizing: border-box;
|
|
@@ -118,8 +118,8 @@ to {
|
|
|
118
118
|
border-radius: 100%;
|
|
119
119
|
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
120
120
|
border-right-color: ${e=>e.primary||"#616161"};
|
|
121
|
-
animation: ${
|
|
122
|
-
`,
|
|
121
|
+
animation: ${hP} 1s linear infinite;
|
|
122
|
+
`,gP=Gn`
|
|
123
123
|
from {
|
|
124
124
|
transform: scale(0) rotate(45deg);
|
|
125
125
|
opacity: 0;
|
|
@@ -127,7 +127,7 @@ from {
|
|
|
127
127
|
to {
|
|
128
128
|
transform: scale(1) rotate(45deg);
|
|
129
129
|
opacity: 1;
|
|
130
|
-
}`,
|
|
130
|
+
}`,vP=Gn`
|
|
131
131
|
0% {
|
|
132
132
|
height: 0;
|
|
133
133
|
width: 0;
|
|
@@ -141,7 +141,7 @@ to {
|
|
|
141
141
|
100% {
|
|
142
142
|
opacity: 1;
|
|
143
143
|
height: 10px;
|
|
144
|
-
}`,
|
|
144
|
+
}`,yP=Lr("div")`
|
|
145
145
|
width: 20px;
|
|
146
146
|
opacity: 0;
|
|
147
147
|
height: 20px;
|
|
@@ -150,13 +150,13 @@ to {
|
|
|
150
150
|
position: relative;
|
|
151
151
|
transform: rotate(45deg);
|
|
152
152
|
|
|
153
|
-
animation: ${
|
|
153
|
+
animation: ${gP} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
154
154
|
forwards;
|
|
155
155
|
animation-delay: 100ms;
|
|
156
156
|
&:after {
|
|
157
157
|
content: '';
|
|
158
158
|
box-sizing: border-box;
|
|
159
|
-
animation: ${
|
|
159
|
+
animation: ${vP} 0.2s ease-out forwards;
|
|
160
160
|
opacity: 0;
|
|
161
161
|
animation-delay: 200ms;
|
|
162
162
|
position: absolute;
|
|
@@ -168,16 +168,16 @@ to {
|
|
|
168
168
|
height: 10px;
|
|
169
169
|
width: 6px;
|
|
170
170
|
}
|
|
171
|
-
`,
|
|
171
|
+
`,wP=Lr("div")`
|
|
172
172
|
position: absolute;
|
|
173
|
-
`,
|
|
173
|
+
`,xP=Lr("div")`
|
|
174
174
|
position: relative;
|
|
175
175
|
display: flex;
|
|
176
176
|
justify-content: center;
|
|
177
177
|
align-items: center;
|
|
178
178
|
min-width: 20px;
|
|
179
179
|
min-height: 20px;
|
|
180
|
-
`,
|
|
180
|
+
`,bP=Gn`
|
|
181
181
|
from {
|
|
182
182
|
transform: scale(0.6);
|
|
183
183
|
opacity: 0.4;
|
|
@@ -185,20 +185,20 @@ from {
|
|
|
185
185
|
to {
|
|
186
186
|
transform: scale(1);
|
|
187
187
|
opacity: 1;
|
|
188
|
-
}`,
|
|
188
|
+
}`,SP=Lr("div")`
|
|
189
189
|
position: relative;
|
|
190
190
|
transform: scale(0.6);
|
|
191
191
|
opacity: 0.4;
|
|
192
192
|
min-width: 20px;
|
|
193
|
-
animation: ${
|
|
193
|
+
animation: ${bP} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
194
194
|
forwards;
|
|
195
|
-
`,
|
|
195
|
+
`,CP=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?S.createElement(SP,null,t):t:n==="blank"?null:S.createElement(xP,null,S.createElement(mP,{...r}),n!=="loading"&&S.createElement(wP,null,n==="error"?S.createElement(pP,{...r}):S.createElement(yP,{...r})))},EP=e=>`
|
|
196
196
|
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
197
197
|
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
198
|
-
`,
|
|
198
|
+
`,TP=e=>`
|
|
199
199
|
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
200
200
|
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
201
|
-
`,
|
|
201
|
+
`,kP="0%{opacity:0;} 100%{opacity:1;}",PP="0%{opacity:1;} 100%{opacity:0;}",jP=Lr("div")`
|
|
202
202
|
display: flex;
|
|
203
203
|
align-items: center;
|
|
204
204
|
background: #fff;
|
|
@@ -210,21 +210,27 @@ to {
|
|
|
210
210
|
pointer-events: auto;
|
|
211
211
|
padding: 8px 10px;
|
|
212
212
|
border-radius: 8px;
|
|
213
|
-
`,
|
|
213
|
+
`,OP=Lr("div")`
|
|
214
214
|
display: flex;
|
|
215
215
|
justify-content: center;
|
|
216
216
|
margin: 4px 10px;
|
|
217
217
|
color: inherit;
|
|
218
218
|
flex: 1 1 auto;
|
|
219
219
|
white-space: pre-line;
|
|
220
|
-
`,
|
|
220
|
+
`,RP=(e,t)=>{let n=e.includes("top")?1:-1,[r,s]=tx()?[kP,PP]:[EP(n),TP(n)];return{animation:t?`${Gn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Gn(s)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},NP=S.memo(({toast:e,position:t,style:n,children:r})=>{let s=e.height?RP(e.position||t||"top-center",e.visible):{opacity:0},i=S.createElement(CP,{toast:e}),o=S.createElement(OP,{...e.ariaProps},du(e.message,e));return S.createElement(jP,{className:e.className,style:{...s,...n,...e.style}},typeof r=="function"?r({icon:i,message:o}):S.createElement(S.Fragment,null,i,o))});Jk(S.createElement);var AP=({id:e,className:t,style:n,onHeightUpdate:r,children:s})=>{let i=S.useCallback(o=>{if(o){let l=()=>{let a=o.getBoundingClientRect().height;r(e,a)};l(),new MutationObserver(l).observe(o,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return S.createElement("div",{ref:i,className:t,style:n},s)},IP=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},s=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:tx()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...s}},_P=Ku`
|
|
221
221
|
z-index: 9999;
|
|
222
222
|
> * {
|
|
223
223
|
pointer-events: auto;
|
|
224
224
|
}
|
|
225
|
-
`,so=16,D4=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:a,handlers:l}=d4(n);return x.createElement("div",{style:{position:"fixed",zIndex:9999,top:so,left:so,right:so,bottom:so,pointerEvents:"none",...i},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=L4(c,d);return x.createElement(A4,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?M4:"",style:h},u.type==="custom"?pa(u.message,u):s?s(u):x.createElement(I4,{toast:u,position:c}))}))},hs=Ze;function jt(e){return{hotToast:{success:(n,r)=>hs.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)=>hs.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)=>hs.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)=>hs.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:hs.loading}}}function F4({src:e,placeholder:t}){const[n,r]=x.useState(e||t),s=x.useCallback(()=>{r(t)},[t]);return x.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function $4(e,t){const n=x.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);x.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function z4(e=!1){const[t,n]=x.useState(e),r=x.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function U4(){const e=x.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return x.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=a=>{a.key==="Tab"&&(a.shiftKey?document.activeElement===r&&(i.focus(),a.preventDefault()):document.activeElement===i&&(r.focus(),a.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function B4(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const i0=x.forwardRef(({children:e},t)=>f.jsx("div",{ref:t,className:"actionbar",children:e}));i0.displayName="ActionBar";const V4=i0,H4=({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-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",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-1M11 16a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1",clipRule:"evenodd"})]}),q4=H4,Q4=({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-1",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 0",clipRule:"evenodd"})]}),W4=Q4,K4=({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-1",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.414",clipRule:"evenodd"})]}),Jk=K4,G4=({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-1zM4.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.12"})]}),e8=G4,X4=({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 5M21 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.5M21 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.5",clipRule:"evenodd"})]}),Y4=X4,Z4=({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.556",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 0",clipRule:"evenodd"})]}),J4=Z4,e3=({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.916M3.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"})]}),t8=e3,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:"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-.675m7.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.864m-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-.955m4.773 6.682v-5.727a.955.955 0 0 0-1.909 0v5.727a.955.955 0 1 0 1.91 0",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:"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.121",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.879m-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"})]}),n8=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:"M3 12a9 9 0 1 1 18 0 9 9 0 0 1-18 0m9-11C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1M8.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 0",clipRule:"evenodd"})]}),i3=s3,o3=({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"})]}),r8=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:"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.067M4.155 4l6.609 7.814a1 1 0 0 1 .236.646v5.922l2 1V12.46a1 1 0 0 1 .236-.646L19.845 4H4.155",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:"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.557",clipRule:"evenodd"})]}),c3=u3,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.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.884m-5.884 2h5.884A14.3 14.3 0 0 1 12 20.45 14.3 14.3 0 0 1 9.058 13M7.05 13H3.055a9.008 9.008 0 0 0 6.67 7.71A16.3 16.3 0 0 1 7.05 13m7.224 7.71A16.3 16.3 0 0 0 16.95 13h3.995a9.008 9.008 0 0 1-6.67 7.71M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11",clipRule:"evenodd"})]}),s8=d3,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-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",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 1M13.01 7.5a1 1 0 0 1-1 1H12a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1",clipRule:"evenodd"})]}),h3=f3,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:"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.655",clipRule:"evenodd"})]}),m3=p3,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("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"})]}),i8=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:"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-7z",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:"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.117",clipRule:"evenodd"})]}),gc=w3,x3=({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.141",clipRule:"evenodd"})]}),S3=x3,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:"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-.141",clipRule:"evenodd"})]}),tp=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:"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.117",clipRule:"evenodd"})]}),E3=C3,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:"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-1V4zm2-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 2zm1 12v6h8v-6z",clipRule:"evenodd"})]}),o8=R3,k3=({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 0m7-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 1",clipRule:"evenodd"})]}),P3=k3,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("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12",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-.219",clipRule:"evenodd"})]}),N3=O3,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("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.272M15.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.036M1.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.974M9.5 3a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7M4 6.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"users_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),a8=j3;function o0(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=o0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function V(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=o0(e))&&(r&&(r+=" "),r+=t);return r}const a0=x.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:a=3e3,onClose:l,onVisibilityChange:u},c)=>{const[d,h]=x.useState(!0),p=x.useRef(null),m=x.useCallback(()=>{h(!1),l==null||l()},[l]);x.useImperativeHandle(c,()=>({show:y,hide:m,...p.current})),x.useLayoutEffect(()=>{u==null||u(d)},[d,u]),x.useEffect(()=>{o&&d&&setTimeout(()=>{m()},a)},[o,a,m,d]);const y=()=>{h(!0)},S={success:{icon:f.jsx(N3,{}),classModifier:"alert-success"},warning:{icon:f.jsx(q4,{}),classModifier:"alert-warning"},info:{icon:f.jsx(h3,{}),classModifier:"alert-info"},danger:{icon:f.jsx(i3,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},v=V("alert gap-12",S[e].classModifier,g,t);return f.jsx(f.Fragment,{children:d?f.jsxs("div",{ref:p,className:v,role:"alert",children:[S[e].icon,f.jsx("div",{className:"alert-content small",children:n}),r&&f.jsx("div",{className:"ms-12",children:r}),s&&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:m})}),o&&f.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});a0.displayName="Alert";const Tt=a0,l0=x.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=V("d-flex flex-wrap p-16 gap-8 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:s,children:[e,t?f.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});l0.displayName="AppHeader";const T3=l0,u0=x.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},a)=>{const[l]=Qa(),u=n??`${l}/common/image-placeholder.png`,{imgSrc:c,onError:d}=F4({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"},p={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},m=V({...h}),y=V({...p},i),S=f.jsx("img",{alt:t,onError:d,ref:a,src:c,className:y,...o});return r?f.jsx("div",{className:m,children:S}):S});u0.displayName="Image";const c0=u0,d0=x.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=Jg(),[,a]=Qa(),l=r==="square",u=r==="rounded",c=r==="circle",d=n==="contain",h=n==="ratio",p={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},m={square:l,rounded:u,"rounded-circle":c},y={"icon-contain":d,"icon-ratio":h},S=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",v=e?o(e):"",w=i(S),b=v||"placeholder",E=V("app-icon",{...p,...m,...y,[`bg-light-${b}`]:b&&!d,[`color-app-${b}`]:b});return w?f.jsx(c0,{src:S,alt:g,objectFit:"contain",width:t,height:t,className:"h-full"}):f.jsx("div",{className:E,style:{width:t+"px",height:t+"px"},children:f.jsx("svg",{ref:s,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#${b}`})})})});d0.displayName="AppIcon";const vc=d0,f0=x.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},a)=>{const[l]=Qa(),u=s||`${l}/avatar/no-avatar.svg`,y=V("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"}},i);return f.jsx("div",{ref:a,className:y,children:f.jsx(c0,{src:r||u,alt:n,imgPlaceholder:u,...o})})});f0.displayName="Avatar";const np=f0,h0=x.forwardRef(({children:e,className:t,...n},r)=>{const s=V("breadcrumb-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});h0.displayName="BreadcrumbItem";const Kl=h0,p0=x.forwardRef(({children:e,className:t},n)=>{const r=V("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return f.jsx("ol",{ref:n,className:r,children:e})});p0.displayName="BreadcrumbList";const _3=p0,m0=x.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=pe(),{getIconClass:i}=Jg(),o=V("d-flex align-items-center mb-0",i(t),n),a={"--edifice-breadcrumb-divider":"-"};return f.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:a,children:e})});m0.displayName="BreadcrumbNav";const I3=m0,g0=x.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=V(t,r);return f.jsx(e,{ref:i,className:o,...s,children:n})});g0.displayName="Heading";const rp=g0,v0=x.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,a=()=>{let u;return r?u=r:u=f.jsx(m3,{...o,"aria-label":"Loading"}),u},l=V("loading",{"is-loading":n});return f.jsxs("div",{className:l,role:"status",ref:t,children:[(!s||s==="left")&&a(),i,s==="right"&&a()]})});v0.displayName="Loading";const A3=v0,y0=x.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:a,rightIcon:l,className:u,variant:c="filled",...d},h)=>{const p=V("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return f.jsx("button",{ref:h,className:p,type:t,...d,children:s?f.jsx(A3,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):f.jsxs("span",{children:[a,r,l]})})});y0.displayName="Button";const Jr=y0,w0=x.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:V("btn-icon btn-sm",t)};return f.jsx(Jr,{ref:r,...s,children:e})});w0.displayName="IconButton";const Ka=w0,x0=x.forwardRef(({app:e,name:t},n)=>{const{t:r}=pe();return f.jsx(I3,{app:e,ref:n,className:"mw-100",children:f.jsx(_3,{className:"gap-12 mw-100",children:t?f.jsxs(f.Fragment,{children:[f.jsx(Kl,{children:f.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[f.jsx(Ka,{variant:"ghost",color:"tertiary",icon:f.jsx(S3,{}),"aria-label":r(e==null?void 0:e.displayName)}),f.jsx(vc,{app:e,size:"40"})]})}),f.jsx(Kl,{className:"text-truncate",children:f.jsx(rp,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):f.jsxs(Kl,{className:"gap-12 d-flex align-items-center",children:[f.jsx(vc,{app:e,size:"40"}),f.jsx(rp,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});x0.displayName="Breadcrumb";const L3=x0,S0=x.forwardRef(({icon:e=f.jsx(P3,{}),onClick:t,...n},r)=>{const s=V("btn-search");return f.jsx(Ka,{ref:r,className:s,icon:e,...n,onClick:t})});S0.displayName="SearchButton";const b0=S0,M3=({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.805c.49.704.733 1.473.733 2.306 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624"})]}),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",d:"M22.996 13.153c0 1.393-.291 2.722-.873 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.153c0-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.589M13.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"})]}),sp=F3,$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",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.111m3.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.363"})]}),z3=$3,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",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-.216m7.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-.216m-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-.216m7.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-.24m7.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-.24"})]}),ip=U3,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 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.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.03",clipRule:"evenodd"})]}),V3=B3,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",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216H.5m0-2.738V8.573l5.848 3.531L.5 18.52Zm0-12.084V3.048h23.024v3.387l-11.512 6.847L.5 6.435Zm17.176 5.67 5.848-3.532v9.946l-5.848-6.415"})]}),op=H3,q3=({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.53zm0 4.4v-2.2h-2.14v2.2zM24 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"})]}),Q3=q3,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",d:"M11.685 2C8.66 2 6.7 3.277 5.164 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-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"})]}),K3=W3,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",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.334m10.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.996 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-.837",clipRule:"evenodd"})]}),X3=G3,Y3=({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-24m0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51m0 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.3"})}),f.jsx("defs",{children:f.jsx("clipPath",{id:"one-profile_svg__a",children:f.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),Z3=Y3,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",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.628m2.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.486"})]}),e5=J3,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:"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"})]}),n5=t5,C0=x.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=x.useRef(null);x.useImperativeHandle(i,()=>({...o.current})),x.useEffect(()=>{o.current.indeterminate=r},[o,r]);const a=x.useId(),l={type:"checkbox",checked:n,disabled:t,ref:o,className:V(s.className,"form-check-input c-pointer"),id:a},u={...s,...l};return f.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[f.jsx("input",{...u}),e&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});C0.displayName="Checkbox";const r5=C0,E0=x.createContext(null),Ni=()=>{const e=x.useContext(E0);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},R0=x.createContext(null),Md=()=>{const e=x.useContext(R0);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},k0=x.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:a,isRequired:l,isReadOnly:u,status:c}=Md(),d=V({"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},s);return f.jsx("input",{ref:o,id:a,className:d,type:r,placeholder:t,required:l,readOnly:u,...i})});k0.displayName="Input";const P0=k0,O0=({children:e})=>{const{status:t}=Md(),n=V("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return f.jsx("p",{className:n,children:f.jsx("em",{children:e})})};O0.displayName="Text";const s5=O0,N0=x.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:a,isRequired:l}=Md(),u=V("form-label",{"has-icon":e},s),c=a&&!l,d=l&&!a;return x.useEffect(()=>{if(a&&l)throw new Error("Cannot be optional and required at the same time")},[a,l]),f.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,c&&f.jsxs("em",{className:"optional",children:["- ",t]}),d&&f.jsx("em",{className:"required",children:n})]})});N0.displayName="Label";const i5=N0,j0=x.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...a},l)=>{const u=x.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return f.jsx(R0.Provider,{value:u,children:f.jsx("div",{ref:l,className:t,...a,children:e})})}),o5=Object.assign(j0,{Label:i5,Input:P0,Text:s5});j0.displayName="FormControl";const yc=o5,T0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),c=n.includes(t),d={value:t,model:n,checked:c,readOnly:!0},h=V("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:c?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(r5,{...d})]})})};T0.displayName="Dropdown.CheckboxItem";const a5=T0,_0=({type:e="action",icon:t,onClick:n,children:r,...s})=>{const{itemProps:i,itemRefs:o,isFocused:a}=Ni(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:u,onMenuItemClick:c}=i,d=()=>{n==null||n(),e==="action"&&c()},h=x.useId(),p=V("dropdown-item",{focus:a===h});return f.jsx("div",{id:h,role:"menuitem",ref:m=>o.current[h]=m,tabIndex:a===h?0:-1,className:p,"aria-current":a===h,onClick:d,onMouseEnter:u,onKeyDown:m=>l(m,n),...s,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[t,r]})})};_0.displayName="Dropdown.Item";const l5=_0,I0=x.forwardRef(({children:e,block:t,...n},r)=>{const{menuProps:s,visible:i}=Ni(),{className:o,...a}=s,l={...a,...n},u=V({"w-100":t},o);return i?f.jsx("div",{ref:r,className:u,...l,children:e}):null});I0.displayName="Dropdown.Menu";const u5=I0,A0=x.forwardRef(({label:e,children:t},n)=>f.jsxs("div",{ref:n,role:"group",children:[f.jsx("span",{className:"small px-4",children:f.jsx("strong",{children:e})}),t]}));A0.displayName="Dropdown.MenuGroup";const c5=A0,L0=x.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const a=x.useId(),l={type:"radio",checked:s,disabled:r,ref:o,className:V(i.className,"form-check-input c-pointer",t&&"d-none"),id:a},u={...i,...l};return f.jsxs("div",{className:V("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[f.jsx("input",{...u}),t&&f.jsx("label",{htmlFor:u.id,className:V("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&f.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});L0.displayName="Radio";const d5=L0,M0=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=Ni(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:l}=s,u=x.useId(),d={value:t,model:n,checked:t===n,readOnly:!0},h=V("dropdown-item c-pointer",{focus:o===u});return f.jsx("div",{id:u,ref:p=>i.current[u]=p,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:p=>a(p,()=>r(t)),onMouseEnter:l,tabIndex:t===n?0:-1,className:h,children:f.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,f.jsx(d5,{...d,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};M0.displayName="Dropdown.RadioItem";const f5=M0,D0=()=>f.jsx("div",{role:"separator",className:"px-4",children:f.jsx("hr",{className:"m-0"})});D0.displayName="Dropdown.Separator";const h5=D0,F0=x.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i,...o},a)=>{const{triggerProps:l,block:u}=Ni(),{className:c,...d}=l,h={...d,...o},p=V(s,n,{"w-100":u},c);return f.jsxs("button",{ref:a,className:p,disabled:r,...h,children:[t||null,e,i?f.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):f.jsx(E3,{width:16,height:16,className:"dropdown-toggle-caret"})]})});F0.displayName="Dropdown.Trigger";const p5=F0;function An(e){return $0(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ln(e){var t;return(t=($0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $0(e){return e instanceof Node||e instanceof tt(e).Node}function Je(e){return e instanceof Element||e instanceof tt(e).Element}function Bt(e){return e instanceof HTMLElement||e instanceof tt(e).HTMLElement}function ap(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function ji(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=vt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function m5(e){return["table","td","th"].includes(An(e))}function Dd(e){const t=Fd(),n=vt(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function g5(e){let t=Wr(e);for(;Bt(t)&&!Ga(t);){if(Dd(t))return t;t=Wr(t)}return null}function Fd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ga(e){return["html","body","#document"].includes(An(e))}function vt(e){return tt(e).getComputedStyle(e)}function Xa(e){return Je(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wr(e){if(An(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ap(e)&&e.host||ln(e);return ap(t)?t.host:t}function z0(e){const t=Wr(e);return Ga(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bt(t)&&ji(t)?t:z0(t)}function ui(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=z0(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),o=tt(s);return i?t.concat(o,o.visualViewport||[],ji(s)?s:[],o.frameElement&&n?ui(o.frameElement):[]):t.concat(s,ui(s,[],n))}const ci=Math.min,ct=Math.max,ma=Math.round,io=Math.floor,Ln=e=>({x:e,y:e}),v5={left:"right",right:"left",bottom:"top",top:"bottom"},y5={start:"end",end:"start"};function Ya(e,t){return typeof e=="function"?e(t):e}function sr(e){return e.split("-")[0]}function Ti(e){return e.split("-")[1]}function w5(e){return e==="x"?"y":"x"}function U0(e){return e==="y"?"height":"width"}function Za(e){return["top","bottom"].includes(sr(e))?"y":"x"}function B0(e){return w5(Za(e))}function x5(e,t,n){n===void 0&&(n=!1);const r=Ti(e),s=B0(e),i=U0(s);let o=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=ga(o)),[o,ga(o)]}function S5(e){const t=ga(e);return[wc(e),t,wc(t)]}function wc(e){return e.replace(/start|end/g,t=>y5[t])}function b5(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:o;default:return[]}}function C5(e,t,n,r){const s=Ti(e);let i=b5(sr(e),n==="start",r);return s&&(i=i.map(o=>o+"-"+s),t&&(i=i.concat(i.map(wc)))),i}function ga(e){return e.replace(/left|right|bottom|top/g,t=>v5[t])}function E5(e){return{top:0,right:0,bottom:0,left:0,...e}}function R5(e){return typeof e!="number"?E5(e):{top:e,right:e,bottom:e,left:e}}function va(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function lp(e,t,n){let{reference:r,floating:s}=e;const i=Za(t),o=B0(t),a=U0(o),l=sr(t),u=i==="y",c=r.x+r.width/2-s.width/2,d=r.y+r.height/2-s.height/2,h=r[a]/2-s[a]/2;let p;switch(l){case"top":p={x:c,y:r.y-s.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-s.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Ti(t)){case"start":p[o]-=h*(n&&u?-1:1);break;case"end":p[o]+=h*(n&&u?-1:1);break}return p}const k5=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:s}),{x:c,y:d}=lp(u,r,l),h=r,p={},m=0;for(let y=0;y<a.length;y++){const{name:S,fn:g}=a[y],{x:v,y:w,data:b,reset:E}=await g({x:c,y:d,initialPlacement:r,placement:h,strategy:s,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=v??c,d=w??d,p={...p,[S]:{...p[S],...b}},E&&m<=50){m++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:s}):E.rects),{x:c,y:d}=lp(u,h,l)),y=-1;continue}}return{x:c,y:d,placement:h,strategy:s,middlewareData:p}};async function V0(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:p=0}=Ya(t,e),m=R5(p),S=a[h?d==="floating"?"reference":"floating":d],g=va(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v=d==="floating"?{...o.floating,x:r,y:s}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),b=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=va(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:l}):v);return{top:(g.top-E.top+m.top)/b.y,bottom:(E.bottom-g.bottom+m.bottom)/b.y,left:(g.left-E.left+m.left)/b.x,right:(E.right-g.right+m.right)/b.x}}const P5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...S}=Ya(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=sr(s),v=sr(a)===a,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),b=h||(v||!y?[ga(a)]:S5(a));!h&&m!=="none"&&b.push(...C5(a,y,m,w));const E=[a,...b],R=await V0(t,S),k=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(c&&k.push(R[g]),d){const I=x5(s,o,w);k.push(R[I[0]],R[I[1]])}if(P=[...P,{placement:s,overflows:k}],!k.every(I=>I<=0)){var _,F;const I=(((_=i.flip)==null?void 0:_.index)||0)+1,U=E[I];if(U)return{data:{index:I,overflows:P},reset:{placement:U}};let $=(F=P.filter(C=>C.overflows[0]<=0).sort((C,O)=>C.overflows[1]-O.overflows[1])[0])==null?void 0:F.placement;if(!$)switch(p){case"bestFit":{var A;const C=(A=P.map(O=>[O.placement,O.overflows.filter(L=>L>0).reduce((L,N)=>L+N,0)]).sort((O,L)=>O[1]-L[1])[0])==null?void 0:A[0];C&&($=C);break}case"initialPlacement":$=a;break}if(s!==$)return{reset:{placement:$}}}return{}}}};async function O5(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),o=sr(n),a=Ti(n),l=Za(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,d=Ya(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof m=="number"&&(p=a==="end"?m*-1:m),l?{x:p*c,y:h*u}:{x:h*u,y:p*c}}const N5=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:o,middlewareData:a}=t,l=await O5(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:s+l.x,y:i+l.y,data:{...l,placement:o}}}}},j5=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:s,elements:i}=t,{apply:o=()=>{},...a}=Ya(e,t),l=await V0(t,a),u=sr(n),c=Ti(n),d=Za(n)==="y",{width:h,height:p}=r.floating;let m,y;u==="top"||u==="bottom"?(m=u,y=c===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,m=c==="end"?"top":"bottom");const S=p-l[m],g=h-l[y],v=!t.middlewareData.shift;let w=S,b=g;if(d){const R=h-l.left-l.right;b=c||v?ci(g,R):R}else{const R=p-l.top-l.bottom;w=c||v?ci(S,R):R}if(v&&!c){const R=ct(l.left,0),k=ct(l.right,0),P=ct(l.top,0),_=ct(l.bottom,0);d?b=h-2*(R!==0||k!==0?R+k:ct(l.left,l.right)):w=p-2*(P!==0||_!==0?P+_:ct(l.top,l.bottom))}await o({...t,availableWidth:b,availableHeight:w});const E=await s.getDimensions(i.floating);return h!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}};function H0(e){const t=vt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=Bt(e),i=s?e.offsetWidth:n,o=s?e.offsetHeight:r,a=ma(n)!==i||ma(r)!==o;return a&&(n=i,r=o),{width:n,height:r,$:a}}function $d(e){return Je(e)?e:e.contextElement}function Mr(e){const t=$d(e);if(!Bt(t))return Ln(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=H0(t);let o=(i?ma(n.width):n.width)/r,a=(i?ma(n.height):n.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const T5=Ln(0);function q0(e){const t=tt(e);return!Fd()||!t.visualViewport?T5:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _5(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==tt(e)?!1:t}function ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=$d(e);let o=Ln(1);t&&(r?Je(r)&&(o=Mr(r)):o=Mr(e));const a=_5(i,n,r)?q0(i):Ln(0);let l=(s.left+a.x)/o.x,u=(s.top+a.y)/o.y,c=s.width/o.x,d=s.height/o.y;if(i){const h=tt(i),p=r&&Je(r)?tt(r):r;let m=h.frameElement;for(;m&&r&&p!==h;){const y=Mr(m),S=m.getBoundingClientRect(),g=vt(m),v=S.left+(m.clientLeft+parseFloat(g.paddingLeft))*y.x,w=S.top+(m.clientTop+parseFloat(g.paddingTop))*y.y;l*=y.x,u*=y.y,c*=y.x,d*=y.y,l+=v,u+=w,m=tt(m).frameElement}}return va({width:c,height:d,x:l,y:u})}function I5(e){let{rect:t,offsetParent:n,strategy:r}=e;const s=Bt(n),i=ln(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},a=Ln(1);const l=Ln(0);if((s||!s&&r!=="fixed")&&((An(n)!=="body"||ji(i))&&(o=Xa(n)),Bt(n))){const u=ir(n);a=Mr(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-o.scrollLeft*a.x+l.x,y:t.y*a.y-o.scrollTop*a.y+l.y}}function A5(e){return Array.from(e.getClientRects())}function Q0(e){return ir(ln(e)).left+Xa(e).scrollLeft}function L5(e){const t=ln(e),n=Xa(e),r=e.ownerDocument.body,s=ct(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ct(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+Q0(e);const a=-n.scrollTop;return vt(r).direction==="rtl"&&(o+=ct(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:o,y:a}}function M5(e,t){const n=tt(e),r=ln(e),s=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,a=0,l=0;if(s){i=s.width,o=s.height;const u=Fd();(!u||u&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:i,height:o,x:a,y:l}}function D5(e,t){const n=ir(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=Bt(e)?Mr(e):Ln(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,l=s*i.x,u=r*i.y;return{width:o,height:a,x:l,y:u}}function up(e,t,n){let r;if(t==="viewport")r=M5(e,n);else if(t==="document")r=L5(ln(e));else if(Je(t))r=D5(t,n);else{const s=q0(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return va(r)}function W0(e,t){const n=Wr(e);return n===t||!Je(n)||Ga(n)?!1:vt(n).position==="fixed"||W0(n,t)}function F5(e,t){const n=t.get(e);if(n)return n;let r=ui(e,[],!1).filter(a=>Je(a)&&An(a)!=="body"),s=null;const i=vt(e).position==="fixed";let o=i?Wr(e):e;for(;Je(o)&&!Ga(o);){const a=vt(o),l=Dd(o);!l&&a.position==="fixed"&&(s=null),(i?!l&&!s:!l&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||ji(o)&&!l&&W0(e,o))?r=r.filter(c=>c!==o):s=a,o=Wr(o)}return t.set(e,r),r}function $5(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const o=[...n==="clippingAncestors"?F5(t,this._c):[].concat(n),r],a=o[0],l=o.reduce((u,c)=>{const d=up(t,c,s);return u.top=ct(d.top,u.top),u.right=ci(d.right,u.right),u.bottom=ci(d.bottom,u.bottom),u.left=ct(d.left,u.left),u},up(t,a,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function z5(e){return H0(e)}function U5(e,t,n){const r=Bt(t),s=ln(t),i=n==="fixed",o=ir(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Ln(0);if(r||!r&&!i)if((An(t)!=="body"||ji(s))&&(a=Xa(t)),r){const u=ir(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else s&&(l.x=Q0(s));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function cp(e,t){return!Bt(e)||vt(e).position==="fixed"?null:t?t(e):e.offsetParent}function K0(e,t){const n=tt(e);if(!Bt(e))return n;let r=cp(e,t);for(;r&&m5(r)&&vt(r).position==="static";)r=cp(r,t);return r&&(An(r)==="html"||An(r)==="body"&&vt(r).position==="static"&&!Dd(r))?n:r||g5(e)||n}const B5=async function(e){let{reference:t,floating:n,strategy:r}=e;const s=this.getOffsetParent||K0,i=this.getDimensions;return{reference:U5(t,await s(n),r),floating:{x:0,y:0,...await i(n)}}};function V5(e){return vt(e).direction==="rtl"}const H5={convertOffsetParentRelativeRectToViewportRelativeRect:I5,getDocumentElement:ln,getClippingRect:$5,getOffsetParent:K0,getElementRects:B5,getClientRects:A5,getDimensions:z5,getScale:Mr,isElement:Je,isRTL:V5};function q5(e,t){let n=null,r;const s=ln(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:d,height:h}=e.getBoundingClientRect();if(a||t(),!d||!h)return;const p=io(c),m=io(s.clientWidth-(u+d)),y=io(s.clientHeight-(c+h)),S=io(u),v={rootMargin:-p+"px "+-m+"px "+-y+"px "+-S+"px",threshold:ct(0,ci(1,l))||1};let w=!0;function b(E){const R=E[0].intersectionRatio;if(R!==l){if(!w)return o();R?o(!1,R):r=setTimeout(()=>{o(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(b,{...v,root:s.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),i}function Q5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=$d(e),c=s||i?[...u?ui(u):[],...ui(t)]:[];c.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const d=u&&a?q5(u,n):null;let h=-1,p=null;o&&(p=new ResizeObserver(g=>{let[v]=g;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!l&&p.observe(u),p.observe(t));let m,y=l?ir(e):null;l&&S();function S(){const g=ir(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,m=requestAnimationFrame(S)}return n(),()=>{c.forEach(g=>{s&&g.removeEventListener("scroll",n),i&&g.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,l&&cancelAnimationFrame(m)}}const W5=(e,t,n)=>{const r=new Map,s={platform:H5,...n},i={...s.platform,_c:r};return k5(e,t,{...s,platform:i})};var jo=typeof document<"u"?x.useLayoutEffect:x.useEffect;function ya(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!ya(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!ya(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function G0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dp(e,t){const n=G0(e);return Math.round(t*n)/n}function fp(e){const t=x.useRef(e);return jo(()=>{t.current=e}),t}function K5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=x.useState(r);ya(h,r)||p(r);const[m,y]=x.useState(null),[S,g]=x.useState(null),v=x.useCallback(O=>{O!=R.current&&(R.current=O,y(O))},[y]),w=x.useCallback(O=>{O!==k.current&&(k.current=O,g(O))},[g]),b=i||m,E=o||S,R=x.useRef(null),k=x.useRef(null),P=x.useRef(c),_=fp(l),F=fp(s),A=x.useCallback(()=>{if(!R.current||!k.current)return;const O={placement:t,strategy:n,middleware:h};F.current&&(O.platform=F.current),W5(R.current,k.current,O).then(L=>{const N={...L,isPositioned:!0};I.current&&!ya(P.current,N)&&(P.current=N,Pi.flushSync(()=>{d(N)}))})},[h,t,n,F]);jo(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(O=>({...O,isPositioned:!1})))},[u]);const I=x.useRef(!1);jo(()=>(I.current=!0,()=>{I.current=!1}),[]),jo(()=>{if(b&&(R.current=b),E&&(k.current=E),b&&E){if(_.current)return _.current(b,E,A);A()}},[b,E,A,_]);const U=x.useMemo(()=>({reference:R,floating:k,setReference:v,setFloating:w}),[v,w]),$=x.useMemo(()=>({reference:b,floating:E}),[b,E]),C=x.useMemo(()=>{const O={position:n,left:0,top:0};if(!$.floating)return O;const L=dp($.floating,c.x),N=dp($.floating,c.y);return a?{...O,transform:"translate("+L+"px, "+N+"px)",...G0($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:N}},[n,a,$.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:A,refs:U,elements:$,floatingStyles:C}),[c,A,U,$,C])}var X0=typeof document<"u"?x.useLayoutEffect:x.useEffect;let Gl=!1,G5=0;const hp=()=>"floating-ui-"+G5++;function X5(){const[e,t]=x.useState(()=>Gl?hp():void 0);return X0(()=>{e==null&&t(hp())},[]),x.useEffect(()=>{Gl||(Gl=!0)},[]),e}const Y5=mm["useId".toString()],Z5=Y5||X5;function J5(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(s=>s(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(s=>s!==n))||[])}}}const eb=x.createContext(null),tb=()=>x.useContext(eb),nb=mm["useInsertionEffect".toString()],rb=nb||(e=>e());function sb(e){const t=x.useRef(()=>{});return rb(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];return t.current==null?void 0:t.current(...r)},[])}function ib(e){var t;e===void 0&&(e={});const{open:n=!1,onOpenChange:r,nodeId:s}=e,[i,o]=x.useState(null),a=((t=e.elements)==null?void 0:t.reference)||i,l=K5(e),u=tb(),c=sb((b,E)=>{b&&(h.current.openEvent=E),r==null||r(b,E)}),d=x.useRef(null),h=x.useRef({}),p=x.useState(()=>J5())[0],m=Z5(),y=x.useCallback(b=>{const E=Je(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),contextElement:b}:b;l.refs.setReference(E)},[l.refs]),S=x.useCallback(b=>{(Je(b)||b===null)&&(d.current=b,o(b)),(Je(l.refs.reference.current)||l.refs.reference.current===null||b!==null&&!Je(b))&&l.refs.setReference(b)},[l.refs]),g=x.useMemo(()=>({...l.refs,setReference:S,setPositionReference:y,domReference:d}),[l.refs,S,y]),v=x.useMemo(()=>({...l.elements,domReference:a}),[l.elements,a]),w=x.useMemo(()=>({...l,refs:g,elements:v,dataRef:h,nodeId:s,floatingId:m,events:p,open:n,onOpenChange:c}),[l,s,m,p,n,c,g,v]);return X0(()=>{const b=u==null?void 0:u.nodesRef.current.find(E=>E.id===s);b&&(b.context=w)}),x.useMemo(()=>({...l,context:w,refs:g,elements:v}),[l,g,v,w])}const ob=e=>{const t=x.useId(),[n,r]=x.useState(!1),[s,i]=x.useState(-1),[o,a]=x.useState(null),{refs:l,floatingStyles:u}=ib({placement:e,open:n,onOpenChange:r,whileElementsMounted:Q5,middleware:[N5(4),j5({apply({rects:A,elements:I}){Object.assign(I.floating.style,{minWidth:`${A.reference.width}px`})}}),P5({padding:0})]}),c=x.useRef(null),d=x.useRef(null),h=x.useRef({});x.useEffect(()=>{n?c.current&&(c.current.focus(),i(0)):(i(-1),h.current={})},[n]),x.useEffect(()=>{if(s!==-1){const A=Object.values(h.current)[s];if(A){const I=A.getAttribute("id");a(I),A.focus()}}},[s]);const p=()=>{const I=Object.values(h.current).length;i(U=>(U+1)%I)},m=()=>{const I=Object.values(h.current).length;i(U=>(U-1+I)%I)},y=()=>{i(0)},S=()=>{const I=Object.values(h.current).length;i(I-1)},g=x.useCallback(()=>{r(!0)},[]),v=x.useCallback(()=>{d.current&&(d.current.focus(),r(!1))},[]),w=(A,I)=>{A&&(I.stopPropagation(),I.preventDefault())},b=x.useCallback(A=>{let I=!1;switch(A.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),I=!0;break;case"Esc":case"Escape":v(),I=!0;break;case"Up":case"ArrowUp":g(),I=!0;break}w(I,A)},[v,g]),E=A=>{const U=Object.values(h.current).findIndex($=>$.id===A.currentTarget.getAttribute("id"));i(U)},R=x.useCallback((A,I)=>{let U=!1;if(A.shiftKey)A.key==="Tab"&&(v(),U=!0);else{switch(A.code){case"Escape":v();break;case" ":case"Space":case"Enter":s!==-1&&(Object.values(h.current)[s].getAttribute("role")==="menuitem"&&d.current&&(d.current.focus(),r(!1)),I==null||I()),U=!0;break;case"ArrowDown":case"Down":p(),U=!0;break;case"ArrowUp":case"Up":m(),U=!0;break;case"Home":y(),U=!0;break;case"End":S(),U=!0;break}w(U,A)}},[s,v]),k=x.useCallback(A=>{r(n!==!0),A.stopPropagation(),A.preventDefault()},[n]),P=x.useCallback(()=>{v()},[v]);function _(A,...I){I.forEach(U=>{typeof U=="function"?U(A):U!=null&&(U.current=A)})}function F(...A){return I=>{_(I,...A)}}return{isFocused:o,visible:n,itemRefs:h,triggerRef:d,menuRef:c,triggerProps:{ref:F(d,l.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:k,onKeyDown:b,"aria-activedescendant":o},menuProps:{ref:F(c,l.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,style:{...u}},itemProps:{onMenuItemMouseEnter:E,onMenuItemClick:P,onMenuItemKeyDown:R},setVisible:r}},ab=ob,Y0=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,setVisible:c}=ab(r),d=t0(()=>c(!1)),h=x.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:a,itemProps:l,itemRefs:u,block:t,setVisible:c}),[s,i,o,a,l,u,t,c]),p=V("dropdown",{"w-100":t,overflow:n});return f.jsx(E0.Provider,{value:h,children:f.jsx("div",{ref:d,className:p,children:typeof e=="function"?e(o,u):e})})};Y0.displayName="Dropdown";const lb=Object.assign(Y0,{Trigger:p5,Menu:u5,Item:l5,Separator:h5,CheckboxItem:a5,RadioItem:f5,MenuGroup:c5}),pr=lb,Ms=({children:e,className:t,...n})=>{const r=V("grid",t);return f.jsx("div",{className:r,...n,children:e})},Z0=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...a})=>{const l=o||"div",u=V({[`g-col-${e}`]:e,[t?`g-col-md-${t}`:""]:t,[n?`g-col-lg-${n}`:""]:n,[r?`g-col-xl-${r}`:""]:r},i);return f.jsx(l,{className:u,...a,children:s})};Ms.displayName="Grid";Z0.displayName="Grid.Col";Ms.Col=Z0;const J0=x.forwardRef(({position:e=!0},t)=>{const[n]=Qa(),r=`${n}/loading/screen-loading.gif`,s=V("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:s,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"})]})});J0.displayName="LoadingScreen";const Ve=J0,ev=x.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=V("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return f.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:f.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});ev.displayName="Logo";const pp=ev;var ub=Object.defineProperty,cb=(e,t)=>{for(var n in t)ub(e,n,{get:t[n],enumerable:!0})},Nt={};cb(Nt,{assign:()=>hb,colors:()=>Tn,createStringInterpolator:()=>Qd,skipAnimation:()=>av,to:()=>ov,willAdvance:()=>Wd});var zd=Ii(),H=e=>_i(e,zd),Ud=Ii();H.write=e=>_i(e,Ud);var Ja=Ii();H.onStart=e=>_i(e,Ja);var Bd=Ii();H.onFrame=e=>_i(e,Bd);var Vd=Ii();H.onFinish=e=>_i(e,Vd);var Dr=[];H.setTimeout=(e,t)=>{const n=H.now()+t,r=()=>{const i=Dr.findIndex(o=>o.cancel==r);~i&&Dr.splice(i,1),Sn-=~i?1:0},s={time:n,handler:e,cancel:r};return Dr.splice(tv(n),0,s),Sn+=1,nv(),s};var tv=e=>~(~Dr.findIndex(t=>t.time>e)||~Dr.length);H.cancel=e=>{Ja.delete(e),Bd.delete(e),Vd.delete(e),zd.delete(e),Ud.delete(e)};H.sync=e=>{xc=!0,H.batchedUpdates(e),xc=!1};H.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,H.onStart(n)}return r.handler=e,r.cancel=()=>{Ja.delete(n),t=null},r};var Hd=typeof window<"u"?window.requestAnimationFrame:()=>{};H.use=e=>Hd=e;H.now=typeof performance<"u"?()=>performance.now():Date.now;H.batchedUpdates=e=>e();H.catch=console.error;H.frameLoop="always";H.advance=()=>{H.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):sv()};var xn=-1,Sn=0,xc=!1;function _i(e,t){xc?(t.delete(e),e(0)):(t.add(e),nv())}function nv(){xn<0&&(xn=0,H.frameLoop!=="demand"&&Hd(rv))}function db(){xn=-1}function rv(){~xn&&(Hd(rv),H.batchedUpdates(sv))}function sv(){const e=xn;xn=H.now();const t=tv(xn);if(t&&(iv(Dr.splice(0,t),n=>n.handler()),Sn-=t),!Sn){db();return}Ja.flush(),zd.flush(e?Math.min(64,xn-e):16.667),Bd.flush(),Ud.flush(),Vd.flush()}function Ii(){let e=new Set,t=e;return{add(n){Sn+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return Sn-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Sn-=t.size,iv(t,r=>r(n)&&e.add(r)),Sn+=e.size,t=e)}}}function iv(e,t){e.forEach(n=>{try{t(n)}catch(r){H.catch(r)}})}function Sc(){}var fb=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),j={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 Kt(e,t){if(j.arr(e)){if(!j.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 B=(e,t)=>e.forEach(t);function Vt(e,t,n){if(j.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 Ie=e=>j.und(e)?[]:j.arr(e)?e:[e];function Ds(e,t){if(e.size){const n=Array.from(e);e.clear(),B(n,t)}}var Cs=(e,...t)=>Ds(e,n=>n(...t)),qd=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),Qd,ov,Tn=null,av=!1,Wd=Sc,hb=e=>{e.to&&(ov=e.to),e.now&&(H.now=e.now),e.colors!==void 0&&(Tn=e.colors),e.skipAnimation!=null&&(av=e.skipAnimation),e.createStringInterpolator&&(Qd=e.createStringInterpolator),e.requestAnimationFrame&&H.use(e.requestAnimationFrame),e.batchedUpdates&&(H.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Wd=e.willAdvance),e.frameLoop&&(H.frameLoop=e.frameLoop)},Fs=new Set,ft=[],Xl=[],wa=0,el={get idle(){return!Fs.size&&!ft.length},start(e){wa>e.priority?(Fs.add(e),H.onStart(pb)):(lv(e),H(bc))},advance:bc,sort(e){if(wa)H.onFrame(()=>el.sort(e));else{const t=ft.indexOf(e);~t&&(ft.splice(t,1),uv(e))}},clear(){ft=[],Fs.clear()}};function pb(){Fs.forEach(lv),Fs.clear(),H(bc)}function lv(e){ft.includes(e)||uv(e)}function uv(e){ft.splice(mb(ft,t=>t.priority>e.priority),0,e)}function bc(e){const t=Xl;for(let n=0;n<ft.length;n++){const r=ft[n];wa=r.priority,r.idle||(Wd(r),r.advance(e),r.idle||t.push(r))}return wa=0,Xl=ft,Xl.length=0,ft=t,ft.length>0}function mb(e,t){const n=e.findIndex(t);return n<0?e.length:n}var gb=(e,t,n)=>Math.min(Math.max(n,e),t),vb={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},Rt="[-+]?\\d*\\.?\\d+",xa=Rt+"%";function tl(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var yb=new RegExp("rgb"+tl(Rt,Rt,Rt)),wb=new RegExp("rgba"+tl(Rt,Rt,Rt,Rt)),xb=new RegExp("hsl"+tl(Rt,xa,xa)),Sb=new RegExp("hsla"+tl(Rt,xa,xa,Rt)),bb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Cb=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Eb=/^#([0-9a-fA-F]{6})$/,Rb=/^#([0-9a-fA-F]{8})$/;function kb(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Eb.exec(e))?parseInt(t[1]+"ff",16)>>>0:Tn&&Tn[e]!==void 0?Tn[e]:(t=yb.exec(e))?(mr(t[1])<<24|mr(t[2])<<16|mr(t[3])<<8|255)>>>0:(t=wb.exec(e))?(mr(t[1])<<24|mr(t[2])<<16|mr(t[3])<<8|vp(t[4]))>>>0:(t=bb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Rb.exec(e))?parseInt(t[1],16)>>>0:(t=Cb.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=xb.exec(e))?(mp(gp(t[1]),oo(t[2]),oo(t[3]))|255)>>>0:(t=Sb.exec(e))?(mp(gp(t[1]),oo(t[2]),oo(t[3]))|vp(t[4]))>>>0:null}function Yl(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 mp(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=Yl(s,r,e+1/3),o=Yl(s,r,e),a=Yl(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(a*255)<<8}function mr(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function gp(e){return(parseFloat(e)%360+360)%360/360}function vp(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function oo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function yp(e){let t=kb(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var di=(e,t,n)=>{if(j.fun(e))return e;if(j.arr(e))return di({range:e,output:t,extrapolate:n});if(j.str(e.output[0]))return Qd(e);const r=e,s=r.output,i=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=Ob(u,i);return Pb(u,i[c],i[c+1],s[c],s[c+1],l,o,a,r.map)}};function Pb(e,t,n,r,s,i,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===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function Ob(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var Nb=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return gb(0,1,s/e)},Sa=1.70158,ao=Sa*1.525,wp=Sa+1,xp=2*Math.PI/3,Sp=2*Math.PI/4.5,lo=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,jb={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=>wp*e*e*e-Sa*e*e,easeOutBack:e=>1+wp*Math.pow(e-1,3)+Sa*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((ao+1)*2*e-ao)/2:(Math.pow(2*e-2,2)*((ao+1)*(e*2-2)+ao)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*xp),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*xp)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Sp))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Sp)/2+1,easeInBounce:e=>1-lo(1-e),easeOutBounce:lo,easeInOutBounce:e=>e<.5?(1-lo(1-2*e))/2:(1+lo(2*e-1))/2,steps:Nb},fi=Symbol.for("FluidValue.get"),Kr=Symbol.for("FluidValue.observers"),dt=e=>!!(e&&e[fi]),ze=e=>e&&e[fi]?e[fi]():e,bp=e=>e[Kr]||null;function Tb(e,t){e.eventObserved?e.eventObserved(t):e(t)}function hi(e,t){const n=e[Kr];n&&n.forEach(r=>{Tb(r,t)})}var cv=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");_b(this,e)}},_b=(e,t)=>dv(e,fi,t);function es(e,t){if(e[fi]){let n=e[Kr];n||dv(e,Kr,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function pi(e,t){const n=e[Kr];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Kr]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var dv=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),To=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Ib=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cp=new RegExp(`(${To.source})(%|[a-z]+)`,"i"),Ab=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,nl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,fv=e=>{const[t,n]=Lb(e);if(!t||qd())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&nl.test(n))return fv(n);if(n)return n}return e},Lb=e=>{const t=nl.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Zl,Mb=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,hv=e=>{Zl||(Zl=Tn?new RegExp(`(${Object.keys(Tn).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>ze(i).replace(nl,fv).replace(Ib,yp).replace(Zl,yp)),n=t.map(i=>i.match(To).map(Number)),s=n[0].map((i,o)=>n.map(a=>{if(!(o in a))throw Error('The arity of each "output" value must be equal');return a[o]})).map(i=>di({...e,output:i}));return i=>{var l;const o=!Cp.test(t[0])&&((l=t.find(u=>Cp.test(u)))==null?void 0:l.replace(To,""));let a=0;return t[0].replace(To,()=>`${s[a++](i)}${o||""}`).replace(Ab,Mb)}},Kd="react-spring: ",pv=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Kd}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},Db=pv(console.warn);function Fb(){Db(`${Kd}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var $b=pv(console.warn);function zb(){$b(`${Kd}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 rl(e){return j.str(e)&&(e[0]=="#"||/\d/.test(e)||!qd()&&nl.test(e)||e in(Tn||{}))}var Xn=qd()?x.useEffect:x.useLayoutEffect,Ub=()=>{const e=x.useRef(!1);return Xn(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Gd(){const e=x.useState()[1],t=Ub();return()=>{t.current&&e(Math.random())}}function Bb(e,t){const[n]=x.useState(()=>({inputs:t,result:e()})),r=x.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&Vb(t,i.inputs)||(i={inputs:t,result:e()}):i=n,x.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function Vb(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 Xd=e=>x.useEffect(e,Hb),Hb=[];function Cc(e){const t=x.useRef();return x.useEffect(()=>{t.current=e}),t.current}var mi=Symbol.for("Animated:node"),qb=e=>!!e&&e[mi]===e,Dt=e=>e&&e[mi],Yd=(e,t)=>fb(e,mi,t),sl=e=>e&&e[mi]&&e[mi].getPayload(),mv=class{constructor(){Yd(this,this)}getPayload(){return this.payload||[]}},Ai=class extends mv{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,j.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ai(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return j.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,j.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},gi=class extends Ai{constructor(e){super(0),this._string=null,this._toString=di({output:[e,e]})}static create(e){return new gi(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(j.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=di({output:[this.getValue(),e]})),this._value=0,super.reset()}},ba={dependencies:null},il=class extends mv{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Vt(this.source,(n,r)=>{qb(n)?t[r]=n.getValue(e):dt(n)?t[r]=ze(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&B(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return Vt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ba.dependencies&&dt(e)&&ba.dependencies.add(e);const t=sl(e);t&&B(t,n=>this.add(n))}},gv=class extends il{constructor(e){super(e)}static create(e){return new gv(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(Qb)),!0)}};function Qb(e){return(rl(e)?gi:Ai).create(e)}function Ec(e){const t=Dt(e);return t?t.constructor:j.arr(e)?gv:rl(e)?gi:Ai}var Ep=(e,t)=>{const n=!j.fun(e)||e.prototype&&e.prototype.isReactComponent;return x.forwardRef((r,s)=>{const i=x.useRef(null),o=n&&x.useCallback(m=>{i.current=Gb(s,m)},[s]),[a,l]=Kb(r,t),u=Gd(),c=()=>{const m=i.current;if(n&&!m)return;(m?t.applyAnimatedValues(m,a.getValue(!0)):!1)===!1&&u()},d=new Wb(c,l),h=x.useRef();Xn(()=>(h.current=d,B(l,m=>es(m,d)),()=>{h.current&&(B(h.current.deps,m=>pi(m,h.current)),H.cancel(h.current.update))})),x.useEffect(c,[]),Xd(()=>()=>{const m=h.current;B(m.deps,y=>pi(y,m))});const p=t.getComponentProps(a.getValue());return x.createElement(e,{...p,ref:o})})},Wb=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&H.write(this.update)}};function Kb(e,t){const n=new Set;return ba.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new il(e),ba.dependencies=null,[e,n]}function Gb(e,t){return e&&(j.fun(e)?e(t):e.current=t),t}var Rp=Symbol.for("AnimatedComponent"),Xb=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new il(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const a=kp(o)||"Anonymous";return j.str(o)?o=i[o]||(i[o]=Ep(o,s)):o=o[Rp]||(o[Rp]=Ep(o,s)),o.displayName=`Animated(${a})`,o};return Vt(e,(o,a)=>{j.arr(e)&&(a=kp(o)),i[a]=i(o)}),{animated:i}},kp=e=>j.str(e)?e:e&&j.str(e.displayName)?e.displayName:j.fun(e)&&e.name||null;function Ue(e,...t){return j.fun(e)?e(...t):e}var $s=(e,t)=>e===!0||!!(t&&e&&(j.fun(e)?e(t):Ie(e).includes(t))),vv=(e,t)=>j.obj(e)?t&&e[t]:e,yv=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Yb=e=>e,ol=(e,t=Yb)=>{let n=Zb;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);j.und(i)||(r[s]=i)}return r},Zb=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Jb={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 eC(e){const t={};let n=0;if(Vt(e,(r,s)=>{Jb[s]||(t[s]=r,n++)}),n)return t}function Zd(e){const t=eC(e);if(t){const n={to:t};return Vt(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function vi(e){return e=ze(e),j.arr(e)?e.map(vi):rl(e)?Nt.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function wv(e){for(const t in e)return!0;return!1}function Rc(e){return j.fun(e)||j.arr(e)&&j.obj(e[0])}function kc(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function xv(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var tC={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}},Pc={...tC.default,mass:1,damping:1,easing:jb.linear,clamp:!1},nC=class{constructor(){this.velocity=0,Object.assign(this,Pc)}};function rC(e,t,n){n&&(n={...n},Pp(n,t),t={...n,...t}),Pp(e,t),Object.assign(e,t);for(const o in Pc)e[o]==null&&(e[o]=Pc[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return j.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function Pp(e,t){if(!j.und(t.decay))e.duration=void 0;else{const n=!j.und(t.tension)||!j.und(t.friction);(n||!j.und(t.frequency)||!j.und(t.damping)||!j.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var Op=[],sC=class{constructor(){this.changed=!1,this.values=Op,this.toValues=null,this.fromValues=Op,this.config=new nC,this.immediate=!1}};function Sv(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,a)=>{let l,u,c=$s(n.cancel??(r==null?void 0:r.cancel),t);if(c)p();else{j.und(n.pause)||(s.paused=$s(n.pause,t));let m=r==null?void 0:r.pause;m!==!0&&(m=s.paused||$s(m,t)),l=Ue(n.delay||0,t),m?(s.resumeQueue.add(h),i.pause()):(i.resume(),h())}function d(){s.resumeQueue.add(h),s.timeouts.delete(u),u.cancel(),l=u.time-H.now()}function h(){l>0&&!Nt.skipAnimation?(s.delayed=!0,u=H.setTimeout(p,l),s.pauseQueue.add(d),s.timeouts.add(u)):p()}function p(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(d),s.timeouts.delete(u),e<=(s.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},o)}catch(m){a(m)}}})}var Jd=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Fr(e.get()):t.every(n=>n.noop)?bv(e.get()):Et(e.get(),t.every(n=>n.finished)),bv=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Et=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Fr=e=>({value:e,cancelled:!0,finished:!1});function Cv(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:a,promise:l}=n;return!i&&e===a&&!t.reset?l:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=ol(t,(S,g)=>g==="onRest"?void 0:S);let c,d;const h=new Promise((S,g)=>(c=S,d=g)),p=S=>{const g=s<=(n.cancelId||0)&&Fr(r)||s!==n.asyncId&&Et(r,!1);if(g)throw S.result=g,d(S),S},m=(S,g)=>{const v=new Np,w=new jp;return(async()=>{if(Nt.skipAnimation)throw yi(n),w.result=Et(r,!1),d(w),w;p(v);const b=j.obj(S)?{...S}:{...g,to:S};b.parentId=s,Vt(u,(R,k)=>{j.und(b[k])&&(b[k]=R)});const E=await r.start(b);return p(v),n.paused&&await new Promise(R=>{n.resumeQueue.add(R)}),E})()};let y;if(Nt.skipAnimation)return yi(n),Et(r,!1);try{let S;j.arr(e)?S=(async g=>{for(const v of g)await m(v)})(e):S=Promise.resolve(e(m,r.stop.bind(r))),await Promise.all([S.then(c),h]),y=Et(r.get(),!0,!1)}catch(S){if(S instanceof Np)y=S.result;else if(S instanceof jp)y=S.result;else throw S}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?a:void 0,n.promise=i?l:void 0)}return j.fun(o)&&H.batchedUpdates(()=>{o(y,r,r.item)}),y})()}function yi(e,t){Ds(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Np=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.")}},jp=class extends Error{constructor(){super("SkipAnimationSignal")}},Oc=e=>e instanceof ef,iC=1,ef=class extends cv{constructor(){super(...arguments),this.id=iC++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Dt(this);return e&&e.getValue()}to(...e){return Nt.to(this,e)}interpolate(...e){return Fb(),Nt.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){hi(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||el.sort(this),hi(this,{type:"priority",parent:this,priority:e})}},or=Symbol.for("SpringPhase"),Ev=1,Nc=2,jc=4,Jl=e=>(e[or]&Ev)>0,dn=e=>(e[or]&Nc)>0,ps=e=>(e[or]&jc)>0,Tp=(e,t)=>t?e[or]|=Nc|Ev:e[or]&=~Nc,_p=(e,t)=>t?e[or]|=jc:e[or]&=~jc,oC=class extends ef{constructor(e,t){if(super(),this.animation=new sC,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,!j.und(e)||!j.und(t)){const n=j.obj(e)?{...e}:{...t,from:e};j.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(dn(this)||this._state.asyncTo)||ps(this)}get goal(){return ze(this.animation.to)}get velocity(){const e=Dt(this);return e instanceof Ai?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return Jl(this)}get isAnimating(){return dn(this)}get isPaused(){return ps(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=sl(r.to);!o&&dt(r.to)&&(s=Ie(ze(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const d=u.constructor==gi?1:o?o[c].lastPosition:s[c];let h=r.immediate,p=d;if(!h){if(p=u.lastPosition,i.tension<=0){u.done=!0;return}let m=u.elapsedTime+=e;const y=r.fromValues[c],S=u.v0!=null?u.v0:u.v0=j.arr(i.velocity)?i.velocity[c]:i.velocity;let g;const v=i.precision||(y==d?.005:Math.min(1,Math.abs(d-y)*.001));if(j.und(i.duration))if(i.decay){const w=i.decay===!0?.998:i.decay,b=Math.exp(-(1-w)*m);p=y+S/(1-w)*(1-b),h=Math.abs(u.lastPosition-p)<=v,g=S*b}else{g=u.lastVelocity==null?S:u.lastVelocity;const w=i.restVelocity||v/10,b=i.clamp?0:i.bounce,E=!j.und(b),R=y==d?u.v0>0:y<d;let k,P=!1;const _=1,F=Math.ceil(e/_);for(let A=0;A<F&&(k=Math.abs(g)>w,!(!k&&(h=Math.abs(d-p)<=v,h)));++A){E&&(P=p==d||p>d==R,P&&(g=-g*b,p=d));const I=-i.tension*1e-6*(p-d),U=-i.friction*.001*g,$=(I+U)/i.mass;g=g+$*_,p=p+g*_}}else{let w=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,m=u.elapsedTime+=e)),w=(i.progress||0)+m/this._memoizedDuration,w=w>1?1:w<0?0:w,u.durationProgress=w),p=y+i.easing(w)*(d-y),g=(p-u.lastPosition)/e,h=w==1}u.lastVelocity=g,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),h=!0)}o&&!o[c].done&&(h=!1),h?u.done=!0:t=!1,u.setValue(p,i.round)&&(n=!0)});const a=Dt(this),l=a.getValue();if(t){const u=ze(r.to);(l!==u||n)&&!i.decay?(a.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(e){return H.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(dn(this)){const{to:e,config:t}=this.animation;H.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 j.und(e)?(n=this.queue||[],this.queue=[]):n=[j.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>Jd(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),yi(this._state,e&&this._lastCallId),H.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=j.obj(n)?n[t]:n,(n==null||Rc(n))&&(n=void 0),r=j.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return Jl(this)||(e.reverse&&([n,r]=[r,n]),r=ze(r),j.und(r)?Dt(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,ol(e,(o,a)=>/^on/.test(a)?vv(o,n):o)),Ap(this,e,"onProps"),gs(this,"onProps",e,this);const s=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 i=this._state;return Sv(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{ps(this)||(_p(this,!0),Cs(i.pauseQueue),gs(this,"onPause",Et(this,ms(this,this.animation.to)),this))},resume:()=>{ps(this)&&(_p(this,!1),dn(this)&&this._resume(),Cs(i.resumeQueue),gs(this,"onResume",Et(this,ms(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const a=Rv(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=!j.und(e.to),s=!j.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Fr(this));const{key:i,defaultProps:o,animation:a}=this,{to:l,from:u}=a;let{to:c=l,from:d=u}=e;s&&!r&&(!t.default||j.und(c))&&(c=d),t.reverse&&([c,d]=[d,c]);const h=!Kt(d,u);h&&(a.from=d),d=ze(d);const p=!Kt(c,l);p&&this._focus(c);const m=Rc(t.to),{config:y}=a,{decay:S,velocity:g}=y;(r||s)&&(y.velocity=0),t.config&&!m&&rC(y,Ue(t.config,i),t.config!==o.config?Ue(o.config,i):void 0);let v=Dt(this);if(!v||j.und(c))return n(Et(this,!0));const w=j.und(t.reset)?s&&!t.default:!j.und(d)&&$s(t.reset,i),b=w?d:this.get(),E=vi(c),R=j.num(E)||j.arr(E)||rl(E),k=!m&&(!R||$s(o.immediate||t.immediate,i));if(p){const A=Ec(c);if(A!==v.constructor)if(k)v=this._set(E);else throw Error(`Cannot animate between ${v.constructor.name} and ${A.name}, as the "to" prop suggests`)}const P=v.constructor;let _=dt(c),F=!1;if(!_){const A=w||!Jl(this)&&h;(p||A)&&(F=Kt(vi(b),E),_=!F),(!Kt(a.immediate,k)&&!k||!Kt(y.decay,S)||!Kt(y.velocity,g))&&(_=!0)}if(F&&dn(this)&&(a.changed&&!w?_=!0:_||this._stop(l)),!m&&((_||dt(l))&&(a.values=v.getPayload(),a.toValues=dt(c)?null:P==gi?[1]:Ie(E)),a.immediate!=k&&(a.immediate=k,!k&&!w&&this._set(l)),_)){const{onRest:A}=a;B(lC,U=>Ap(this,t,U));const I=Et(this,ms(this,l));Cs(this._pendingCalls,I),this._pendingCalls.add(n),a.changed&&H.batchedUpdates(()=>{var U;a.changed=!w,A==null||A(I,this),w?Ue(o.onRest,I):(U=a.onStart)==null||U.call(a,I,this)})}w&&this._set(b),m?n(Cv(t.to,t,this._state,this)):_?this._start():dn(this)&&!p?this._pendingCalls.add(n):n(bv(b))}_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;dt(t)&&(es(t,this),Oc(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;dt(e)&&pi(e,this)}_set(e,t=!0){const n=ze(e);if(!j.und(n)){const r=Dt(this);if(!r||!Kt(n,r.getValue())){const s=Ec(n);!r||r.constructor!=s?Yd(this,s.create(n)):r.setValue(n),r&&H.batchedUpdates(()=>{this._onChange(n,t)})}}return Dt(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gs(this,"onStart",Et(this,ms(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Ue(this.animation.onChange,e,this)),Ue(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Dt(this).reset(ze(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),dn(this)||(Tp(this,!0),ps(this)||this._resume())}_resume(){Nt.skipAnimation?this.finish():el.start(this)}_stop(e,t){if(dn(this)){Tp(this,!1);const n=this.animation;B(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),hi(this,{type:"idle",parent:this});const r=t?Fr(this.get()):Et(this.get(),ms(this,e??n.to));Cs(this._pendingCalls,r),n.changed&&(n.changed=!1,gs(this,"onRest",r,this))}}};function ms(e,t){const n=vi(t),r=vi(e.get());return Kt(r,n)}function Rv(e,t=e.loop,n=e.to){const r=Ue(t);if(r){const s=r!==!0&&Zd(r),i=(s||e).reverse,o=!s||s.reset;return wi({...e,loop:t,default:!1,pause:void 0,to:!i||Rc(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function wi(e){const{to:t,from:n}=e=Zd(e),r=new Set;return j.obj(t)&&Ip(t,r),j.obj(n)&&Ip(n,r),e.keys=r.size?Array.from(r):null,e}function aC(e){const t=wi(e);return j.und(t.default)&&(t.default=ol(t)),t}function Ip(e,t){Vt(e,(n,r)=>n!=null&&t.add(r))}var lC=["onStart","onRest","onChange","onPause","onResume"];function Ap(e,t,n){e.animation[n]=t[n]!==yv(t,n)?vv(t[n],e.key):void 0}function gs(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var uC=["onStart","onChange","onRest"],cC=1,kv=class{constructor(e,t){this.id=cC++,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];j.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(wi(e)),this}start(e){let{queue:t}=this;return e?t=Ie(e).map(wi):this.queue=[],this._flush?this._flush(this,t):(Tv(this,t),Tc(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;B(Ie(t),r=>n[r].stop(!!e))}else yi(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(j.und(e))this.start({pause:!0});else{const t=this.springs;B(Ie(e),n=>t[n].pause())}return this}resume(e){if(j.und(e))this.start({pause:!1});else{const t=this.springs;B(Ie(e),n=>t[n].resume())}return this}each(e){Vt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,Ds(e,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&Ds(t,([a,l])=>{l.value=o,a(l,this,this._item)}),i&&(this._started=!1,Ds(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;H.onFrame(this._onFrame)}};function Tc(e,t){return Promise.all(t.map(n=>Pv(e,n))).then(n=>Jd(e,n))}async function Pv(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:a,onResolve:l}=t,u=j.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const c=j.arr(s)||j.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):B(uC,y=>{const S=t[y];if(j.fun(S)){const g=e._events[y];t[y]=({finished:v,cancelled:w})=>{const b=g.get(S);b?(v||(b.finished=!1),w&&(b.cancelled=!0)):g.set(S,{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,Cs(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)),p=t.cancel===!0||yv(t,"cancel")===!0;(c||p&&d.asyncId)&&h.push(Sv(++e._lastAsyncId,{props:t,state:d,actions:{pause:Sc,resume:Sc,start(y,S){p?(yi(d,e._lastAsyncId),S(Fr(e))):(y.onRest=a,S(Cv(c,y,d,e)))}}})),d.paused&&await new Promise(y=>{d.resumeQueue.add(y)});const m=Jd(e,await Promise.all(h));if(o&&m.finished&&!(n&&m.noop)){const y=Rv(t,o,s);if(y)return Tv(e,[y]),Pv(e,y,!0)}return l&&H.batchedUpdates(()=>l(m,e,e.item)),m}function _c(e,t){const n={...e.springs};return t&&B(Ie(t),r=>{j.und(r.keys)&&(r=wi(r)),j.obj(r.to)||(r={...r,to:void 0}),jv(n,r,s=>Nv(s))}),Ov(e,n),n}function Ov(e,t){Vt(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,es(n,e))})}function Nv(e,t){const n=new oC;return n.key=e,t&&es(n,t),n}function jv(e,t,n){t.keys&&B(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Tv(e,t){B(t,n=>{jv(e.springs,n,r=>Nv(r,e))})}var Li=({children:e,...t})=>{const n=x.useContext(Ca),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=Bb(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=Ca;return x.createElement(i,{value:t},e)},Ca=dC(Li,{});Li.Provider=Ca.Provider;Li.Consumer=Ca.Consumer;function dC(e,t){return Object.assign(e,x.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var _v=()=>{const e=[],t=function(r){zb();const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=n(r,i,o);a&&s.push(i.start(a))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return B(e,r=>r.pause(...arguments)),this},t.resume=function(){return B(e,r=>r.resume(...arguments)),this},t.set=function(r){B(e,(s,i)=>{const o=j.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return B(e,(i,o)=>{if(j.und(r))s.push(i.start());else{const a=this._getProps(r,i,o);a&&s.push(i.start(a))}}),s},t.stop=function(){return B(e,r=>r.stop(...arguments)),this},t.update=function(r){return B(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return j.fun(r)?r(i,s):r};return t._getProps=n,t};function fC(e,t,n){const r=j.fun(t)&&t;r&&!n&&(n=[]);const s=x.useMemo(()=>r||arguments.length==3?_v():void 0,[]),i=x.useRef(0),o=Gd(),a=x.useMemo(()=>({ctrls:[],queue:[],flush(g,v){const w=_c(g,v);return i.current>0&&!a.queue.length&&!Object.keys(w).some(E=>!g.springs[E])?Tc(g,v):new Promise(E=>{Ov(g,w),a.queue.push(()=>{E(Tc(g,v))}),o()})}}),[]),l=x.useRef([...a.ctrls]),u=[],c=Cc(e)||0;x.useMemo(()=>{B(l.current.slice(e,c),g=>{kc(g,s),g.stop(!0)}),l.current.length=e,d(c,e)},[e]),x.useMemo(()=>{d(0,Math.min(c,e))},n);function d(g,v){for(let w=g;w<v;w++){const b=l.current[w]||(l.current[w]=new kv(null,a.flush)),E=r?r(w,b):t[w];E&&(u[w]=aC(E))}}const h=l.current.map((g,v)=>_c(g,u[v])),p=x.useContext(Li),m=Cc(p),y=p!==m&&wv(p);Xn(()=>{i.current++,a.ctrls=l.current;const{queue:g}=a;g.length&&(a.queue=[],B(g,v=>v())),B(l.current,(v,w)=>{s==null||s.add(v),y&&v.start({default:p});const b=u[w];b&&(xv(v,b.ref),v.ref?v.queue.push(b):v.start(b))})}),Xd(()=>()=>{B(a.ctrls,g=>g.stop(!0))});const S=h.map(g=>({...g}));return s?[S,s]:S}function l8(e,t){const n=j.fun(e),[[r],s]=fC(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function tf(e,t,n){const r=j.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:u,ref:c,config:d}=r?r():t,h=x.useMemo(()=>r||arguments.length==3?_v():void 0,[]),p=Ie(e),m=[],y=x.useRef(null),S=s?null:y.current;Xn(()=>{y.current=m}),Xd(()=>(B(m,$=>{h==null||h.add($.ctrl),$.ctrl.ref=h}),()=>{B(y.current,$=>{$.expired&&clearTimeout($.expirationId),kc($.ctrl,h),$.ctrl.stop(!0)})}));const g=pC(p,r?r():t,S),v=s&&y.current||[];Xn(()=>B(v,({ctrl:$,item:C,key:O})=>{kc($,h),Ue(u,C,O)}));const w=[];if(S&&B(S,($,C)=>{$.expired?(clearTimeout($.expirationId),v.push($)):(C=w[C]=g.indexOf($.key),~C&&(m[C]=$))}),B(p,($,C)=>{m[C]||(m[C]={key:g[C],item:$,phase:"mount",ctrl:new kv},m[C].ctrl.item=$)}),w.length){let $=-1;const{leave:C}=r?r():t;B(w,(O,L)=>{const N=S[L];~O?($=m.indexOf(N),m[$]={...N,item:p[O]}):C&&m.splice(++$,0,N)})}j.fun(i)&&m.sort(($,C)=>i($.item,C.item));let b=-o;const E=Gd(),R=ol(t),k=new Map,P=x.useRef(new Map),_=x.useRef(!1);B(m,($,C)=>{const O=$.key,L=$.phase,N=r?r():t;let D,M;const K=Ue(N.delay||0,O);if(L=="mount")D=N.enter,M="enter";else{const xe=g.indexOf(O)<0;if(L!="leave")if(xe)D=N.leave,M="leave";else if(D=N.update)M="update";else return;else if(!xe)D=N.enter,M="enter";else return}if(D=Ue(D,$.item,C),D=j.obj(D)?Zd(D):{to:D},!D.config){const xe=d||R.config;D.config=Ue(xe,$.item,C,M)}b+=o;const G={...R,delay:K+b,ref:c,immediate:N.immediate,reset:!1,...D};if(M=="enter"&&j.und(G.from)){const xe=r?r():t,X=j.und(xe.initial)||S?xe.from:xe.initial;G.from=Ue(X,$.item,C)}const{onResolve:le}=G;G.onResolve=xe=>{Ue(le,xe);const X=y.current,me=X.find(_t=>_t.key===O);if(me&&!(xe.cancelled&&me.phase!="update")&&me.ctrl.idle){const _t=X.every(It=>It.ctrl.idle);if(me.phase=="leave"){const It=Ue(a,me.item);if(It!==!1){const un=It===!0?0:It;if(me.expired=!0,!_t&&un>0){un<=2147483647&&(me.expirationId=setTimeout(E,un));return}}}_t&&X.some(It=>It.expired)&&(P.current.delete(me),l&&(_.current=!0),E())}};const we=_c($.ctrl,G);M==="leave"&&l?P.current.set($,{phase:M,springs:we,payload:G}):k.set($,{phase:M,springs:we,payload:G})});const F=x.useContext(Li),A=Cc(F),I=F!==A&&wv(F);Xn(()=>{I&&B(m,$=>{$.ctrl.start({default:F})})},[F]),B(k,($,C)=>{if(P.current.size){const O=m.findIndex(L=>L.key===C.key);m.splice(O,1)}}),Xn(()=>{B(P.current.size?P.current:k,({phase:$,payload:C},O)=>{const{ctrl:L}=O;O.phase=$,h==null||h.add(L),I&&$=="enter"&&L.start({default:F}),C&&(xv(L,C.ref),(L.ref||h)&&!_.current?L.update(C):(L.start(C),_.current&&(_.current=!1)))})},s?void 0:n);const U=$=>x.createElement(x.Fragment,null,m.map((C,O)=>{const{springs:L}=k.get(C)||C.ctrl,N=$({...L},C.item,C,O);return N&&N.type?x.createElement(N.type,{...N.props,key:j.str(C.key)||j.num(C.key)?C.key:C.ctrl.id,ref:N.ref}):N}));return h?[U,h]:U}var hC=1;function pC(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(a=>a.item===i&&a.phase!=="leave"&&!s.has(a));return o?(s.add(o),o.key):hC++})}return j.und(n)?e:j.fun(n)?e.map(n):Ie(n)}var mC=class extends ef{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=di(...t);const n=this._get(),r=Ec(n);Yd(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Kt(t,n)||(Dt(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Lp(this._active)&&eu(this)}_get(){const e=j.arr(this.source)?this.source.map(ze):Ie(ze(this.source));return this.calc(...e)}_start(){this.idle&&!Lp(this._active)&&(this.idle=!1,B(sl(this),e=>{e.done=!1}),Nt.skipAnimation?(H.batchedUpdates(()=>this.advance()),eu(this)):el.start(this))}_attach(){let e=1;B(Ie(this.source),t=>{dt(t)&&es(t,this),Oc(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){B(Ie(this.source),e=>{dt(e)&&pi(e,this)}),this._active.clear(),eu(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=Ie(this.source).reduce((t,n)=>Math.max(t,(Oc(n)?n.priority:0)+1),0))}};function gC(e){return e.idle!==!1}function Lp(e){return!e.size||Array.from(e).every(gC)}function eu(e){e.idle||(e.idle=!0,B(sl(e),t=>{t.done=!0}),hi(e,{type:"idle",parent:e}))}Nt.assign({createStringInterpolator:hv,to:(e,t)=>new mC(e,t)});var Iv=/^--/;function vC(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!Iv.test(e)&&!(zs.hasOwnProperty(e)&&zs[e])?t+"px":(""+t).trim()}var Mp={};function yC(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:a,...l}=t,u=Object.values(l),c=Object.keys(l).map(d=>n||e.hasAttribute(d)?d:Mp[d]||(Mp[d]=d.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));s!==void 0&&(e.textContent=s);for(const d in r)if(r.hasOwnProperty(d)){const h=vC(d,r[d]);Iv.test(d)?e.style.setProperty(d,h):e.style[d]=h}c.forEach((d,h)=>{e.setAttribute(d,u[h])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),a!==void 0&&e.setAttribute("viewBox",a)}var zs={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},wC=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),xC=["Webkit","Ms","Moz","O"];zs=Object.keys(zs).reduce((e,t)=>(xC.forEach(n=>e[wC(n,t)]=e[t]),e),zs);var SC=/^(matrix|translate|scale|rotate|skew)/,bC=/^(translate)/,CC=/^(rotate|skew)/,tu=(e,t)=>j.num(e)&&e!==0?e+t:e,_o=(e,t)=>j.arr(e)?e.every(n=>_o(n,t)):j.num(e)?e===t:parseFloat(e)===t,EC=class extends il{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(a=>tu(a,"px")).join(",")})`,_o(o,0)])),Vt(r,(o,a)=>{if(a==="transform")s.push([o||""]),i.push(l=>[l,l===""]);else if(SC.test(a)){if(delete r[a],j.und(o))return;const l=bC.test(a)?"px":CC.test(a)?"deg":"";s.push(Ie(o)),i.push(a==="rotate3d"?([u,c,d,h])=>[`rotate3d(${u},${c},${d},${tu(h,l)})`,_o(h,0)]:u=>[`${a}(${u.map(c=>tu(c,l)).join(",")})`,_o(u,a.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new RC(s,i)),super(r)}},RC=class extends cv{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 B(this.inputs,(n,r)=>{const s=ze(n[0]),[i,o]=this.transforms[r](j.arr(s)?s:n.map(ze));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&B(this.inputs,t=>B(t,n=>dt(n)&&es(n,this)))}observerRemoved(e){e==0&&B(this.inputs,t=>B(t,n=>dt(n)&&pi(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),hi(this,e)}},kC=["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"];Nt.assign({batchedUpdates:Pi.unstable_batchedUpdates,createStringInterpolator:hv,colors:vb});var PC=Xb(kC,{applyAnimatedValues:yC,createAnimatedStyle:e=>new EC(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Ea=PC.animated;const nf=x.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});nf.displayName="ModalContext";const Av=()=>{const e=x.useContext(nf);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Lv=e=>{const{ariaDescriptionId:t}=Av(),{children:n,className:r}=e,s=V("modal-body",r);return f.jsx("div",{id:t,className:s,children:n})};Lv.displayName="Modal.Body";const OC=Lv,Mv=e=>f.jsx("div",{className:"modal-footer",children:e.children});Mv.displayName="Modal.Footer";const NC=Mv,Dv=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=Av(),i=x.useRef(null);return x.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),f.jsxs("div",{className:"modal-header",children:[f.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),f.jsx(Ka,{ref:i,"aria-label":"Close",color:"tertiary",icon:f.jsx(J4,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};Dv.displayName="Modal.Header";const jC=Dv,Fv=e=>f.jsx("p",{className:"modal-subtitle",children:e.children});Fv.displayName="Modal.Subtitle";const TC=Fv,$v=x.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:a=!1,focusId:l,children:u}=e,c=`aria_label_${n}`,d=`aria_desc_${n}`,h=t0(s),p=U4();$4(s,["Escape"]),x.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",l)){const v=document.getElementById(l);v==null||v.focus()}return()=>{document.body.style.overflow=""}},[l,r]);const m=V("modal fade",{"show d-block":r,"modal-scrollable":a,viewport:o,[`modal-${i}`]:i}),y=V("modal-dialog"),S={ariaLabelId:c,ariaDescriptionId:d,focusId:l},g=tf(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return f.jsx(nf.Provider,{value:S,children:g((v,w)=>f.jsxs(f.Fragment,{children:[w&&f.jsx(Ea.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":d,className:m,style:v,tabIndex:-1,children:f.jsx("div",{id:`${n}_ref`,ref:b=>{h.current=b,w&&(p.current=b)},className:y,children:f.jsx("div",{className:"modal-content",children:u})})}),w&&f.jsx(Ea.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),_C=Object.assign($v,{Header:jC,Subtitle:TC,Body:OC,Footer:NC});$v.displayName="Modal";const bn=_C,IC=({children:e,className:t})=>{const n=V("popover-body",t);return f.jsx("div",{className:n,children:e})},AC=({children:e,className:t})=>{const n=V("popover-footer p-8",t);return f.jsx("div",{className:n,children:e})},rf=x.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=V("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return tf(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((l,u)=>u&&f.jsx(Ea.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:l,...s,children:e}))});rf.displayName="Popover";function LC(e,t,n,r,s,i,o,a,l){const u=S=>{S.preventDefault(),s==null||s(e),S.stopPropagation()},c=S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),s==null||s(e),S.stopPropagation())},d=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:S=>{S.preventDefault(),d(),S.stopPropagation()},handleItemFoldUnfoldKeyDown:S=>{(S.code==="Enter"||S.code==="Space")&&(S.preventDefault(),d(),S.stopPropagation())},handleItemFocus:S=>{S.preventDefault(),a==null||a(e)},handleItemBlur:S=>{S.preventDefault(),l==null||l(e)}}}const zv=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:a,onItemUnfold:l,onItemFocus:u,onItemBlur:c,selectedNodesIds:d}=e,[h,p]=x.useState(!1),{handleItemClick:m,handleItemKeyDown:y,handleItemFoldUnfoldClick:S,handleItemFoldUnfoldKeyDown:g,handleItemFocus:v,handleItemBlur:w}=LC(t,n,h,p,o,a,l,u,c);x.useEffect(()=>{if(d!=null&&d.length&&(d==null?void 0:d.length)>=1){const R=d[d.length-1];d.some(k=>k===t&&t!==R?(p(!0),k===t):(p(!1),!1))}else p(!1)},[t,d]);const b=s?16:12,E=()=>f.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"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:S,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!h&&f.jsx(tp,{title:"RafterRight",width:b,height:b}),Array.isArray(r)&&h&&f.jsx(gc,{title:"RafterDown",width:b,height:b}),!Array.isArray(r)&&f.jsx(tp,{title:"RafterRight",width:b,height:b,"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:m,onKeyDown:y,onFocus:v,onBlur:w,children:[s&&f.jsx(c3,{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 s?f.jsx("ul",{role:"tree",className:"m-0 p-0",children:E()}):E()};zv.displayName="TreeItem";const MC=zv,Uv=x.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:a,selectedNodesIds:l}=e,[u,c]=x.useState("default");x.useEffect(()=>{l!=null&&l.length&&(l==null?void 0:l.length)>=1?c(l[l.length-1]):c("")},[l]);const d=g=>{c(g),r==null||r(g)},h=g=>{s==null||s(g)},p=g=>{i==null||i(g)},m=g=>{o==null||o(g)},y=g=>{a==null||a(g)},S=g=>f.jsx(MC,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:l,selected:u===g.id,onItemSelect:d,onItemFold:h,onItemUnfold:p,onItemFocus:m,onItemBlur:y,children:Array.isArray(g.children)?g.children.map(v=>S(v)):null},g.id);return f.jsx("div",{ref:t,id:"treeview",className:"treeview",children:S(n)})});Uv.displayName="TreeView";const DC=Uv,Bv=x.forwardRef(({children:e},t)=>f.jsx("span",{className:"visually-hidden",ref:t,children:e}));Bv.displayName="VisuallyHidden";const Es=Bv,FC=()=>{const e=Ls("fr.openent.zimbra.controllers.ZimbraController|view"),t=Ls("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=x.useState(0),[s,i]=x.useState(""),o=x.useCallback(async()=>{if(e)try{const l=await Y.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 Y.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(l.count)}catch{console.error("error"),r(0)}},[e]),a=x.useCallback(()=>{let l="";Y.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"}}),i(l)},[t]);return x.useEffect(()=>{(async()=>{try{await o()}catch(l){console.error(l)}})(),a()},[a,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},$C=FC;function nu({children:e}){return f.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function ru({children:e,className:t,...n}){const r=V("navbar",t);return f.jsx("nav",{className:r,...n,children:e})}function Dp({children:e,className:t,...n}){const r=V("navbar-nav",t);return f.jsx("ul",{className:r,...n,children:e})}const ce=x.forwardRef(({children:e,className:t,...n},r)=>{const s=V("nav-item",t);return f.jsx("li",{ref:r,className:s,...n,children:e})});ce.displayName="NavItem";function vs({link:e,className:t,children:n,translate:r,...s}){const i=V("nav-link",t);return f.jsxs("a",{href:e,className:i,...s,children:[n,r&&f.jsx(Es,{children:f.jsx("span",{className:"nav-text",children:r})})]})}const zC=()=>{const{t:e}=pe();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")})})})},UC=({bookmarkedApps:e})=>{const{t}=pe();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(vc,{app:n,size:"32"})},r))]})};var sf={},of={};(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})(of);var q={},zn=_e&&_e.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},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)}}(),Us=_e&&_e.__assign||function(){return Us=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Us.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 Ke=of,af=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),lf(this,t)},e}();q.Node=af;var al=function(e){zn(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}(af);q.DataNode=al;var Vv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(al);q.Text=Vv;var Hv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(al);q.Comment=Hv;var qv=function(e){zn(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=Ke.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(al);q.ProcessingInstruction=qv;var ll=function(e){zn(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}(af);q.NodeWithChildren=ll;var Qv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(ll);q.CDATA=Qv;var Wv=function(e){zn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Ke.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(ll);q.Document=Wv;var Kv=function(e){zn(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?Ke.ElementType.Script:n==="style"?Ke.ElementType.Style:Ke.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,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 s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(ll);q.Element=Kv;function Gv(e){return(0,Ke.isTag)(e)}q.isTag=Gv;function Xv(e){return e.type===Ke.ElementType.CDATA}q.isCDATA=Xv;function Yv(e){return e.type===Ke.ElementType.Text}q.isText=Yv;function Zv(e){return e.type===Ke.ElementType.Comment}q.isComment=Zv;function Jv(e){return e.type===Ke.ElementType.Directive}q.isDirective=Jv;function ey(e){return e.type===Ke.ElementType.Root}q.isDocument=ey;function BC(e){return Object.prototype.hasOwnProperty.call(e,"children")}q.hasChildren=BC;function lf(e,t){t===void 0&&(t=!1);var n;if(Yv(e))n=new Vv(e.data);else if(Zv(e))n=new Hv(e.data);else if(Gv(e)){var r=t?su(e.children):[],s=new Kv(e.name,Us({},e.attribs),r);r.forEach(function(l){return l.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=Us({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=Us({},e["x-attribsPrefix"])),n=s}else if(Xv(e)){var r=t?su(e.children):[],i=new Qv(r);r.forEach(function(u){return u.parent=i}),n=i}else if(ey(e)){var r=t?su(e.children):[],o=new Wv(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(Jv(e)){var a=new qv(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=lf;function su(e){for(var t=e.map(function(r){return lf(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=_e&&_e.__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=_e&&_e.__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=of,s=q;n(q,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function a(l,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof l=="object"&&(u=l,l=void 0),this.callback=l??null,this.options=u??i,this.elementCB=c??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new s.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 s.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 s.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 s.Comment(l);this.addNode(u),this.lastNode=u},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new s.Text(""),u=new s.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 s.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})(sf);var Fp="html",$p="head",uo="body",VC=/<([a-zA-Z]+[0-9]?)/,zp=/<head[^]*>/i,Up=/<body[^]*>/i,Ra=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},Ic=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},Bp=typeof window=="object"&&window.DOMParser;if(typeof Bp=="function"){var HC=new Bp,qC="text/html";Ic=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),HC.parseFromString(e,qC)},Ra=Ic}if(typeof document=="object"&&document.implementation){var co=document.implementation.createHTMLDocument();Ra=function(e,t){if(t){var n=co.documentElement.querySelector(t);return n.innerHTML=e,co}return co.documentElement.innerHTML=e,co}}var iu=typeof document=="object"?document.createElement("template"):{},Ac;iu.content&&(Ac=function(e){return iu.innerHTML=e,iu.content.childNodes});function QC(e){var t,n=e.match(VC);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case Fp:return r=Ic(e),zp.test(e)||(s=r.querySelector($p),s&&s.parentNode.removeChild(s)),Up.test(e)||(s=r.querySelector(uo),s&&s.parentNode.removeChild(s)),r.querySelectorAll(Fp);case $p:case uo:return r=Ra(e),i=r.querySelectorAll(t),Up.test(e)&&zp.test(e)?i[0].parentNode.childNodes:i;default:return Ac?Ac(e):(s=Ra(e,uo).querySelector(uo),s.childNodes)}}var WC=QC,uf={},ty={};ty.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 ul=sf,KC=ty,Vp=KC.CASE_SENSITIVE_TAG_NAMES,GC=ul.Comment,XC=ul.Element,YC=ul.ProcessingInstruction,ZC=ul.Text,ny={},ou;for(var au=0,JC=Vp.length;au<JC;au++)ou=Vp[au],ny[ou.toLowerCase()]=ou;function eE(e){return ny[e]}function ry(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function tE(e){e=e.toLowerCase();var t=eE(e);return t||e}function sy(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var a=e[i],l;switch(a.nodeType){case 1:s=tE(a.nodeName),l=new XC(s,ry(a.attributes)),l.children=sy(s==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new ZC(a.nodeValue);break;case 8:l=new GC(a.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=l),l.parent=t,l.prev=u,l.next=null,r.push(l)}return n&&(l=new YC(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}uf.formatAttributes=ry;uf.formatDOM=sy;var nE=WC,rE=uf,sE=rE.formatDOM,iE=/<(![a-zA-Z\s]+)>/;function oE(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(iE),n;return t&&t[1]&&(n=t[1]),sE(nE(e),null,n)}var aE=oE,wt={},cl={},lE=0;cl.SAME=lE;var uE=1;cl.CAMELCASE=uE;cl.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(wt,"__esModule",{value:!0});function cE(e,t){return dE(e)||fE(e,t)||hE(e,t)||pE()}function dE(e){if(Array.isArray(e))return e}function fE(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function hE(e,t){if(e){if(typeof e=="string")return Hp(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 Hp(e,t)}}function Hp(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 pE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
226
|
-
|
|
227
|
-
`,Wp="/",Kp="*",qn="",_E="comment",IE="declaration",AE=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 s(m){var y=m.match(EE);y&&(n+=y.length);var S=m.lastIndexOf(TE);r=~S?m.length-S:r+m.length}function i(){var m={line:n,column:r};return function(y){return y.position=new o(m),u(),y}}function o(m){this.start=m,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function a(m){var y=new Error(t.source+":"+n+":"+r+": "+m);if(y.reason=m,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(m){var y=m.exec(e);if(y){var S=y[0];return s(S),e=e.slice(S.length),y}}function u(){l(RE)}function c(m){var y;for(m=m||[];y=d();)y!==!1&&m.push(y);return m}function d(){var m=i();if(!(Wp!=e.charAt(0)||Kp!=e.charAt(1))){for(var y=2;qn!=e.charAt(y)&&(Kp!=e.charAt(y)||Wp!=e.charAt(y+1));)++y;if(y+=2,qn===e.charAt(y-1))return a("End of comment missing");var S=e.slice(2,y-2);return r+=2,s(S),e=e.slice(y),r+=2,m({type:_E,comment:S})}}function h(){var m=i(),y=l(kE);if(y){if(d(),!l(PE))return a("property missing ':'");var S=l(OE),g=m({type:IE,property:Gp(y[0].replace(Qp,qn)),value:S?Gp(S[0].replace(Qp,qn)):qn});return l(NE),g}}function p(){var m=[];c(m);for(var y;y=h();)y!==!1&&(m.push(y),c(m));return m}return u(),p()};function Gp(e){return e?e.replace(jE,qn):qn}var LE=AE;function uy(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=LE(e),i=typeof t=="function",o,a,l=0,u=s.length;l<u;l++)r=s[l],o=r.property,a=r.value,i?t(o,a,r):a&&(n||(n={}),n[o]=a);return n}pf.exports=uy;pf.exports.default=uy;var ME=pf.exports,hl={};hl.__esModule=!0;hl.camelCase=void 0;var DE=/^--[a-zA-Z0-9-]+$/,FE=/-([a-z])/g,$E=/^[^-]+$/,zE=/^-(webkit|moz|ms|o|khtml)-/,UE=/^-(ms)-/,BE=function(e){return!e||$E.test(e)||DE.test(e)},VE=function(e,t){return t.toUpperCase()},Xp=function(e,t){return"".concat(t,"-")},HE=function(e,t){return t===void 0&&(t={}),BE(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(UE,Xp):e=e.replace(zE,Xp),e.replace(FE,VE))};hl.camelCase=HE;(function(e){var t=_e&&_e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(ME),r=hl;function s(i,o){var a={};return!i||typeof i!="string"||(0,n.default)(i,function(l,u){l&&u&&(a[(0,r.camelCase)(l,o)]=u)}),a}e.default=s})(ly);var qE=x,QE=ly.default;function WE(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function KE(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 GE={reactCompat:!0};function XE(e,t){if(e!=null)try{t.style=QE(e,GE)}catch{t.style={}}}var YE=qE.version.split(".")[0]>=16,cy=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function ZE(e){return!cy.has(e.name)}var dy={PRESERVE_CUSTOM_ATTRIBUTES:YE,invertObject:WE,isCustomComponent:KE,setStyleProp:XE,canTextBeChildOfNode:ZE,elementsWithNoTextChildren:cy},Rs=wt,Yp=dy,JE=["checked","value"],eR=["input","select","textarea"],tR={reset:!0,submit:!0},fy=function(t,n){t=t||{};var r,s,i,o,a,l={},u=t.type&&tR[t.type];for(r in t){if(i=t[r],Rs.isCustomAttribute(r)){l[r]=i;continue}if(s=r.toLowerCase(),o=Zp(s),o){switch(a=Rs.getPropertyInfo(o),JE.indexOf(o)!==-1&&eR.indexOf(n)!==-1&&!u&&(o=Zp("default"+s)),l[o]=i,a&&a.type){case Rs.BOOLEAN:l[o]=!0;break;case Rs.OVERLOADED_BOOLEAN:i===""&&(l[o]=!0);break}continue}Yp.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=i)}return Yp.setStyleProp(t.style,l),l};function Zp(e){return Rs.possibleStandardNames[e]}var nR=x,rR=fy,ka=dy,sR=ka.setStyleProp,iR=ka.canTextBeChildOfNode;function hy(e,t){t=t||{};for(var n=t.library||nR,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],a,l,u=typeof t.replace=="function",c,d,h,p=t.trim,m=0,y=e.length;m<y;m++){if(a=e[m],u&&(c=t.replace(a),i(c))){y>1&&(c=r(c,{key:c.key||m})),o.push(c);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!iR(a.parent)||p&&l)continue;o.push(a.data);continue}switch(d=a.attribs,oR(a)?sR(d.style,d):d&&(d=rR(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=hy(a.children,t));break;default:continue}y>1&&(d.key=m),o.push(s(a.name,d,h))}return o.length===1?o[0]:o}function oR(e){return ka.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&ka.isCustomComponent(e.name,e.attribs)}var aR=hy,pl=sf,Nr=aE,lR=fy,py=aR;Nr=typeof Nr.default=="function"?Nr.default:Nr;var uR={lowerCaseAttributeNames:!1};function Ht(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},py(Nr(e,t.htmlparser2||uR),t))}Ht.domToReact=py;Ht.htmlToDOM=Nr;Ht.attributesToProps=lR;Ht.Comment=pl.Comment;Ht.Element=pl.Element;Ht.ProcessingInstruction=pl.ProcessingInstruction;Ht.Text=pl.Text;var cR=Ht;Ht.default=Ht;const Bn=Pa(cR);var fo=Bn.domToReact;Bn.htmlToDOM;var lu=Bn.attributesToProps;Bn.Comment;Bn.Element;Bn.ProcessingInstruction;Bn.Text;function dR(){var y;const{appCode:e}=yt(),{theme:t}=Ad(),[n,r]=x.useState(""),[s,i]=x.useState(!0),[o,a]=x.useState(!1),[l,u]=x.useState(!1),c=t!=null&&t.is1d?"/help-1d":"/help-2d";x.useEffect(()=>{(async()=>{let S="";S=c+"/application/"+e+"/",!e&&window.location.pathname!=="/adapter"?S=c+"/application/portal/":window.location.pathname==="/adapter"?S=c+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?S=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"))&&(S=c+"/application/userbook/");try{const g=await fetch(S),v=await g.text();if(g.status===404){u(!0);return}r(v),u(!1)}catch(g){u(!0),console.error(g)}})()},[e,c]);const h=Bn(n,{replace:S=>{const g=S;if(g.attribs&&g.attribs.id==="TOC")return f.jsxs("nav",{id:"TOC",children:[f.jsx(Jr,{onClick:()=>{i(!s)},children:f.jsx(Y4,{})}),fo(g.children,{replace:v=>{const w=v;if(w.attribs&&w.name==="ul")return f.jsx("ul",{id:"TOC-list",style:{display:s?"block":"none"},children:fo(w.children,{replace:b=>{const E=b;if(E.attribs&&E.name==="a")return f.jsx("a",{...lu(E.attribs),children:f.jsx("span",{onClick:()=>{i(!1)},children:fo(E.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const v=lu(S.attribs);return f.jsx("div",{...v,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:fo(g.children,{replace:w=>{const b=w;if(b.attribs&&b.name==="img"){const E=w.attribs.src;return f.jsx("img",{...lu(b.attribs),src:`${c}/${E}`,alt:""})}}})})}}}),p=(y=h==null?void 0:h.props)==null?void 0:y.children.find(S=>S.type==="body").props.children,m=p==null?void 0:p.find(S=>S.type==="p").props.children;return{html:n,visibility:s,isModalOpen:o,setIsModalOpen:a,parsedContent:p,parsedHeadline:m,error:l}}const my=()=>{const[e,t]=Zg(),n=x.useRef(null),r=x.useId(),{t:s}=pe();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return f.jsxs(ce,{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(e5,{className:"icon search"}),f.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),f.jsx(rf,{id:r,isVisible:t,className:"d-none d-md-flex",children:f.jsxs(yc,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[f.jsx(yc.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),f.jsx(b0,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};my.displayName="SearchEngine";const fR=my;function Jp({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=pe(),o=()=>{t(!1)};return e?Pi.createPortal(f.jsxs(bn,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[f.jsx(bn.Header,{onModalClose:o,children:i("navbar.help")}),f.jsx(bn.Subtitle,{children:s?i("help.notfound.title"):n}),f.jsx(bn.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}const gy=({is1d:e=!1,src:t=""})=>{const{t:n}=pe(),{messages:r,msgLink:s,zimbraWorkflow:i}=$C(),{user:o,avatar:a}=Ld(),{isModalOpen:l,setIsModalOpen:u,parsedContent:c,parsedHeadline:d,error:h}=dR(),p=V("header",{"no-2d":e,"no-1d":!e}),{title:m,bookmarkedApps:y,appsRef:S,isAppsHovered:g,popoverAppsId:v,userAvatar:w,userName:b,welcomeUser:E,communityWorkflow:R,conversationWorflow:k,searchWorkflow:P,isCollapsed:_,toggleCollapsedNav:F,handleLogout:A}=qS({user:o,avatar:a}),I=r>0;return f.jsx("header",{className:p,children:e?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"container-fluid",children:f.jsxs(ru,{children:[f.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:m}),f.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[f.jsx(np,{alt:b,size:"sm",src:w,variant:"circle",width:"32",height:"32"}),f.jsx("span",{className:"navbar-text",children:E})]}),f.jsxs(Dp,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[k&&f.jsx(ce,{children:f.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[f.jsx(X3,{className:"icon notification"}),I&&f.jsx(nu,{children:r}),f.jsx(Es,{children:n("navbar.messages")})]})}),f.jsx(ce,{children:f.jsx(vs,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:f.jsx(Z3,{className:"icon user"})})}),f.jsxs(ce,{children:[f.jsxs("button",{className:"nav-link",onClick:()=>{u(!0)},children:[f.jsx(K3,{className:"icon help"}),f.jsx(Es,{children:n("navbar.help")})]}),f.jsx(Jp,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ce,{children:f.jsxs("button",{className:"nav-link",onClick:A,children:[f.jsx(sp,{className:"icon logout"}),f.jsx(Es,{children:n("navbar.disconnect")})]})}),f.jsx(ce,{className:"d-md-none",children:f.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!_,"aria-label":n("navbar.secondary.navigation"),onClick:F,children:f.jsx(gc,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),f.jsx(ru,{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 ${_?"":"show"}`,id:"navbarCollapsed",children:[f.jsx(pp,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),f.jsxs(Dp,{className:"gap-8",children:[f.jsx(ce,{children:f.jsxs("a",{href:"/timeline/timeline",className:"button",children:[f.jsx(Q3,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),f.jsx(ce,{children:f.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[f.jsx(n5,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),f.jsx(ce,{children:f.jsxs("a",{href:"/welcome",className:"button",children:[f.jsx(ip,{color:"#fff",className:"d-md-none"}),f.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):f.jsx(ru,{className:"navbar-expand-md",children:f.jsxs("div",{className:"container-fluid",children:[f.jsx(pp,{src:`${t}/img/illustrations/logo.png`}),f.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:m}),f.jsxs("ul",{className:"navbar-nav",children:[f.jsx(ce,{children:f.jsx(vs,{link:"/timeline/timeline",translate:n("navbar.home"),children:f.jsx(z3,{color:"#fff"})})}),f.jsxs(ce,{className:"position-relative",ref:S,id:v,"aria-haspopup":"true","aria-expanded":g,children:[f.jsx(vs,{link:"/welcome",translate:n("navbar.applications"),children:f.jsx(ip,{color:"#fff"})}),f.jsxs(rf,{className:"top-100 widget",id:v,isVisible:g,children:[f.jsx(IC,{children:f.jsx(UC,{bookmarkedApps:y})}),f.jsx(AC,{className:"widget-footer border-top border-ghost",children:f.jsx(zC,{})})]})]}),k&&f.jsx(ce,{children:f.jsxs(vs,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),I&&f.jsx(nu,{children:r})]})}),i&&f.jsx(ce,{children:f.jsxs(vs,{className:"position-relative",link:s,translate:n("conversation"),children:[f.jsx(op,{color:"#fff"}),I&&f.jsx(nu,{children:r})]})}),f.jsxs(ce,{children:[f.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{u(!0)},children:[f.jsx(V3,{color:"#fff"}),f.jsx(Es,{children:n("support")})]}),f.jsx(Jp,{isHelpOpen:l,setIsHelpOpen:u,parsedContent:c,parsedHeadline:d,error:h})]}),f.jsx(ce,{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":!_,"aria-label":n("navbar.open.menu"),onClick:F,children:f.jsx(gc,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),f.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${_?"":"show"}`,id:"dropdown-navbar",children:[R&&f.jsx(ce,{children:f.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[f.jsx(D3,{className:"icon community"}),f.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),P?f.jsx(fR,{}):null,f.jsx(ce,{children:f.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[f.jsx(np,{alt:b,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(ce,{children:f.jsx("hr",{className:"dropdown-divider"})}),f.jsx(ce,{children:f.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[f.jsx(sp,{className:"icon logout"}),f.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};gy.displayName="Header";const hR=gy;function vy({children:e,className:t,...n}){const r=V("container-fluid",t);return f.jsx("main",{className:r,...n,children:e})}vy.displayName="Main";const yy=({children:e,...t})=>{const{theme:n}=Ad();return f.jsxs(f.Fragment,{children:[f.jsx(hR,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),f.jsx(vy,{className:V("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(D4,{toastOptions:{position:"top-right"}})]})};yy.displayName="Layout";const pR=yy,mR=function(){return null};var wy,em=Pi;wy=em.createRoot,em.hydrateRoot;const Lt=document.querySelector("[data-ode-app]");let ys;function ml(){var e;if(ys)return ys;if(ys={app:ho.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=Lt==null?void 0:Lt.dataset)!=null&&e.odeApp){const{odeApp:t}=Lt.dataset;try{const n=JSON.parse(t);Object.assign(ys,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",Lt==null?void 0:Lt.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",Lt==null?void 0:Lt.dataset);return ys}const tm=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))}},s=()=>t,a={setState:r,getState:s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{n.clear()}};return t=e(r,s,a),a},gR=e=>e?tm(e):tm;var xy={exports:{}},Sy={};/**
|
|
225
|
+
`,za=16,MP=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:s,containerStyle:i,containerClassName:o})=>{let{toasts:l,handlers:a}=uP(n);return S.createElement("div",{style:{position:"fixed",zIndex:9999,top:za,left:za,right:za,bottom:za,pointerEvents:"none",...i},className:o,onMouseEnter:a.startPause,onMouseLeave:a.endPause},l.map(u=>{let c=u.position||t,f=a.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),p=IP(c,f);return S.createElement(AP,{id:u.id,key:u.id,onHeightUpdate:a.updateHeight,className:u.visible?_P:"",style:p},u.type==="custom"?du(u.message,u):s?s(u):S.createElement(NP,{toast:u,position:c}))}))},Ii=Pt,LP=Object.defineProperty,DP=(e,t)=>{for(var n in t)LP(e,n,{get:t[n],enumerable:!0})},pn={};DP(pn,{assign:()=>zP,colors:()=>Er,createStringInterpolator:()=>bh,skipAnimation:()=>lx,to:()=>ax,willAdvance:()=>Sh});var mh=ua(),te=e=>la(e,mh),gh=ua();te.write=e=>la(e,gh);var Xu=ua();te.onStart=e=>la(e,Xu);var vh=ua();te.onFrame=e=>la(e,vh);var yh=ua();te.onFinish=e=>la(e,yh);var Gs=[];te.setTimeout=(e,t)=>{const n=te.now()+t,r=()=>{const i=Gs.findIndex(o=>o.cancel==r);~i&&Gs.splice(i,1),fr-=~i?1:0},s={time:n,handler:e,cancel:r};return Gs.splice(nx(n),0,s),fr+=1,rx(),s};var nx=e=>~(~Gs.findIndex(t=>t.time>e)||~Gs.length);te.cancel=e=>{Xu.delete(e),vh.delete(e),yh.delete(e),mh.delete(e),gh.delete(e)};te.sync=e=>{$f=!0,te.batchedUpdates(e),$f=!1};te.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...s){t=s,te.onStart(n)}return r.handler=e,r.cancel=()=>{Xu.delete(n),t=null},r};var wh=typeof window<"u"?window.requestAnimationFrame:()=>{};te.use=e=>wh=e;te.now=typeof performance<"u"?()=>performance.now():Date.now;te.batchedUpdates=e=>e();te.catch=console.error;te.frameLoop="always";te.advance=()=>{te.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ix()};var dr=-1,fr=0,$f=!1;function la(e,t){$f?(t.delete(e),e(0)):(t.add(e),rx())}function rx(){dr<0&&(dr=0,te.frameLoop!=="demand"&&wh(sx))}function FP(){dr=-1}function sx(){~dr&&(wh(sx),te.batchedUpdates(ix))}function ix(){const e=dr;dr=te.now();const t=nx(dr);if(t&&(ox(Gs.splice(0,t),n=>n.handler()),fr-=t),!fr){FP();return}Xu.flush(),mh.flush(e?Math.min(64,dr-e):16.667),vh.flush(),gh.flush(),yh.flush()}function ua(){let e=new Set,t=e;return{add(n){fr+=t==e&&!e.has(n)?1:0,e.add(n)},delete(n){return fr-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,fr-=t.size,ox(t,r=>r(n)&&e.add(r)),fr+=e.size,t=e)}}}function ox(e,t){e.forEach(n=>{try{t(n)}catch(r){te.catch(r)}})}function zf(){}var $P=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),V={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 Dn(e,t){if(V.arr(e)){if(!V.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 ee=(e,t)=>e.forEach(t);function jn(e,t,n){if(V.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 nt=e=>V.und(e)?[]:V.arr(e)?e:[e];function so(e,t){if(e.size){const n=Array.from(e);e.clear(),ee(n,t)}}var qi=(e,...t)=>so(e,n=>n(...t)),xh=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),bh,ax,Er=null,lx=!1,Sh=zf,zP=e=>{e.to&&(ax=e.to),e.now&&(te.now=e.now),e.colors!==void 0&&(Er=e.colors),e.skipAnimation!=null&&(lx=e.skipAnimation),e.createStringInterpolator&&(bh=e.createStringInterpolator),e.requestAnimationFrame&&te.use(e.requestAnimationFrame),e.batchedUpdates&&(te.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Sh=e.willAdvance),e.frameLoop&&(te.frameLoop=e.frameLoop)},io=new Set,Ht=[],ud=[],fu=0,Yu={get idle(){return!io.size&&!Ht.length},start(e){fu>e.priority?(io.add(e),te.onStart(BP)):(ux(e),te(Bf))},advance:Bf,sort(e){if(fu)te.onFrame(()=>Yu.sort(e));else{const t=Ht.indexOf(e);~t&&(Ht.splice(t,1),cx(e))}},clear(){Ht=[],io.clear()}};function BP(){io.forEach(ux),io.clear(),te(Bf)}function ux(e){Ht.includes(e)||cx(e)}function cx(e){Ht.splice(VP(Ht,t=>t.priority>e.priority),0,e)}function Bf(e){const t=ud;for(let n=0;n<Ht.length;n++){const r=Ht[n];fu=r.priority,r.idle||(Sh(r),r.advance(e),r.idle||t.push(r))}return fu=0,ud=Ht,ud.length=0,Ht=t,Ht.length>0}function VP(e,t){const n=e.findIndex(t);return n<0?e.length:n}var UP=(e,t,n)=>Math.min(Math.max(n,e),t),HP={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},un="[-+]?\\d*\\.?\\d+",pu=un+"%";function Ju(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var qP=new RegExp("rgb"+Ju(un,un,un)),WP=new RegExp("rgba"+Ju(un,un,un,un)),QP=new RegExp("hsl"+Ju(un,pu,pu)),GP=new RegExp("hsla"+Ju(un,pu,pu,un)),KP=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,XP=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,YP=/^#([0-9a-fA-F]{6})$/,JP=/^#([0-9a-fA-F]{8})$/;function ZP(e){let t;return typeof e=="number"?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=YP.exec(e))?parseInt(t[1]+"ff",16)>>>0:Er&&Er[e]!==void 0?Er[e]:(t=qP.exec(e))?(Es(t[1])<<24|Es(t[2])<<16|Es(t[3])<<8|255)>>>0:(t=WP.exec(e))?(Es(t[1])<<24|Es(t[2])<<16|Es(t[3])<<8|vv(t[4]))>>>0:(t=KP.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=JP.exec(e))?parseInt(t[1],16)>>>0:(t=XP.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=QP.exec(e))?(mv(gv(t[1]),Ba(t[2]),Ba(t[3]))|255)>>>0:(t=GP.exec(e))?(mv(gv(t[1]),Ba(t[2]),Ba(t[3]))|vv(t[4]))>>>0:null}function cd(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 mv(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r,i=cd(s,r,e+1/3),o=cd(s,r,e),l=cd(s,r,e-1/3);return Math.round(i*255)<<24|Math.round(o*255)<<16|Math.round(l*255)<<8}function Es(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function gv(e){return(parseFloat(e)%360+360)%360/360}function vv(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function Ba(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function yv(e){let t=ZP(e);if(t===null)return e;t=t||0;const n=(t&4278190080)>>>24,r=(t&16711680)>>>16,s=(t&65280)>>>8,i=(t&255)/255;return`rgba(${n}, ${r}, ${s}, ${i})`}var Do=(e,t,n)=>{if(V.fun(e))return e;if(V.arr(e))return Do({range:e,output:t,extrapolate:n});if(V.str(e.output[0]))return bh(e);const r=e,s=r.output,i=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",a=r.easing||(u=>u);return u=>{const c=tj(u,i);return ej(u,i[c],i[c+1],s[c],s[c+1],a,o,l,r.map)}};function ej(e,t,n,r,s,i,o,l,a){let u=a?a(e):e;if(u<t){if(o==="identity")return u;o==="clamp"&&(u=t)}if(u>n){if(l==="identity")return u;l==="clamp"&&(u=n)}return r===s?r:t===n?e<=t?r:s:(t===-1/0?u=-u:n===1/0?u=u-t:u=(u-t)/(n-t),u=i(u),r===-1/0?u=-u:s===1/0?u=u+r:u=u*(s-r)+r,u)}function tj(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var nj=(e,t="end")=>n=>{n=t==="end"?Math.min(n,.999):Math.max(n,.001);const r=n*e,s=t==="end"?Math.floor(r):Math.ceil(r);return UP(0,1,s/e)},hu=1.70158,Va=hu*1.525,wv=hu+1,xv=2*Math.PI/3,bv=2*Math.PI/4.5,Ua=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,rj={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=>wv*e*e*e-hu*e*e,easeOutBack:e=>1+wv*Math.pow(e-1,3)+hu*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*((Va+1)*2*e-Va)/2:(Math.pow(2*e-2,2)*((Va+1)*(e*2-2)+Va)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-Math.pow(2,10*e-10)*Math.sin((e*10-10.75)*xv),easeOutElastic:e=>e===0?0:e===1?1:Math.pow(2,-10*e)*Math.sin((e*10-.75)*xv)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*bv))/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*bv)/2+1,easeInBounce:e=>1-Ua(1-e),easeOutBounce:Ua,easeInOutBounce:e=>e<.5?(1-Ua(1-2*e))/2:(1+Ua(2*e-1))/2,steps:nj},Fo=Symbol.for("FluidValue.get"),ai=Symbol.for("FluidValue.observers"),Ut=e=>!!(e&&e[Fo]),dt=e=>e&&e[Fo]?e[Fo]():e,Sv=e=>e[ai]||null;function sj(e,t){e.eventObserved?e.eventObserved(t):e(t)}function $o(e,t){const n=e[ai];n&&n.forEach(r=>{sj(r,t)})}var dx=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");ij(this,e)}},ij=(e,t)=>fx(e,Fo,t);function gi(e,t){if(e[Fo]){let n=e[ai];n||fx(e,ai,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function zo(e,t){const n=e[ai];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ai]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var fx=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),gl=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,oj=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Cv=new RegExp(`(${gl.source})(%|[a-z]+)`,"i"),aj=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Zu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,px=e=>{const[t,n]=lj(e);if(!t||xh())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const s=window.getComputedStyle(document.documentElement).getPropertyValue(n);return s||e}else{if(n&&Zu.test(n))return px(n);if(n)return n}return e},lj=e=>{const t=Zu.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},dd,uj=(e,t,n,r,s)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${s})`,hx=e=>{dd||(dd=Er?new RegExp(`(${Object.keys(Er).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map(i=>dt(i).replace(Zu,px).replace(oj,yv).replace(dd,yv)),n=t.map(i=>i.match(gl).map(Number)),s=n[0].map((i,o)=>n.map(l=>{if(!(o in l))throw Error('The arity of each "output" value must be equal');return l[o]})).map(i=>Do({...e,output:i}));return i=>{var a;const o=!Cv.test(t[0])&&((a=t.find(u=>Cv.test(u)))==null?void 0:a.replace(gl,""));let l=0;return t[0].replace(gl,()=>`${s[l++](i)}${o||""}`).replace(aj,uj)}},Ch="react-spring: ",mx=e=>{const t=e;let n=!1;if(typeof t!="function")throw new TypeError(`${Ch}once requires a function parameter`);return(...r)=>{n||(t(...r),n=!0)}},cj=mx(console.warn);function dj(){cj(`${Ch}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var fj=mx(console.warn);function pj(){fj(`${Ch}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 ec(e){return V.str(e)&&(e[0]=="#"||/\d/.test(e)||!xh()&&Zu.test(e)||e in(Er||{}))}var Xr=xh()?S.useEffect:S.useLayoutEffect,hj=()=>{const e=S.useRef(!1);return Xr(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function Eh(){const e=S.useState()[1],t=hj();return()=>{t.current&&e(Math.random())}}function mj(e,t){const[n]=S.useState(()=>({inputs:t,result:e()})),r=S.useRef(),s=r.current;let i=s;return i?t&&i.inputs&&gj(t,i.inputs)||(i={inputs:t,result:e()}):i=n,S.useEffect(()=>{r.current=i,s==n&&(n.inputs=n.result=void 0)},[i]),i.result}function gj(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 Th=e=>S.useEffect(e,vj),vj=[];function Vf(e){const t=S.useRef();return S.useEffect(()=>{t.current=e}),t.current}var Bo=Symbol.for("Animated:node"),yj=e=>!!e&&e[Bo]===e,yn=e=>e&&e[Bo],kh=(e,t)=>$P(e,Bo,t),tc=e=>e&&e[Bo]&&e[Bo].getPayload(),gx=class{constructor(){kh(this,this)}getPayload(){return this.payload||[]}},ca=class extends gx{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,V.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new ca(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return V.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,V.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Vo=class extends ca{constructor(e){super(0),this._string=null,this._toString=Do({output:[e,e]})}static create(e){return new Vo(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(V.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=Do({output:[this.getValue(),e]})),this._value=0,super.reset()}},mu={dependencies:null},nc=class extends gx{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return jn(this.source,(n,r)=>{yj(n)?t[r]=n.getValue(e):Ut(n)?t[r]=dt(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ee(this.payload,e=>e.reset())}_makePayload(e){if(e){const t=new Set;return jn(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){mu.dependencies&&Ut(e)&&mu.dependencies.add(e);const t=tc(e);t&&ee(t,n=>this.add(n))}},vx=class extends nc{constructor(e){super(e)}static create(e){return new vx(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(wj)),!0)}};function wj(e){return(ec(e)?Vo:ca).create(e)}function Uf(e){const t=yn(e);return t?t.constructor:V.arr(e)?vx:ec(e)?Vo:ca}var Ev=(e,t)=>{const n=!V.fun(e)||e.prototype&&e.prototype.isReactComponent;return S.forwardRef((r,s)=>{const i=S.useRef(null),o=n&&S.useCallback(v=>{i.current=Sj(s,v)},[s]),[l,a]=bj(r,t),u=Eh(),c=()=>{const v=i.current;if(n&&!v)return;(v?t.applyAnimatedValues(v,l.getValue(!0)):!1)===!1&&u()},f=new xj(c,a),p=S.useRef();Xr(()=>(p.current=f,ee(a,v=>gi(v,f)),()=>{p.current&&(ee(p.current.deps,v=>zo(v,p.current)),te.cancel(p.current.update))})),S.useEffect(c,[]),Th(()=>()=>{const v=p.current;ee(v.deps,w=>zo(w,v))});const h=t.getComponentProps(l.getValue());return S.createElement(e,{...h,ref:o})})},xj=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type=="change"&&te.write(this.update)}};function bj(e,t){const n=new Set;return mu.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new nc(e),mu.dependencies=null,[e,n]}function Sj(e,t){return e&&(V.fun(e)?e(t):e.current=t),t}var Tv=Symbol.for("AnimatedComponent"),Cj=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=s=>new nc(s),getComponentProps:r=s=>s}={})=>{const s={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=o=>{const l=kv(o)||"Anonymous";return V.str(o)?o=i[o]||(i[o]=Ev(o,s)):o=o[Tv]||(o[Tv]=Ev(o,s)),o.displayName=`Animated(${l})`,o};return jn(e,(o,l)=>{V.arr(e)&&(l=kv(o)),i[l]=i(o)}),{animated:i}},kv=e=>V.str(e)?e:e&&V.str(e.displayName)?e.displayName:V.fun(e)&&e.name||null;function ft(e,...t){return V.fun(e)?e(...t):e}var oo=(e,t)=>e===!0||!!(t&&e&&(V.fun(e)?e(t):nt(e).includes(t))),yx=(e,t)=>V.obj(e)?t&&e[t]:e,wx=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,Ej=e=>e,rc=(e,t=Ej)=>{let n=Tj;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));const r={};for(const s of n){const i=t(e[s],s);V.und(i)||(r[s]=i)}return r},Tj=["config","onProps","onStart","onChange","onPause","onResume","onRest"],kj={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 Pj(e){const t={};let n=0;if(jn(e,(r,s)=>{kj[s]||(t[s]=r,n++)}),n)return t}function Ph(e){const t=Pj(e);if(t){const n={to:t};return jn(e,(r,s)=>s in t||(n[s]=r)),n}return{...e}}function Uo(e){return e=dt(e),V.arr(e)?e.map(Uo):ec(e)?pn.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function xx(e){for(const t in e)return!0;return!1}function Hf(e){return V.fun(e)||V.arr(e)&&V.obj(e[0])}function qf(e,t){var n;(n=e.ref)==null||n.delete(e),t==null||t.delete(e)}function bx(e,t){var n;t&&e.ref!==t&&((n=e.ref)==null||n.delete(e),t.add(e),e.ref=t)}var jj={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}},Wf={...jj.default,mass:1,damping:1,easing:rj.linear,clamp:!1},Oj=class{constructor(){this.velocity=0,Object.assign(this,Wf)}};function Rj(e,t,n){n&&(n={...n},Pv(n,t),t={...n,...t}),Pv(e,t),Object.assign(e,t);for(const o in Wf)e[o]==null&&(e[o]=Wf[o]);let{frequency:r,damping:s}=e;const{mass:i}=e;return V.und(r)||(r<.01&&(r=.01),s<0&&(s=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*s*i/r),e}function Pv(e,t){if(!V.und(t.decay))e.duration=void 0;else{const n=!V.und(t.tension)||!V.und(t.friction);(n||!V.und(t.frequency)||!V.und(t.damping)||!V.und(t.mass))&&(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var jv=[],Nj=class{constructor(){this.changed=!1,this.values=jv,this.toValues=null,this.fromValues=jv,this.config=new Oj,this.immediate=!1}};function Sx(e,{key:t,props:n,defaultProps:r,state:s,actions:i}){return new Promise((o,l)=>{let a,u,c=oo(n.cancel??(r==null?void 0:r.cancel),t);if(c)h();else{V.und(n.pause)||(s.paused=oo(n.pause,t));let v=r==null?void 0:r.pause;v!==!0&&(v=s.paused||oo(v,t)),a=ft(n.delay||0,t),v?(s.resumeQueue.add(p),i.pause()):(i.resume(),p())}function f(){s.resumeQueue.add(p),s.timeouts.delete(u),u.cancel(),a=u.time-te.now()}function p(){a>0&&!pn.skipAnimation?(s.delayed=!0,u=te.setTimeout(h,a),s.pauseQueue.add(f),s.timeouts.add(u)):h()}function h(){s.delayed&&(s.delayed=!1),s.pauseQueue.delete(f),s.timeouts.delete(u),e<=(s.cancelId||0)&&(c=!0);try{i.start({...n,callId:e,cancel:c},o)}catch(v){l(v)}}})}var jh=(e,t)=>t.length==1?t[0]:t.some(n=>n.cancelled)?Ks(e.get()):t.every(n=>n.noop)?Cx(e.get()):an(e.get(),t.every(n=>n.finished)),Cx=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),an=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Ks=e=>({value:e,cancelled:!0,finished:!1});function Ex(e,t,n,r){const{callId:s,parentId:i,onRest:o}=t,{asyncTo:l,promise:a}=n;return!i&&e===l&&!t.reset?a:n.promise=(async()=>{n.asyncId=s,n.asyncTo=e;const u=rc(t,(b,g)=>g==="onRest"?void 0:b);let c,f;const p=new Promise((b,g)=>(c=b,f=g)),h=b=>{const g=s<=(n.cancelId||0)&&Ks(r)||s!==n.asyncId&&an(r,!1);if(g)throw b.result=g,f(b),b},v=(b,g)=>{const m=new Ov,y=new Rv;return(async()=>{if(pn.skipAnimation)throw Ho(n),y.result=an(r,!1),f(y),y;h(m);const x=V.obj(b)?{...b}:{...g,to:b};x.parentId=s,jn(u,(T,E)=>{V.und(x[E])&&(x[E]=T)});const C=await r.start(x);return h(m),n.paused&&await new Promise(T=>{n.resumeQueue.add(T)}),C})()};let w;if(pn.skipAnimation)return Ho(n),an(r,!1);try{let b;V.arr(e)?b=(async g=>{for(const m of g)await v(m)})(e):b=Promise.resolve(e(v,r.stop.bind(r))),await Promise.all([b.then(c),p]),w=an(r.get(),!0,!1)}catch(b){if(b instanceof Ov)w=b.result;else if(b instanceof Rv)w=b.result;else throw b}finally{s==n.asyncId&&(n.asyncId=i,n.asyncTo=i?l:void 0,n.promise=i?a:void 0)}return V.fun(o)&&te.batchedUpdates(()=>{o(w,r,r.item)}),w})()}function Ho(e,t){so(e.timeouts,n=>n.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Ov=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.")}},Rv=class extends Error{constructor(){super("SkipAnimationSignal")}},Qf=e=>e instanceof Oh,Aj=1,Oh=class extends dx{constructor(){super(...arguments),this.id=Aj++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=yn(this);return e&&e.getValue()}to(...e){return pn.to(this,e)}interpolate(...e){return dj(),pn.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){$o(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Yu.sort(this),$o(this,{type:"priority",parent:this,priority:e})}},ls=Symbol.for("SpringPhase"),Tx=1,Gf=2,Kf=4,fd=e=>(e[ls]&Tx)>0,tr=e=>(e[ls]&Gf)>0,_i=e=>(e[ls]&Kf)>0,Nv=(e,t)=>t?e[ls]|=Gf|Tx:e[ls]&=~Gf,Av=(e,t)=>t?e[ls]|=Kf:e[ls]&=~Kf,Ij=class extends Oh{constructor(e,t){if(super(),this.animation=new Nj,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,!V.und(e)||!V.und(t)){const n=V.obj(e)?{...e}:{...t,from:e};V.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(tr(this)||this._state.asyncTo)||_i(this)}get goal(){return dt(this.animation.to)}get velocity(){const e=yn(this);return e instanceof ca?e.lastVelocity||0:e.getPayload().map(t=>t.lastVelocity||0)}get hasAnimated(){return fd(this)}get isAnimating(){return tr(this)}get isPaused(){return _i(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:s}=r;const{config:i}=r,o=tc(r.to);!o&&Ut(r.to)&&(s=nt(dt(r.to))),r.values.forEach((u,c)=>{if(u.done)return;const f=u.constructor==Vo?1:o?o[c].lastPosition:s[c];let p=r.immediate,h=f;if(!p){if(h=u.lastPosition,i.tension<=0){u.done=!0;return}let v=u.elapsedTime+=e;const w=r.fromValues[c],b=u.v0!=null?u.v0:u.v0=V.arr(i.velocity)?i.velocity[c]:i.velocity;let g;const m=i.precision||(w==f?.005:Math.min(1,Math.abs(f-w)*.001));if(V.und(i.duration))if(i.decay){const y=i.decay===!0?.998:i.decay,x=Math.exp(-(1-y)*v);h=w+b/(1-y)*(1-x),p=Math.abs(u.lastPosition-h)<=m,g=b*x}else{g=u.lastVelocity==null?b:u.lastVelocity;const y=i.restVelocity||m/10,x=i.clamp?0:i.bounce,C=!V.und(x),T=w==f?u.v0>0:w<f;let E,j=!1;const P=1,M=Math.ceil(e/P);for(let N=0;N<M&&(E=Math.abs(g)>y,!(!E&&(p=Math.abs(f-h)<=m,p)));++N){C&&(j=h==f||h>f==T,j&&(g=-g*x,h=f));const R=-i.tension*1e-6*(h-f),I=-i.friction*.001*g,L=(R+I)/i.mass;g=g+L*P,h=h+g*P}}else{let y=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,u.durationProgress>0&&(u.elapsedTime=i.duration*u.durationProgress,v=u.elapsedTime+=e)),y=(i.progress||0)+v/this._memoizedDuration,y=y>1?1:y<0?0:y,u.durationProgress=y),h=w+i.easing(y)*(f-w),g=(h-u.lastPosition)/e,p=y==1}u.lastVelocity=g,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),p=!0)}o&&!o[c].done&&(p=!1),p?u.done=!0:t=!1,u.setValue(h,i.round)&&(n=!0)});const l=yn(this),a=l.getValue();if(t){const u=dt(r.to);(a!==u||n)&&!i.decay?(l.setValue(u),this._onChange(u)):n&&i.decay&&this._onChange(a),this._stop()}else n&&this._onChange(a)}set(e){return te.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tr(this)){const{to:e,config:t}=this.animation;te.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 V.und(e)?(n=this.queue||[],this.queue=[]):n=[V.obj(e)?e:{...t,to:e}],Promise.all(n.map(r=>this._update(r))).then(r=>jh(this,r))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Ho(this._state,e&&this._lastCallId),te.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=V.obj(n)?n[t]:n,(n==null||Hf(n))&&(n=void 0),r=V.obj(r)?r[t]:r,r==null&&(r=void 0);const s={to:n,from:r};return fd(this)||(e.reverse&&([n,r]=[r,n]),r=dt(r),V.und(r)?yn(this)||this._set(n):this._set(r)),s}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,rc(e,(o,l)=>/^on/.test(l)?yx(o,n):o)),_v(this,e,"onProps"),Li(this,"onProps",e,this);const s=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 i=this._state;return Sx(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{_i(this)||(Av(this,!0),qi(i.pauseQueue),Li(this,"onPause",an(this,Mi(this,this.animation.to)),this))},resume:()=>{_i(this)&&(Av(this,!1),tr(this)&&this._resume(),qi(i.resumeQueue),Li(this,"onResume",an(this,Mi(this,this.animation.to)),this))},start:this._merge.bind(this,s)}}).then(o=>{if(e.loop&&o.finished&&!(t&&o.noop)){const l=kx(e);if(l)return this._update(l,!0)}return o})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Ks(this));const r=!V.und(e.to),s=!V.und(e.from);if(r||s)if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(Ks(this));const{key:i,defaultProps:o,animation:l}=this,{to:a,from:u}=l;let{to:c=a,from:f=u}=e;s&&!r&&(!t.default||V.und(c))&&(c=f),t.reverse&&([c,f]=[f,c]);const p=!Dn(f,u);p&&(l.from=f),f=dt(f);const h=!Dn(c,a);h&&this._focus(c);const v=Hf(t.to),{config:w}=l,{decay:b,velocity:g}=w;(r||s)&&(w.velocity=0),t.config&&!v&&Rj(w,ft(t.config,i),t.config!==o.config?ft(o.config,i):void 0);let m=yn(this);if(!m||V.und(c))return n(an(this,!0));const y=V.und(t.reset)?s&&!t.default:!V.und(f)&&oo(t.reset,i),x=y?f:this.get(),C=Uo(c),T=V.num(C)||V.arr(C)||ec(C),E=!v&&(!T||oo(o.immediate||t.immediate,i));if(h){const N=Uf(c);if(N!==m.constructor)if(E)m=this._set(C);else throw Error(`Cannot animate between ${m.constructor.name} and ${N.name}, as the "to" prop suggests`)}const j=m.constructor;let P=Ut(c),M=!1;if(!P){const N=y||!fd(this)&&p;(h||N)&&(M=Dn(Uo(x),C),P=!M),(!Dn(l.immediate,E)&&!E||!Dn(w.decay,b)||!Dn(w.velocity,g))&&(P=!0)}if(M&&tr(this)&&(l.changed&&!y?P=!0:P||this._stop(a)),!v&&((P||Ut(a))&&(l.values=m.getPayload(),l.toValues=Ut(c)?null:j==Vo?[1]:nt(C)),l.immediate!=E&&(l.immediate=E,!E&&!y&&this._set(a)),P)){const{onRest:N}=l;ee(Mj,I=>_v(this,t,I));const R=an(this,Mi(this,a));qi(this._pendingCalls,R),this._pendingCalls.add(n),l.changed&&te.batchedUpdates(()=>{var I;l.changed=!y,N==null||N(R,this),y?ft(o.onRest,R):(I=l.onStart)==null||I.call(l,R,this)})}y&&this._set(x),v?n(Ex(t.to,t,this._state,this)):P?this._start():tr(this)&&!h?this._pendingCalls.add(n):n(Cx(x))}_focus(e){const t=this.animation;e!==t.to&&(Sv(this)&&this._detach(),t.to=e,Sv(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ut(t)&&(gi(t,this),Qf(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ut(e)&&zo(e,this)}_set(e,t=!0){const n=dt(e);if(!V.und(n)){const r=yn(this);if(!r||!Dn(n,r.getValue())){const s=Uf(n);!r||r.constructor!=s?kh(this,s.create(n)):r.setValue(n),r&&te.batchedUpdates(()=>{this._onChange(n,t)})}}return yn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Li(this,"onStart",an(this,Mi(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ft(this.animation.onChange,e,this)),ft(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;yn(this).reset(dt(e.to)),e.immediate||(e.fromValues=e.values.map(t=>t.lastPosition)),tr(this)||(Nv(this,!0),_i(this)||this._resume())}_resume(){pn.skipAnimation?this.finish():Yu.start(this)}_stop(e,t){if(tr(this)){Nv(this,!1);const n=this.animation;ee(n.values,s=>{s.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),$o(this,{type:"idle",parent:this});const r=t?Ks(this.get()):an(this.get(),Mi(this,e??n.to));qi(this._pendingCalls,r),n.changed&&(n.changed=!1,Li(this,"onRest",r,this))}}};function Mi(e,t){const n=Uo(t),r=Uo(e.get());return Dn(r,n)}function kx(e,t=e.loop,n=e.to){const r=ft(t);if(r){const s=r!==!0&&Ph(r),i=(s||e).reverse,o=!s||s.reset;return qo({...e,loop:t,default:!1,pause:void 0,to:!i||Hf(n)?n:void 0,from:o?e.from:void 0,reset:o,...s})}}function qo(e){const{to:t,from:n}=e=Ph(e),r=new Set;return V.obj(t)&&Iv(t,r),V.obj(n)&&Iv(n,r),e.keys=r.size?Array.from(r):null,e}function _j(e){const t=qo(e);return V.und(t.default)&&(t.default=rc(t)),t}function Iv(e,t){jn(e,(n,r)=>n!=null&&t.add(r))}var Mj=["onStart","onRest","onChange","onPause","onResume"];function _v(e,t,n){e.animation[n]=t[n]!==wx(t,n)?yx(t[n],e.key):void 0}function Li(e,t,...n){var r,s,i,o;(s=(r=e.animation)[t])==null||s.call(r,...n),(o=(i=e.defaultProps)[t])==null||o.call(i,...n)}var Lj=["onStart","onChange","onRest"],Dj=1,Px=class{constructor(e,t){this.id=Dj++,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];V.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(qo(e)),this}start(e){let{queue:t}=this;return e?t=nt(e).map(qo):this.queue=[],this._flush?this._flush(this,t):(Ax(this,t),Xf(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;ee(nt(t),r=>n[r].stop(!!e))}else Ho(this._state,this._lastAsyncId),this.each(n=>n.stop(!!e));return this}pause(e){if(V.und(e))this.start({pause:!0});else{const t=this.springs;ee(nt(e),n=>t[n].pause())}return this}resume(e){if(V.und(e))this.start({pause:!1});else{const t=this.springs;ee(nt(e),n=>t[n].resume())}return this}each(e){jn(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,s=this._changed.size>0;(r&&!this._started||s&&!this._started)&&(this._started=!0,so(e,([l,a])=>{a.value=this.get(),l(a,this,this._item)}));const i=!r&&this._started,o=s||i&&n.size?this.get():null;s&&t.size&&so(t,([l,a])=>{a.value=o,l(a,this,this._item)}),i&&(this._started=!1,so(n,([l,a])=>{a.value=o,l(a,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;te.onFrame(this._onFrame)}};function Xf(e,t){return Promise.all(t.map(n=>jx(e,n))).then(n=>jh(e,n))}async function jx(e,t,n){const{keys:r,to:s,from:i,loop:o,onRest:l,onResolve:a}=t,u=V.obj(t.default)&&t.default;o&&(t.loop=!1),s===!1&&(t.to=null),i===!1&&(t.from=null);const c=V.arr(s)||V.fun(s)?s:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):ee(Lj,w=>{const b=t[w];if(V.fun(b)){const g=e._events[w];t[w]=({finished:m,cancelled:y})=>{const x=g.get(b);x?(m||(x.finished=!1),y&&(x.cancelled=!0)):g.set(b,{value:null,finished:m||!1,cancelled:y||!1})},u&&(u[w]=t[w])}});const f=e._state;t.pause===!f.paused?(f.paused=t.pause,qi(t.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(t.pause=!0);const p=(r||Object.keys(e.springs)).map(w=>e.springs[w].start(t)),h=t.cancel===!0||wx(t,"cancel")===!0;(c||h&&f.asyncId)&&p.push(Sx(++e._lastAsyncId,{props:t,state:f,actions:{pause:zf,resume:zf,start(w,b){h?(Ho(f,e._lastAsyncId),b(Ks(e))):(w.onRest=l,b(Ex(c,w,f,e)))}}})),f.paused&&await new Promise(w=>{f.resumeQueue.add(w)});const v=jh(e,await Promise.all(p));if(o&&v.finished&&!(n&&v.noop)){const w=kx(t,o,s);if(w)return Ax(e,[w]),jx(e,w,!0)}return a&&te.batchedUpdates(()=>a(v,e,e.item)),v}function Yf(e,t){const n={...e.springs};return t&&ee(nt(t),r=>{V.und(r.keys)&&(r=qo(r)),V.obj(r.to)||(r={...r,to:void 0}),Nx(n,r,s=>Rx(s))}),Ox(e,n),n}function Ox(e,t){jn(t,(n,r)=>{e.springs[r]||(e.springs[r]=n,gi(n,e))})}function Rx(e,t){const n=new Ij;return n.key=e,t&&gi(n,t),n}function Nx(e,t,n){t.keys&&ee(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function Ax(e,t){ee(t,n=>{Nx(e.springs,n,r=>Rx(r,e))})}var da=({children:e,...t})=>{const n=S.useContext(gu),r=t.pause||!!n.pause,s=t.immediate||!!n.immediate;t=mj(()=>({pause:r,immediate:s}),[r,s]);const{Provider:i}=gu;return S.createElement(i,{value:t},e)},gu=Fj(da,{});da.Provider=gu.Provider;da.Consumer=gu.Consumer;function Fj(e,t){return Object.assign(e,S.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}var Ix=()=>{const e=[],t=function(r){pj();const s=[];return ee(e,(i,o)=>{if(V.und(r))s.push(i.start());else{const l=n(r,i,o);l&&s.push(i.start(l))}}),s};t.current=e,t.add=function(r){e.includes(r)||e.push(r)},t.delete=function(r){const s=e.indexOf(r);~s&&e.splice(s,1)},t.pause=function(){return ee(e,r=>r.pause(...arguments)),this},t.resume=function(){return ee(e,r=>r.resume(...arguments)),this},t.set=function(r){ee(e,(s,i)=>{const o=V.fun(r)?r(i,s):r;o&&s.set(o)})},t.start=function(r){const s=[];return ee(e,(i,o)=>{if(V.und(r))s.push(i.start());else{const l=this._getProps(r,i,o);l&&s.push(i.start(l))}}),s},t.stop=function(){return ee(e,r=>r.stop(...arguments)),this},t.update=function(r){return ee(e,(s,i)=>s.update(this._getProps(r,s,i))),this};const n=function(r,s,i){return V.fun(r)?r(i,s):r};return t._getProps=n,t};function $j(e,t,n){const r=V.fun(t)&&t;r&&!n&&(n=[]);const s=S.useMemo(()=>r||arguments.length==3?Ix():void 0,[]),i=S.useRef(0),o=Eh(),l=S.useMemo(()=>({ctrls:[],queue:[],flush(g,m){const y=Yf(g,m);return i.current>0&&!l.queue.length&&!Object.keys(y).some(C=>!g.springs[C])?Xf(g,m):new Promise(C=>{Ox(g,y),l.queue.push(()=>{C(Xf(g,m))}),o()})}}),[]),a=S.useRef([...l.ctrls]),u=[],c=Vf(e)||0;S.useMemo(()=>{ee(a.current.slice(e,c),g=>{qf(g,s),g.stop(!0)}),a.current.length=e,f(c,e)},[e]),S.useMemo(()=>{f(0,Math.min(c,e))},n);function f(g,m){for(let y=g;y<m;y++){const x=a.current[y]||(a.current[y]=new Px(null,l.flush)),C=r?r(y,x):t[y];C&&(u[y]=_j(C))}}const p=a.current.map((g,m)=>Yf(g,u[m])),h=S.useContext(da),v=Vf(h),w=h!==v&&xx(h);Xr(()=>{i.current++,l.ctrls=a.current;const{queue:g}=l;g.length&&(l.queue=[],ee(g,m=>m())),ee(a.current,(m,y)=>{s==null||s.add(m),w&&m.start({default:h});const x=u[y];x&&(bx(m,x.ref),m.ref?m.queue.push(x):m.start(x))})}),Th(()=>()=>{ee(l.ctrls,g=>g.stop(!0))});const b=p.map(g=>({...g}));return s?[b,s]:b}function n6(e,t){const n=V.fun(e),[[r],s]=$j(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,s]:r}function Rh(e,t,n){const r=V.fun(t)&&t,{reset:s,sort:i,trail:o=0,expires:l=!0,exitBeforeEnter:a=!1,onDestroyed:u,ref:c,config:f}=r?r():t,p=S.useMemo(()=>r||arguments.length==3?Ix():void 0,[]),h=nt(e),v=[],w=S.useRef(null),b=s?null:w.current;Xr(()=>{w.current=v}),Th(()=>(ee(v,L=>{p==null||p.add(L.ctrl),L.ctrl.ref=p}),()=>{ee(w.current,L=>{L.expired&&clearTimeout(L.expirationId),qf(L.ctrl,p),L.ctrl.stop(!0)})}));const g=Bj(h,r?r():t,b),m=s&&w.current||[];Xr(()=>ee(m,({ctrl:L,item:k,key:A})=>{qf(L,p),ft(u,k,A)}));const y=[];if(b&&ee(b,(L,k)=>{L.expired?(clearTimeout(L.expirationId),m.push(L)):(k=y[k]=g.indexOf(L.key),~k&&(v[k]=L))}),ee(h,(L,k)=>{v[k]||(v[k]={key:g[k],item:L,phase:"mount",ctrl:new Px},v[k].ctrl.item=L)}),y.length){let L=-1;const{leave:k}=r?r():t;ee(y,(A,$)=>{const _=b[$];~A?(L=v.indexOf(_),v[L]={..._,item:h[A]}):k&&v.splice(++L,0,_)})}V.fun(i)&&v.sort((L,k)=>i(L.item,k.item));let x=-o;const C=Eh(),T=rc(t),E=new Map,j=S.useRef(new Map),P=S.useRef(!1);ee(v,(L,k)=>{const A=L.key,$=L.phase,_=r?r():t;let F,B;const J=ft(_.delay||0,A);if($=="mount")F=_.enter,B="enter";else{const ue=g.indexOf(A)<0;if($!="leave")if(ue)F=_.leave,B="leave";else if(F=_.update)B="update";else return;else if(!ue)F=_.enter,B="enter";else return}if(F=ft(F,L.item,k),F=V.obj(F)?Ph(F):{to:F},!F.config){const ue=f||T.config;F.config=ft(ue,L.item,k,B)}x+=o;const Z={...T,delay:J+x,ref:c,immediate:_.immediate,reset:!1,...F};if(B=="enter"&&V.und(Z.from)){const ue=r?r():t,fe=V.und(ue.initial)||b?ue.from:ue.initial;Z.from=ft(fe,L.item,k)}const{onResolve:le}=Z;Z.onResolve=ue=>{ft(le,ue);const fe=w.current,we=fe.find(je=>je.key===A);if(we&&!(ue.cancelled&&we.phase!="update")&&we.ctrl.idle){const je=fe.every(ut=>ut.ctrl.idle);if(we.phase=="leave"){const ut=ft(l,we.item);if(ut!==!1){const An=ut===!0?0:ut;if(we.expired=!0,!je&&An>0){An<=2147483647&&(we.expirationId=setTimeout(C,An));return}}}je&&fe.some(ut=>ut.expired)&&(j.current.delete(we),a&&(P.current=!0),C())}};const ne=Yf(L.ctrl,Z);B==="leave"&&a?j.current.set(L,{phase:B,springs:ne,payload:Z}):E.set(L,{phase:B,springs:ne,payload:Z})});const M=S.useContext(da),N=Vf(M),R=M!==N&&xx(M);Xr(()=>{R&&ee(v,L=>{L.ctrl.start({default:M})})},[M]),ee(E,(L,k)=>{if(j.current.size){const A=v.findIndex($=>$.key===k.key);v.splice(A,1)}}),Xr(()=>{ee(j.current.size?j.current:E,({phase:L,payload:k},A)=>{const{ctrl:$}=A;A.phase=L,p==null||p.add($),R&&L=="enter"&&$.start({default:M}),k&&(bx($,k.ref),($.ref||p)&&!P.current?$.update(k):($.start(k),P.current&&(P.current=!1)))})},s?void 0:n);const I=L=>S.createElement(S.Fragment,null,v.map((k,A)=>{const{springs:$}=E.get(k)||k.ctrl,_=L({...$},k.item,k,A);return _&&_.type?S.createElement(_.type,{..._.props,key:V.str(k.key)||V.num(k.key)?k.key:k.ctrl.id,ref:_.ref}):_}));return p?[I,p]:I}var zj=1;function Bj(e,{key:t,keys:n=t},r){if(n===null){const s=new Set;return e.map(i=>{const o=r&&r.find(l=>l.item===i&&l.phase!=="leave"&&!s.has(l));return o?(s.add(o),o.key):zj++})}return V.und(n)?e:V.fun(n)?e.map(n):nt(n)}var Vj=class extends Oh{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Do(...t);const n=this._get(),r=Uf(n);kh(this,r.create(n))}advance(e){const t=this._get(),n=this.get();Dn(t,n)||(yn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Mv(this._active)&&pd(this)}_get(){const e=V.arr(this.source)?this.source.map(dt):nt(dt(this.source));return this.calc(...e)}_start(){this.idle&&!Mv(this._active)&&(this.idle=!1,ee(tc(this),e=>{e.done=!1}),pn.skipAnimation?(te.batchedUpdates(()=>this.advance()),pd(this)):Yu.start(this))}_attach(){let e=1;ee(nt(this.source),t=>{Ut(t)&&gi(t,this),Qf(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){ee(nt(this.source),e=>{Ut(e)&&zo(e,this)}),this._active.clear(),pd(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=nt(this.source).reduce((t,n)=>Math.max(t,(Qf(n)?n.priority:0)+1),0))}};function Uj(e){return e.idle!==!1}function Mv(e){return!e.size||Array.from(e).every(Uj)}function pd(e){e.idle||(e.idle=!0,ee(tc(e),t=>{t.done=!0}),$o(e,{type:"idle",parent:e}))}pn.assign({createStringInterpolator:hx,to:(e,t)=>new Vj(e,t)});var _x=/^--/;function Hj(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!_x.test(e)&&!(ao.hasOwnProperty(e)&&ao[e])?t+"px":(""+t).trim()}var Lv={};function qj(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n=e.nodeName==="filter"||e.parentNode&&e.parentNode.nodeName==="filter",{style:r,children:s,scrollTop:i,scrollLeft:o,viewBox:l,...a}=t,u=Object.values(a),c=Object.keys(a).map(f=>n||e.hasAttribute(f)?f:Lv[f]||(Lv[f]=f.replace(/([A-Z])/g,p=>"-"+p.toLowerCase())));s!==void 0&&(e.textContent=s);for(const f in r)if(r.hasOwnProperty(f)){const p=Hj(f,r[f]);_x.test(f)?e.style.setProperty(f,p):e.style[f]=p}c.forEach((f,p)=>{e.setAttribute(f,u[p])}),i!==void 0&&(e.scrollTop=i),o!==void 0&&(e.scrollLeft=o),l!==void 0&&e.setAttribute("viewBox",l)}var ao={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},Wj=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),Qj=["Webkit","Ms","Moz","O"];ao=Object.keys(ao).reduce((e,t)=>(Qj.forEach(n=>e[Wj(n,t)]=e[t]),e),ao);var Gj=/^(matrix|translate|scale|rotate|skew)/,Kj=/^(translate)/,Xj=/^(rotate|skew)/,hd=(e,t)=>V.num(e)&&e!==0?e+t:e,vl=(e,t)=>V.arr(e)?e.every(n=>vl(n,t)):V.num(e)?e===t:parseFloat(e)===t,Yj=class extends nc{constructor({x:e,y:t,z:n,...r}){const s=[],i=[];(e||t||n)&&(s.push([e||0,t||0,n||0]),i.push(o=>[`translate3d(${o.map(l=>hd(l,"px")).join(",")})`,vl(o,0)])),jn(r,(o,l)=>{if(l==="transform")s.push([o||""]),i.push(a=>[a,a===""]);else if(Gj.test(l)){if(delete r[l],V.und(o))return;const a=Kj.test(l)?"px":Xj.test(l)?"deg":"";s.push(nt(o)),i.push(l==="rotate3d"?([u,c,f,p])=>[`rotate3d(${u},${c},${f},${hd(p,a)})`,vl(p,0)]:u=>[`${l}(${u.map(c=>hd(c,a)).join(",")})`,vl(u,l.startsWith("scale")?1:0)])}}),s.length&&(r.transform=new Jj(s,i)),super(r)}},Jj=class extends dx{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 ee(this.inputs,(n,r)=>{const s=dt(n[0]),[i,o]=this.transforms[r](V.arr(s)?s:n.map(dt));e+=" "+i,t=t&&o}),t?"none":e}observerAdded(e){e==1&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&gi(n,this)))}observerRemoved(e){e==0&&ee(this.inputs,t=>ee(t,n=>Ut(n)&&zo(n,this)))}eventObserved(e){e.type=="change"&&(this._value=null),$o(this,e)}},Zj=["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"];pn.assign({batchedUpdates:Nn.unstable_batchedUpdates,createStringInterpolator:hx,colors:HP});var e5=Cj(Zj,{applyAnimatedValues:qj,createAnimatedStyle:e=>new Yj(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),vu=e5.animated,Dv=function(t){return t.reduce(function(n,r){var s=r[0],i=r[1];return n[s]=i,n},{})},Fv=typeof window<"u"&&window.document&&window.document.createElement?S.useLayoutEffect:S.useEffect,yt="top",Jt="bottom",Zt="right",wt="left",Nh="auto",fa=[yt,Jt,Zt,wt],li="start",Wo="end",t5="clippingParents",Mx="viewport",Di="popper",n5="reference",$v=fa.reduce(function(e,t){return e.concat([t+"-"+li,t+"-"+Wo])},[]),Lx=[].concat(fa,[Nh]).reduce(function(e,t){return e.concat([t,t+"-"+li,t+"-"+Wo])},[]),r5="beforeRead",s5="read",i5="afterRead",o5="beforeMain",a5="main",l5="afterMain",u5="beforeWrite",c5="write",d5="afterWrite",f5=[r5,s5,i5,o5,a5,l5,u5,c5,d5];function On(e){return e?(e.nodeName||"").toLowerCase():null}function Nt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function us(e){var t=Nt(e).Element;return e instanceof t||e instanceof Element}function Qt(e){var t=Nt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Ah(e){if(typeof ShadowRoot>"u")return!1;var t=Nt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function p5(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},s=t.attributes[n]||{},i=t.elements[n];!Qt(i)||!On(i)||(Object.assign(i.style,r),Object.keys(s).forEach(function(o){var l=s[o];l===!1?i.removeAttribute(o):i.setAttribute(o,l===!0?"":l)}))})}function h5(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 s=t.elements[r],i=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=o.reduce(function(a,u){return a[u]="",a},{});!Qt(s)||!On(s)||(Object.assign(s.style,l),Object.keys(i).forEach(function(a){s.removeAttribute(a)}))})}}const m5={name:"applyStyles",enabled:!0,phase:"write",fn:p5,effect:h5,requires:["computeStyles"]};function kn(e){return e.split("-")[0]}var Zr=Math.max,yu=Math.min,ui=Math.round;function Jf(){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 Dx(){return!/^((?!chrome|android).)*safari/i.test(Jf())}function ci(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),s=1,i=1;t&&Qt(e)&&(s=e.offsetWidth>0&&ui(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ui(r.height)/e.offsetHeight||1);var o=us(e)?Nt(e):window,l=o.visualViewport,a=!Dx()&&n,u=(r.left+(a&&l?l.offsetLeft:0))/s,c=(r.top+(a&&l?l.offsetTop:0))/i,f=r.width/s,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function Ih(e){var t=ci(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 Fx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ah(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Kn(e){return Nt(e).getComputedStyle(e)}function g5(e){return["table","td","th"].indexOf(On(e))>=0}function Dr(e){return((us(e)?e.ownerDocument:e.document)||window.document).documentElement}function sc(e){return On(e)==="html"?e:e.assignedSlot||e.parentNode||(Ah(e)?e.host:null)||Dr(e)}function zv(e){return!Qt(e)||Kn(e).position==="fixed"?null:e.offsetParent}function v5(e){var t=/firefox/i.test(Jf()),n=/Trident/i.test(Jf());if(n&&Qt(e)){var r=Kn(e);if(r.position==="fixed")return null}var s=sc(e);for(Ah(s)&&(s=s.host);Qt(s)&&["html","body"].indexOf(On(s))<0;){var i=Kn(s);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return s;s=s.parentNode}return null}function pa(e){for(var t=Nt(e),n=zv(e);n&&g5(n)&&Kn(n).position==="static";)n=zv(n);return n&&(On(n)==="html"||On(n)==="body"&&Kn(n).position==="static")?t:n||v5(e)||t}function _h(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lo(e,t,n){return Zr(e,yu(t,n))}function y5(e,t,n){var r=lo(e,t,n);return r>n?n:r}function $x(){return{top:0,right:0,bottom:0,left:0}}function zx(e){return Object.assign({},$x(),e)}function Bx(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var w5=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,zx(typeof t!="number"?t:Bx(t,fa))};function x5(e){var t,n=e.state,r=e.name,s=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,l=kn(n.placement),a=_h(l),u=[wt,Zt].indexOf(l)>=0,c=u?"height":"width";if(!(!i||!o)){var f=w5(s.padding,n),p=Ih(i),h=a==="y"?yt:wt,v=a==="y"?Jt:Zt,w=n.rects.reference[c]+n.rects.reference[a]-o[a]-n.rects.popper[c],b=o[a]-n.rects.reference[a],g=pa(i),m=g?a==="y"?g.clientHeight||0:g.clientWidth||0:0,y=w/2-b/2,x=f[h],C=m-p[c]-f[v],T=m/2-p[c]/2+y,E=lo(x,T,C),j=a;n.modifiersData[r]=(t={},t[j]=E,t.centerOffset=E-T,t)}}function b5(e){var t=e.state,n=e.options,r=n.element,s=r===void 0?"[data-popper-arrow]":r;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||Fx(t.elements.popper,s)&&(t.elements.arrow=s))}const S5={name:"arrow",enabled:!0,phase:"main",fn:x5,effect:b5,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function di(e){return e.split("-")[1]}var C5={top:"auto",right:"auto",bottom:"auto",left:"auto"};function E5(e,t){var n=e.x,r=e.y,s=t.devicePixelRatio||1;return{x:ui(n*s)/s||0,y:ui(r*s)/s||0}}function Bv(e){var t,n=e.popper,r=e.popperRect,s=e.placement,i=e.variation,o=e.offsets,l=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=o.x,h=p===void 0?0:p,v=o.y,w=v===void 0?0:v,b=typeof c=="function"?c({x:h,y:w}):{x:h,y:w};h=b.x,w=b.y;var g=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),y=wt,x=yt,C=window;if(u){var T=pa(n),E="clientHeight",j="clientWidth";if(T===Nt(n)&&(T=Dr(n),Kn(T).position!=="static"&&l==="absolute"&&(E="scrollHeight",j="scrollWidth")),T=T,s===yt||(s===wt||s===Zt)&&i===Wo){x=Jt;var P=f&&T===C&&C.visualViewport?C.visualViewport.height:T[E];w-=P-r.height,w*=a?1:-1}if(s===wt||(s===yt||s===Jt)&&i===Wo){y=Zt;var M=f&&T===C&&C.visualViewport?C.visualViewport.width:T[j];h-=M-r.width,h*=a?1:-1}}var N=Object.assign({position:l},u&&C5),R=c===!0?E5({x:h,y:w},Nt(n)):{x:h,y:w};if(h=R.x,w=R.y,a){var I;return Object.assign({},N,(I={},I[x]=m?"0":"",I[y]=g?"0":"",I.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+w+"px)":"translate3d("+h+"px, "+w+"px, 0)",I))}return Object.assign({},N,(t={},t[x]=m?w+"px":"",t[y]=g?h+"px":"",t.transform="",t))}function T5(e){var t=e.state,n=e.options,r=n.gpuAcceleration,s=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,l=n.roundOffsets,a=l===void 0?!0:l,u={placement:kn(t.placement),variation:di(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Bv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const k5={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:T5,data:{}};var Ha={passive:!0};function P5(e){var t=e.state,n=e.instance,r=e.options,s=r.scroll,i=s===void 0?!0:s,o=r.resize,l=o===void 0?!0:o,a=Nt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ha)}),l&&a.addEventListener("resize",n.update,Ha),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ha)}),l&&a.removeEventListener("resize",n.update,Ha)}}const j5={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:P5,data:{}};var O5={left:"right",right:"left",bottom:"top",top:"bottom"};function yl(e){return e.replace(/left|right|bottom|top/g,function(t){return O5[t]})}var R5={start:"end",end:"start"};function Vv(e){return e.replace(/start|end/g,function(t){return R5[t]})}function Mh(e){var t=Nt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lh(e){return ci(Dr(e)).left+Mh(e).scrollLeft}function N5(e,t){var n=Nt(e),r=Dr(e),s=n.visualViewport,i=r.clientWidth,o=r.clientHeight,l=0,a=0;if(s){i=s.width,o=s.height;var u=Dx();(u||!u&&t==="fixed")&&(l=s.offsetLeft,a=s.offsetTop)}return{width:i,height:o,x:l+Lh(e),y:a}}function A5(e){var t,n=Dr(e),r=Mh(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Zr(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=Zr(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-r.scrollLeft+Lh(e),a=-r.scrollTop;return Kn(s||n).direction==="rtl"&&(l+=Zr(n.clientWidth,s?s.clientWidth:0)-i),{width:i,height:o,x:l,y:a}}function Dh(e){var t=Kn(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+r)}function Vx(e){return["html","body","#document"].indexOf(On(e))>=0?e.ownerDocument.body:Qt(e)&&Dh(e)?e:Vx(sc(e))}function uo(e,t){var n;t===void 0&&(t=[]);var r=Vx(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=Nt(r),o=s?[i].concat(i.visualViewport||[],Dh(r)?r:[]):r,l=t.concat(o);return s?l:l.concat(uo(sc(o)))}function Zf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function I5(e,t){var n=ci(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 Uv(e,t,n){return t===Mx?Zf(N5(e,n)):us(t)?I5(t,n):Zf(A5(Dr(e)))}function _5(e){var t=uo(sc(e)),n=["absolute","fixed"].indexOf(Kn(e).position)>=0,r=n&&Qt(e)?pa(e):e;return us(r)?t.filter(function(s){return us(s)&&Fx(s,r)&&On(s)!=="body"}):[]}function M5(e,t,n,r){var s=t==="clippingParents"?_5(e):[].concat(t),i=[].concat(s,[n]),o=i[0],l=i.reduce(function(a,u){var c=Uv(e,u,r);return a.top=Zr(c.top,a.top),a.right=yu(c.right,a.right),a.bottom=yu(c.bottom,a.bottom),a.left=Zr(c.left,a.left),a},Uv(e,o,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Ux(e){var t=e.reference,n=e.element,r=e.placement,s=r?kn(r):null,i=r?di(r):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,a;switch(s){case yt:a={x:o,y:t.y-n.height};break;case Jt:a={x:o,y:t.y+t.height};break;case Zt:a={x:t.x+t.width,y:l};break;case wt:a={x:t.x-n.width,y:l};break;default:a={x:t.x,y:t.y}}var u=s?_h(s):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case li:a[u]=a[u]-(t[c]/2-n[c]/2);break;case Wo:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function Qo(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=r===void 0?e.placement:r,i=n.strategy,o=i===void 0?e.strategy:i,l=n.boundary,a=l===void 0?t5:l,u=n.rootBoundary,c=u===void 0?Mx:u,f=n.elementContext,p=f===void 0?Di:f,h=n.altBoundary,v=h===void 0?!1:h,w=n.padding,b=w===void 0?0:w,g=zx(typeof b!="number"?b:Bx(b,fa)),m=p===Di?n5:Di,y=e.rects.popper,x=e.elements[v?m:p],C=M5(us(x)?x:x.contextElement||Dr(e.elements.popper),a,c,o),T=ci(e.elements.reference),E=Ux({reference:T,element:y,strategy:"absolute",placement:s}),j=Zf(Object.assign({},y,E)),P=p===Di?j:T,M={top:C.top-P.top+g.top,bottom:P.bottom-C.bottom+g.bottom,left:C.left-P.left+g.left,right:P.right-C.right+g.right},N=e.modifiersData.offset;if(p===Di&&N){var R=N[s];Object.keys(M).forEach(function(I){var L=[Zt,Jt].indexOf(I)>=0?1:-1,k=[yt,Jt].indexOf(I)>=0?"y":"x";M[I]+=R[k]*L})}return M}function L5(e,t){t===void 0&&(t={});var n=t,r=n.placement,s=n.boundary,i=n.rootBoundary,o=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?Lx:a,c=di(r),f=c?l?$v:$v.filter(function(v){return di(v)===c}):fa,p=f.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=f);var h=p.reduce(function(v,w){return v[w]=Qo(e,{placement:w,boundary:s,rootBoundary:i,padding:o})[kn(w)],v},{});return Object.keys(h).sort(function(v,w){return h[v]-h[w]})}function D5(e){if(kn(e)===Nh)return[];var t=yl(e);return[Vv(e),t,Vv(t)]}function F5(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,l=o===void 0?!0:o,a=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,w=n.allowedAutoPlacements,b=t.options.placement,g=kn(b),m=g===b,y=a||(m||!v?[yl(b)]:D5(b)),x=[b].concat(y).reduce(function(ne,ue){return ne.concat(kn(ue)===Nh?L5(t,{placement:ue,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:w}):ue)},[]),C=t.rects.reference,T=t.rects.popper,E=new Map,j=!0,P=x[0],M=0;M<x.length;M++){var N=x[M],R=kn(N),I=di(N)===li,L=[yt,Jt].indexOf(R)>=0,k=L?"width":"height",A=Qo(t,{placement:N,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),$=L?I?Zt:wt:I?Jt:yt;C[k]>T[k]&&($=yl($));var _=yl($),F=[];if(i&&F.push(A[R]<=0),l&&F.push(A[$]<=0,A[_]<=0),F.every(function(ne){return ne})){P=N,j=!1;break}E.set(N,F)}if(j)for(var B=v?3:1,J=function(ue){var fe=x.find(function(we){var je=E.get(we);if(je)return je.slice(0,ue).every(function(ut){return ut})});if(fe)return P=fe,"break"},Z=B;Z>0;Z--){var le=J(Z);if(le==="break")break}t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}}const $5={name:"flip",enabled:!0,phase:"main",fn:F5,requiresIfExists:["offset"],data:{_skip:!1}};function Hv(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 qv(e){return[yt,Zt,Jt,wt].some(function(t){return e[t]>=0})}function z5(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,i=t.modifiersData.preventOverflow,o=Qo(t,{elementContext:"reference"}),l=Qo(t,{altBoundary:!0}),a=Hv(o,r),u=Hv(l,s,i),c=qv(a),f=qv(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const B5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:z5};function V5(e,t,n){var r=kn(e),s=[wt,yt].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],l=i[1];return o=o||0,l=(l||0)*s,[wt,Zt].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function U5(e){var t=e.state,n=e.options,r=e.name,s=n.offset,i=s===void 0?[0,0]:s,o=Lx.reduce(function(c,f){return c[f]=V5(f,t.rects,i),c},{}),l=o[t.placement],a=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const H5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:U5};function q5(e){var t=e.state,n=e.name;t.modifiersData[n]=Ux({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const W5={name:"popperOffsets",enabled:!0,phase:"read",fn:q5,data:{}};function Q5(e){return e==="x"?"y":"x"}function G5(e){var t=e.state,n=e.options,r=e.name,s=n.mainAxis,i=s===void 0?!0:s,o=n.altAxis,l=o===void 0?!1:o,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,h=p===void 0?!0:p,v=n.tetherOffset,w=v===void 0?0:v,b=Qo(t,{boundary:a,rootBoundary:u,padding:f,altBoundary:c}),g=kn(t.placement),m=di(t.placement),y=!m,x=_h(g),C=Q5(x),T=t.modifiersData.popperOffsets,E=t.rects.reference,j=t.rects.popper,P=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,M=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(T){if(i){var I,L=x==="y"?yt:wt,k=x==="y"?Jt:Zt,A=x==="y"?"height":"width",$=T[x],_=$+b[L],F=$-b[k],B=h?-j[A]/2:0,J=m===li?E[A]:j[A],Z=m===li?-j[A]:-E[A],le=t.elements.arrow,ne=h&&le?Ih(le):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$x(),fe=ue[L],we=ue[k],je=lo(0,E[A],ne[A]),ut=y?E[A]/2-B-je-fe-M.mainAxis:J-je-fe-M.mainAxis,An=y?-E[A]/2+B+je+we+M.mainAxis:Z+je+we+M.mainAxis,vs=t.elements.arrow&&pa(t.elements.arrow),Tc=vs?x==="y"?vs.clientTop||0:vs.clientLeft||0:0,bi=(I=N==null?void 0:N[x])!=null?I:0,kc=$+ut-bi-Tc,wa=$+An-bi,Si=lo(h?yu(_,kc):_,$,h?Zr(F,wa):F);T[x]=Si,R[x]=Si-$}if(l){var Pc,fm=x==="x"?yt:wt,pm=x==="x"?Jt:Zt,O=T[C],D=C==="y"?"height":"width",z=O+b[fm],Q=O-b[pm],q=[yt,wt].indexOf(g)!==-1,H=(Pc=N==null?void 0:N[C])!=null?Pc:0,X=q?z:O-E[D]-j[D]-H+M.altAxis,ce=q?O+E[D]+j[D]-H-M.altAxis:Q,Oe=h&&q?y5(X,O,ce):lo(h?X:z,O,h?ce:Q);T[C]=Oe,R[C]=Oe-O}t.modifiersData[r]=R}}const K5={name:"preventOverflow",enabled:!0,phase:"main",fn:G5,requiresIfExists:["offset"]};function X5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Y5(e){return e===Nt(e)||!Qt(e)?Mh(e):X5(e)}function J5(e){var t=e.getBoundingClientRect(),n=ui(t.width)/e.offsetWidth||1,r=ui(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Z5(e,t,n){n===void 0&&(n=!1);var r=Qt(t),s=Qt(t)&&J5(t),i=Dr(t),o=ci(e,s,n),l={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((On(t)!=="body"||Dh(i))&&(l=Y5(t)),Qt(t)?(a=ci(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):i&&(a.x=Lh(i))),{x:o.left+l.scrollLeft-a.x,y:o.top+l.scrollTop-a.y,width:o.width,height:o.height}}function eO(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function s(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var a=t.get(l);a&&s(a)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||s(i)}),r}function tO(e){var t=eO(e);return f5.reduce(function(n,r){return n.concat(t.filter(function(s){return s.phase===r}))},[])}function nO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rO(e){var t=e.reduce(function(n,r){var s=n[r.name];return n[r.name]=s?Object.assign({},s,r,{options:Object.assign({},s.options,r.options),data:Object.assign({},s.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Wv={placement:"bottom",modifiers:[],strategy:"absolute"};function Qv(){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 sO(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,s=t.defaultOptions,i=s===void 0?Wv:s;return function(l,a,u){u===void 0&&(u=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wv,i),modifiersData:{},elements:{reference:l,popper:a},attributes:{},styles:{}},f=[],p=!1,h={state:c,setOptions:function(g){var m=typeof g=="function"?g(c.options):g;w(),c.options=Object.assign({},i,c.options,m),c.scrollParents={reference:us(l)?uo(l):l.contextElement?uo(l.contextElement):[],popper:uo(a)};var y=tO(rO([].concat(r,c.options.modifiers)));return c.orderedModifiers=y.filter(function(x){return x.enabled}),v(),h.update()},forceUpdate:function(){if(!p){var g=c.elements,m=g.reference,y=g.popper;if(Qv(m,y)){c.rects={reference:Z5(m,pa(y),c.options.strategy==="fixed"),popper:Ih(y)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(M){return c.modifiersData[M.name]=Object.assign({},M.data)});for(var x=0;x<c.orderedModifiers.length;x++){if(c.reset===!0){c.reset=!1,x=-1;continue}var C=c.orderedModifiers[x],T=C.fn,E=C.options,j=E===void 0?{}:E,P=C.name;typeof T=="function"&&(c=T({state:c,options:j,name:P,instance:h})||c)}}}},update:nO(function(){return new Promise(function(b){h.forceUpdate(),b(c)})}),destroy:function(){w(),p=!0}};if(!Qv(l,a))return h;h.setOptions(u).then(function(b){!p&&u.onFirstUpdate&&u.onFirstUpdate(b)});function v(){c.orderedModifiers.forEach(function(b){var g=b.name,m=b.options,y=m===void 0?{}:m,x=b.effect;if(typeof x=="function"){var C=x({state:c,name:g,instance:h,options:y}),T=function(){};f.push(C||T)}})}function w(){f.forEach(function(b){return b()}),f=[]}return h}}var iO=[j5,W5,k5,m5,H5,$5,K5,S5,B5],oO=sO({defaultModifiers:iO}),aO=typeof Element<"u",lO=typeof Map=="function",uO=typeof Set=="function",cO=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function wl(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,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!wl(e[r],t[r]))return!1;return!0}var i;if(lO&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!wl(r.value[1],t.get(r.value[0])))return!1;return!0}if(uO&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(cO&&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(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(aO&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!wl(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var dO=function(t,n){try{return wl(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 fO=Xo(dO);var pO=[],hO=function(t,n,r){r===void 0&&(r={});var s=S.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||pO},o=S.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],a=o[1],u=S.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(h){var v=h.state,w=Object.keys(v.elements);Nn.flushSync(function(){a({styles:Dv(w.map(function(b){return[b,v.styles[b]||{}]})),attributes:Dv(w.map(function(b){return[b,v.attributes[b]]}))})})},requires:["computeStyles"]}},[]),c=S.useMemo(function(){var p={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return fO(s.current,p)?s.current||p:(s.current=p,p)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=S.useRef();return Fv(function(){f.current&&f.current.setOptions(c)},[c]),Fv(function(){if(!(t==null||n==null)){var p=r.createPopper||oO,h=p(t,n,c);return f.current=h,function(){h.destroy(),f.current=null}}},[t,n,r.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}};const mO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.805c.49.704.733 1.473.733 2.306 0 .592-.134 1.177-.402 1.753l3.997 2.907c.52-.416 1.08-.624 1.679-.624"})]}),gO=mO,vO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M22.996 13.153c0 1.393-.291 2.722-.873 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.153c0-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.589M13.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.201"})]}),Gv=vO,yO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.111m3.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.363"})]}),wO=yO,xO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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-.216m7.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-.216m7.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-.216m7.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-.216m7.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-.24m7.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-.24m7.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"})]}),Kv=xO,bO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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 12M7.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-.963M9.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.03",clipRule:"evenodd"})]}),SO=bO,CO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"m.5 21.257 7.46-8.216 4.052 2.403 4.052-2.403 7.46 8.216zm0-2.738V8.573l5.848 3.531zm0-12.084V3.048h23.024v3.387l-11.512 6.847zm17.176 5.67 5.848-3.532v9.946z"})]}),Xv=CO,EO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M13.07 13.07V6.54h-2.14v6.53zm0 4.4v-2.2h-2.14v2.2zM24 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"})]}),TO=EO,kO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("path",{fill:"currentColor",d:"M11.685 2C8.66 2 6.7 3.277 5.164 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-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"})]}),PO=kO,jO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.334m10.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.996 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-.837",clipRule:"evenodd"})]}),OO=jO,RO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.jsx("g",{clipPath:"url(#one-profile_svg__a)",children:d.jsx("path",{fill:"currentColor",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24m0 4.65a4.26 4.26 0 1 1 0 8.51 4.26 4.26 0 0 1 0-8.51m0 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.3"})}),d.jsx("defs",{children:d.jsx("clipPath",{id:"one-profile_svg__a",children:d.jsx("path",{fill:"#fff",d:"M0 0h24v24H0z"})})})]}),Fh=RO,NO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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.628m2.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.486"})]}),AO=NO,IO=({title:e,titleId:t,...n})=>d.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?d.jsx("title",{id:t,children:e}):null,d.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"})]}),_O=IO,Yv=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function MO(e,t){t?t={...Yv,...t}:t=Yv;const n=Hx(t);return n.dispatch(e),n.toString()}const LO=Object.freeze(["prototype","__proto__","constructor"]);function Hx(e){let t="",n=new Map;const r=s=>{t+=s};return{toString(){return t},getContext(){return n},dispatch(s){return e.replacer&&(s=e.replacer(s)),this[s===null?"null":typeof s](s)},object(s){if(s&&typeof s.toJSON=="function")return this.object(s.toJSON());const i=Object.prototype.toString.call(s);let o="";const l=i.length;l<10?o="unknown:["+i+"]":o=i.slice(8,l-1),o=o.toLowerCase();let a=null;if((a=n.get(s))===void 0)n.set(s,n.size);else return this.dispatch("[CIRCULAR:"+a+"]");if(typeof Buffer<"u"&&Buffer.isBuffer&&Buffer.isBuffer(s))return r("buffer:"),r(s.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](s):e.ignoreUnknown||this.unkown(s,o);else{let u=Object.keys(s);e.unorderedObjects&&(u=u.sort());let c=[];e.respectType!==!1&&!Jv(s)&&(c=LO),e.excludeKeys&&(u=u.filter(p=>!e.excludeKeys(p)),c=c.filter(p=>!e.excludeKeys(p))),r("object:"+(u.length+c.length)+":");const f=p=>{this.dispatch(p),r(":"),e.excludeValues||this.dispatch(s[p]),r(",")};for(const p of u)f(p);for(const p of c)f(p)}},array(s,i){if(i=i===void 0?e.unorderedArrays!==!1:i,r("array:"+s.length+":"),!i||s.length<=1){for(const a of s)this.dispatch(a);return}const o=new Map,l=s.map(a=>{const u=Hx(e);u.dispatch(a);for(const[c,f]of u.getContext())o.set(c,f);return u.toString()});return n=o,l.sort(),this.array(l,!1)},date(s){return r("date:"+s.toJSON())},symbol(s){return r("symbol:"+s.toString())},unkown(s,i){if(r(i),!!s&&(r(":"),s&&typeof s.entries=="function"))return this.array(Array.from(s.entries()),!0)},error(s){return r("error:"+s.toString())},boolean(s){return r("bool:"+s)},string(s){r("string:"+s.length+":"),r(s)},function(s){r("fn:"),Jv(s)?this.dispatch("[native]"):this.dispatch(s.toString()),e.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(s.name)),e.respectFunctionProperties&&this.object(s)},number(s){return r("number:"+s)},xml(s){return r("xml:"+s.toString())},null(){return r("Null")},undefined(){return r("Undefined")},regexp(s){return r("regex:"+s.toString())},uint8array(s){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(s))},uint8clampedarray(s){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(s))},int8array(s){return r("int8array:"),this.dispatch(Array.prototype.slice.call(s))},uint16array(s){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(s))},int16array(s){return r("int16array:"),this.dispatch(Array.prototype.slice.call(s))},uint32array(s){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(s))},int32array(s){return r("int32array:"),this.dispatch(Array.prototype.slice.call(s))},float32array(s){return r("float32array:"),this.dispatch(Array.prototype.slice.call(s))},float64array(s){return r("float64array:"),this.dispatch(Array.prototype.slice.call(s))},arraybuffer(s){return r("arraybuffer:"),this.dispatch(new Uint8Array(s))},url(s){return r("url:"+s.toString())},map(s){r("map:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},set(s){r("set:");const i=[...s];return this.array(i,e.unorderedSets!==!1)},file(s){return r("file:"),this.dispatch([s.name,s.size,s.type,s.lastModfied])},blob(){if(e.ignoreUnknown)return r("[blob]");throw new Error(`Hashing Blob objects is currently not supported
|
|
226
|
+
Use "options.replacer" or "options.ignoreUnknown"
|
|
227
|
+
`)},domwindow(){return r("domwindow")},bigint(s){return r("bigint:"+s.toString())},process(){return r("process")},timer(){return r("timer")},pipe(){return r("pipe")},tcp(){return r("tcp")},udp(){return r("udp")},tty(){return r("tty")},statwatcher(){return r("statwatcher")},securecontext(){return r("securecontext")},connection(){return r("connection")},zlib(){return r("zlib")},context(){return r("context")},nodescript(){return r("nodescript")},httpparser(){return r("httpparser")},dataview(){return r("dataview")},signal(){return r("signal")},fsevent(){return r("fsevent")},tlswrap(){return r("tlswrap")}}}const qx="[native code] }",DO=qx.length;function Jv(e){return typeof e!="function"?!1:Function.prototype.toString.call(e).slice(-DO)===qx}class Tr{constructor(t,n){t=this.words=t||[],this.sigBytes=n===void 0?t.length*4:n}toString(t){return(t||FO).stringify(this)}concat(t){if(this.clamp(),this.sigBytes%4)for(let n=0;n<t.sigBytes;n++){const r=t.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=r<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<t.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=t.words[n>>>2];return this.sigBytes+=t.sigBytes,this}clamp(){this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4)}clone(){return new Tr([...this.words])}}const FO={stringify(e){const t=[];for(let n=0;n<e.sigBytes;n++){const r=e.words[n>>>2]>>>24-n%4*8&255;t.push((r>>>4).toString(16),(r&15).toString(16))}return t.join("")}},$O={stringify(e){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[];for(let r=0;r<e.sigBytes;r+=3){const s=e.words[r>>>2]>>>24-r%4*8&255,i=e.words[r+1>>>2]>>>24-(r+1)%4*8&255,o=e.words[r+2>>>2]>>>24-(r+2)%4*8&255,l=s<<16|i<<8|o;for(let a=0;a<4&&r*8+a*6<e.sigBytes*8;a++)n.push(t.charAt(l>>>6*(3-a)&63))}return n.join("")}},zO={parse(e){const t=e.length,n=[];for(let r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new Tr(n,t)}},BO={parse(e){return zO.parse(unescape(encodeURIComponent(e)))}};class VO{constructor(){this._data=new Tr,this._nDataBytes=0,this._minBufferSize=0,this.blockSize=512/32}reset(){this._data=new Tr,this._nDataBytes=0}_append(t){typeof t=="string"&&(t=BO.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes}_doProcessBlock(t,n){}_process(t){let n,r=this._data.sigBytes/(this.blockSize*4);t?r=Math.ceil(r):r=Math.max((r|0)-this._minBufferSize,0);const s=r*this.blockSize,i=Math.min(s*4,this._data.sigBytes);if(s){for(let o=0;o<s;o+=this.blockSize)this._doProcessBlock(this._data.words,o);n=this._data.words.splice(0,s),this._data.sigBytes-=i}return new Tr(n,i)}}class UO extends VO{update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t)}}const Zv=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],HO=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Br=[];class qO extends UO{constructor(){super(...arguments),this._hash=new Tr([...Zv])}reset(){super.reset(),this._hash=new Tr([...Zv])}_doProcessBlock(t,n){const r=this._hash.words;let s=r[0],i=r[1],o=r[2],l=r[3],a=r[4],u=r[5],c=r[6],f=r[7];for(let p=0;p<64;p++){if(p<16)Br[p]=t[n+p]|0;else{const y=Br[p-15],x=(y<<25|y>>>7)^(y<<14|y>>>18)^y>>>3,C=Br[p-2],T=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;Br[p]=x+Br[p-7]+T+Br[p-16]}const h=a&u^~a&c,v=s&i^s&o^i&o,w=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),b=(a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25),g=f+b+h+HO[p]+Br[p],m=w+v;f=c,c=u,u=a,a=l+g|0,l=o,o=i,i=s,s=g+m|0}r[0]=r[0]+s|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+l|0,r[4]=r[4]+a|0,r[5]=r[5]+u|0,r[6]=r[6]+c|0,r[7]=r[7]+f|0}finalize(t){super.finalize(t);const n=this._nDataBytes*8,r=this._data.sigBytes*8;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[(r+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(r+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}}function WO(e){return new qO().finalize(e).toString($O)}function Wx(e,t={}){const n=typeof e=="string"?e:MO(e,t);return WO(n).slice(0,10)}var Qx={};Object.defineProperty(Qx,"__esModule",{value:!0});const QO=e=>{const t="ÀÁÂÃÄÅĄĀàáâãäåąāÒÓÔÕÕÖØòóôõöøÈÉÊËĘĒèéêëðęēÇĆČçćčÐÌÍÎÏĪìíîïīÙÚÛÜŪùúûüūÑŅñņŠŚšśŸÿýŽŹŻžźżŁĻłļŃŅńņàáãảạăằắẳẵặâầấẩẫậèéẻẽẹêềếểễệđùúủũụưừứửữựòóỏõọôồốổỗộơờớởỡợìíỉĩịäëïîüûñçýỳỹỵỷğışĞİŞĢģĶķ",n="AAAAAAAAaaaaaaaaOOOOOOOooooooEEEEEEeeeeeeeCCCcccDIIIIIiiiiiUUUUUuuuuuNNnnSSssYyyZZZzzzLLllNNnnaaaaaaaaaaaaaaaaaeeeeeeeeeeeduuuuuuuuuuuoooooooooooooooooiiiiiaeiiuuncyyyyygisGISGgKk",r=t.split("").join("|"),s=new RegExp(`(${r})`,"g");function i(o){return n[t.indexOf(o)]||""}return e.replace(s,i)},GO=e=>e.split("").map(t=>`\\${t}`).join(""),e0=(e,t,n=!1)=>{const r=QO(e).trim().toLowerCase(),s=GO(t);return n?r.replace(/\s+/g,t):r.replace(new RegExp(`[^a-z0-9${s}]+`,"g"),t).replace(new RegExp(`${s}+`,"g"),t).replace(new RegExp(`^${s}`,"g"),"").replace(new RegExp(`${s}$`,"g"),"")},Wi=(e,t={delimiter:"-",prefix:""})=>{if(t.delimiter||(t.delimiter="-"),t.prefix||(t.prefix=""),!e||typeof e=="boolean")return"";const{delimiter:n,prefix:r}=t;if(typeof e=="boolean")return"";if(typeof e=="string"||typeof e=="number"){const s=e0(r,n,!0),i=e0(String(e),n);return s?`${s}${n}${i}`:i}return"children"in e?Wi(e.children):"type"in e?Wi(e.props.children,t):Symbol.iterator in e?Wi(Array.from(e).map(s=>Wi(s,{delimiter:n})).join(n),t):""};var Gx=Qx.default=Wi;function t0(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function $h(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:t0(t[n])&&t0(e[n])&&Object.keys(t[n]).length>0&&$h(e[n],t[n])})}const Kx={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function hs(){const e=typeof document<"u"?document:{};return $h(e,Kx),e}const KO={document:Kx,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Mt(){const e=typeof window<"u"?window:{};return $h(e,KO),e}function XO(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function ep(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function wu(){return Date.now()}function YO(e){const t=Mt();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function JO(e,t){t===void 0&&(t="x");const n=Mt();let r,s,i;const o=YO(e);return n.WebKitCSSMatrix?(s=o.transform||o.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map(l=>l.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(s==="none"?"":s)):(i=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?s=i.m41:r.length===16?s=parseFloat(r[12]):s=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?s=i.m42:r.length===16?s=parseFloat(r[13]):s=parseFloat(r[5])),s||0}function qa(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function ZO(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Ct(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!ZO(r)){const s=Object.keys(Object(r)).filter(i=>t.indexOf(i)<0);for(let i=0,o=s.length;i<o;i+=1){const l=s[i],a=Object.getOwnPropertyDescriptor(r,l);a!==void 0&&a.enumerable&&(qa(e[l])&&qa(r[l])?r[l].__swiper__?e[l]=r[l]:Ct(e[l],r[l]):!qa(e[l])&&qa(r[l])?(e[l]={},r[l].__swiper__?e[l]=r[l]:Ct(e[l],r[l])):e[l]=r[l])}}}return e}function Wa(e,t,n){e.style.setProperty(t,n)}function Xx(e){let{swiper:t,targetPosition:n,side:r}=e;const s=Mt(),i=-t.translate;let o=null,l;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const u=n>i?"next":"prev",c=(p,h)=>u==="next"&&p>=h||u==="prev"&&p<=h,f=()=>{l=new Date().getTime(),o===null&&(o=l);const p=Math.max(Math.min((l-o)/a,1),0),h=.5-Math.cos(p*Math.PI)/2;let v=i+h*(n-i);if(c(v,n)&&(v=n),t.wrapperEl.scrollTo({[r]:v}),c(v,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:v})}),s.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=s.requestAnimationFrame(f)};f()}function Cn(e,t){return t===void 0&&(t=""),[...e.children].filter(n=>n.matches(t))}function Yx(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function eR(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function tR(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function pr(e,t){return Mt().getComputedStyle(e,null).getPropertyValue(t)}function xu(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Jx(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function tp(e,t,n){const r=Mt();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}function nR(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(s=>{if(!n[s]&&n.auto===!0){let i=Cn(e.el,`.${r[s]}`)[0];i||(i=Yx("div",r[s]),i.className=r[s],e.el.append(i)),n[s]=i,t[s]=i}}),n}function Fi(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function rR(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const i="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:m=>m,formatFractionTotal:m=>m,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),t.pagination={el:null,bullets:[]};let o,l=0;const a=m=>(Array.isArray(m)||(m=[m].filter(y=>!!y)),m);function u(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function c(m,y){const{bulletActiveClass:x}=t.params.pagination;m&&(m=m[`${y==="prev"?"previous":"next"}ElementSibling`],m&&(m.classList.add(`${x}-${y}`),m=m[`${y==="prev"?"previous":"next"}ElementSibling`],m&&m.classList.add(`${x}-${y}-${y}`)))}function f(m){const y=m.target.closest(Fi(t.params.pagination.bulletClass));if(!y)return;m.preventDefault();const x=xu(y)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===x)return;const C=t.getSlideIndexByData(x),T=t.getSlideIndexByData(t.realIndex);C>t.slides.length-t.loopedSlides&&t.loopFix({direction:C>T?"next":"prev",activeSlideIndex:C,slideTo:!1}),t.slideToLoop(x)}else t.slideTo(x)}function p(){const m=t.rtl,y=t.params.pagination;if(u())return;let x=t.pagination.el;x=a(x);let C,T;const E=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,j=t.params.loop?Math.ceil(E/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(T=t.previousRealIndex||0,C=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(C=t.snapIndex,T=t.previousSnapIndex):(T=t.previousIndex||0,C=t.activeIndex||0),y.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const P=t.pagination.bullets;let M,N,R;if(y.dynamicBullets&&(o=tp(P[0],t.isHorizontal()?"width":"height",!0),x.forEach(I=>{I.style[t.isHorizontal()?"width":"height"]=`${o*(y.dynamicMainBullets+4)}px`}),y.dynamicMainBullets>1&&T!==void 0&&(l+=C-(T||0),l>y.dynamicMainBullets-1?l=y.dynamicMainBullets-1:l<0&&(l=0)),M=Math.max(C-l,0),N=M+(Math.min(P.length,y.dynamicMainBullets)-1),R=(N+M)/2),P.forEach(I=>{const L=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(k=>`${y.bulletActiveClass}${k}`)].map(k=>typeof k=="string"&&k.includes(" ")?k.split(" "):k).flat();I.classList.remove(...L)}),x.length>1)P.forEach(I=>{const L=xu(I);L===C?I.classList.add(...y.bulletActiveClass.split(" ")):t.isElement&&I.setAttribute("part","bullet"),y.dynamicBullets&&(L>=M&&L<=N&&I.classList.add(...`${y.bulletActiveClass}-main`.split(" ")),L===M&&c(I,"prev"),L===N&&c(I,"next"))});else{const I=P[C];if(I&&I.classList.add(...y.bulletActiveClass.split(" ")),t.isElement&&P.forEach((L,k)=>{L.setAttribute("part",k===C?"bullet-active":"bullet")}),y.dynamicBullets){const L=P[M],k=P[N];for(let A=M;A<=N;A+=1)P[A]&&P[A].classList.add(...`${y.bulletActiveClass}-main`.split(" "));c(L,"prev"),c(k,"next")}}if(y.dynamicBullets){const I=Math.min(P.length,y.dynamicMainBullets+4),L=(o*I-o)/2-R*o,k=m?"right":"left";P.forEach(A=>{A.style[t.isHorizontal()?k:"top"]=`${L}px`})}}x.forEach((P,M)=>{if(y.type==="fraction"&&(P.querySelectorAll(Fi(y.currentClass)).forEach(N=>{N.textContent=y.formatFractionCurrent(C+1)}),P.querySelectorAll(Fi(y.totalClass)).forEach(N=>{N.textContent=y.formatFractionTotal(j)})),y.type==="progressbar"){let N;y.progressbarOpposite?N=t.isHorizontal()?"vertical":"horizontal":N=t.isHorizontal()?"horizontal":"vertical";const R=(C+1)/j;let I=1,L=1;N==="horizontal"?I=R:L=R,P.querySelectorAll(Fi(y.progressbarFillClass)).forEach(k=>{k.style.transform=`translate3d(0,0,0) scaleX(${I}) scaleY(${L})`,k.style.transitionDuration=`${t.params.speed}ms`})}y.type==="custom"&&y.renderCustom?(P.innerHTML=y.renderCustom(t,C+1,j),M===0&&s("paginationRender",P)):(M===0&&s("paginationRender",P),s("paginationUpdate",P)),t.params.watchOverflow&&t.enabled&&P.classList[t.isLocked?"add":"remove"](y.lockClass)})}function h(){const m=t.params.pagination;if(u())return;const y=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length;let x=t.pagination.el;x=a(x);let C="";if(m.type==="bullets"){let T=t.params.loop?Math.ceil(y/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&T>y&&(T=y);for(let E=0;E<T;E+=1)m.renderBullet?C+=m.renderBullet.call(t,E,m.bulletClass):C+=`<${m.bulletElement} ${t.isElement?'part="bullet"':""} class="${m.bulletClass}"></${m.bulletElement}>`}m.type==="fraction"&&(m.renderFraction?C=m.renderFraction.call(t,m.currentClass,m.totalClass):C=`<span class="${m.currentClass}"></span> / <span class="${m.totalClass}"></span>`),m.type==="progressbar"&&(m.renderProgressbar?C=m.renderProgressbar.call(t,m.progressbarFillClass):C=`<span class="${m.progressbarFillClass}"></span>`),t.pagination.bullets=[],x.forEach(T=>{m.type!=="custom"&&(T.innerHTML=C||""),m.type==="bullets"&&t.pagination.bullets.push(...T.querySelectorAll(Fi(m.bulletClass)))}),m.type!=="custom"&&s("paginationRender",x[0])}function v(){t.params.pagination=nR(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const m=t.params.pagination;if(!m.el)return;let y;typeof m.el=="string"&&t.isElement&&(y=t.el.querySelector(m.el)),!y&&typeof m.el=="string"&&(y=[...document.querySelectorAll(m.el)]),y||(y=m.el),!(!y||y.length===0)&&(t.params.uniqueNavElements&&typeof m.el=="string"&&Array.isArray(y)&&y.length>1&&(y=[...t.el.querySelectorAll(m.el)],y.length>1&&(y=y.filter(x=>Jx(x,".swiper")[0]===t.el)[0])),Array.isArray(y)&&y.length===1&&(y=y[0]),Object.assign(t.pagination,{el:y}),y=a(y),y.forEach(x=>{m.type==="bullets"&&m.clickable&&x.classList.add(m.clickableClass),x.classList.add(m.modifierClass+m.type),x.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.type==="bullets"&&m.dynamicBullets&&(x.classList.add(`${m.modifierClass}${m.type}-dynamic`),l=0,m.dynamicMainBullets<1&&(m.dynamicMainBullets=1)),m.type==="progressbar"&&m.progressbarOpposite&&x.classList.add(m.progressbarOppositeClass),m.clickable&&x.addEventListener("click",f),t.enabled||x.classList.add(m.lockClass)}))}function w(){const m=t.params.pagination;if(u())return;let y=t.pagination.el;y&&(y=a(y),y.forEach(x=>{x.classList.remove(m.hiddenClass),x.classList.remove(m.modifierClass+m.type),x.classList.remove(t.isHorizontal()?m.horizontalClass:m.verticalClass),m.clickable&&x.removeEventListener("click",f)})),t.pagination.bullets&&t.pagination.bullets.forEach(x=>x.classList.remove(...m.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const m=t.params.pagination;let{el:y}=t.pagination;y=a(y),y.forEach(x=>{x.classList.remove(m.horizontalClass,m.verticalClass),x.classList.add(t.isHorizontal()?m.horizontalClass:m.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?g():(v(),h(),p())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&p()}),r("snapIndexChange",()=>{p()}),r("snapGridLengthChange",()=>{h(),p()}),r("destroy",()=>{w()}),r("enable disable",()=>{let{el:m}=t.pagination;m&&(m=a(m),m.forEach(y=>y.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{p()}),r("click",(m,y)=>{const x=y.target,C=a(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&C&&C.length>0&&!x.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&x===t.navigation.nextEl||t.navigation.prevEl&&x===t.navigation.prevEl))return;const T=C[0].classList.contains(t.params.pagination.hiddenClass);s(T===!0?"paginationShow":"paginationHide"),C.forEach(E=>E.classList.toggle(t.params.pagination.hiddenClass))}});const b=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=a(m),m.forEach(y=>y.classList.remove(t.params.pagination.paginationDisabledClass))),v(),h(),p()},g=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:m}=t.pagination;m&&(m=a(m),m.forEach(y=>y.classList.add(t.params.pagination.paginationDisabledClass))),w()};Object.assign(t.pagination,{enable:b,disable:g,render:h,update:p,init:v,destroy:w})}let md;function sR(){const e=Mt(),t=hs();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function Zx(){return md||(md=sR()),md}let gd;function iR(e){let{userAgent:t}=e===void 0?{}:e;const n=Zx(),r=Mt(),s=r.navigator.platform,i=t||r.navigator.userAgent,o={ios:!1,android:!1},l=r.screen.width,a=r.screen.height,u=i.match(/(Android);?[\s\/]+([\d.]+)?/);let c=i.match(/(iPad).*OS\s([\d_]+)/);const f=i.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=s==="Win32";let v=s==="MacIntel";const w=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&v&&n.touch&&w.indexOf(`${l}x${a}`)>=0&&(c=i.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),v=!1),u&&!h&&(o.os="android",o.android=!0),(c||p||f)&&(o.os="ios",o.ios=!0),o}function oR(e){return e===void 0&&(e={}),gd||(gd=iR(e)),gd}let vd;function aR(){const e=Mt();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[s,i]=r.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));t=s<16||s===16&&i<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function lR(){return vd||(vd=aR()),vd}function uR(e){let{swiper:t,on:n,emit:r}=e;const s=Mt();let i=null,o=null;const l=()=>{!t||t.destroyed||!t.initialized||(r("beforeResize"),r("resize"))},a=()=>{!t||t.destroyed||!t.initialized||(i=new ResizeObserver(f=>{o=s.requestAnimationFrame(()=>{const{width:p,height:h}=t;let v=p,w=h;f.forEach(b=>{let{contentBoxSize:g,contentRect:m,target:y}=b;y&&y!==t.el||(v=m?m.width:(g[0]||g).inlineSize,w=m?m.height:(g[0]||g).blockSize)}),(v!==p||w!==h)&&l()})}),i.observe(t.el))},u=()=>{o&&s.cancelAnimationFrame(o),i&&i.unobserve&&t.el&&(i.unobserve(t.el),i=null)},c=()=>{!t||t.destroyed||!t.initialized||r("orientationchange")};n("init",()=>{if(t.params.resizeObserver&&typeof s.ResizeObserver<"u"){a();return}s.addEventListener("resize",l),s.addEventListener("orientationchange",c)}),n("destroy",()=>{u(),s.removeEventListener("resize",l),s.removeEventListener("orientationchange",c)})}function cR(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const i=[],o=Mt(),l=function(c,f){f===void 0&&(f={});const p=o.MutationObserver||o.WebkitMutationObserver,h=new p(v=>{if(t.__preventObserver__)return;if(v.length===1){s("observerUpdate",v[0]);return}const w=function(){s("observerUpdate",v[0])};o.requestAnimationFrame?o.requestAnimationFrame(w):o.setTimeout(w,0)});h.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),i.push(h)},a=()=>{if(t.params.observer){if(t.params.observeParents){const c=Jx(t.el);for(let f=0;f<c.length;f+=1)l(c[f])}l(t.el,{childList:t.params.observeSlideChildren}),l(t.wrapperEl,{attributes:!1})}},u=()=>{i.forEach(c=>{c.disconnect()}),i.splice(0,i.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",a),r("destroy",u)}var dR={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const s=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][s](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function s(){r.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];t.apply(r,o)}return s.__emitterProxy=t,r.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((s,i)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,r;for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return typeof i[0]=="string"||Array.isArray(i[0])?(t=i[0],n=i.slice(1,i.length),r=e):(t=i[0].events,n=i[0].data,r=i[0].context||e),n.unshift(r),(Array.isArray(t)?t:t.split(" ")).forEach(a=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(u=>{u.apply(r,[a,...n])}),e.eventsListeners&&e.eventsListeners[a]&&e.eventsListeners[a].forEach(u=>{u.apply(r,n)})}),e}};function fR(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(pr(r,"padding-left")||0,10)-parseInt(pr(r,"padding-right")||0,10),n=n-parseInt(pr(r,"padding-top")||0,10)-parseInt(pr(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function pR(){const e=this;function t(N){return e.isHorizontal()?N:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[N]}function n(N,R){return parseFloat(N.getPropertyValue(t(R))||0)}const r=e.params,{wrapperEl:s,slidesEl:i,size:o,rtlTranslate:l,wrongRTL:a}=e,u=e.virtual&&r.virtual.enabled,c=u?e.virtual.slides.length:e.slides.length,f=Cn(i,`.${e.params.slideClass}, swiper-slide`),p=u?e.virtual.slides.length:f.length;let h=[];const v=[],w=[];let b=r.slidesOffsetBefore;typeof b=="function"&&(b=r.slidesOffsetBefore.call(e));let g=r.slidesOffsetAfter;typeof g=="function"&&(g=r.slidesOffsetAfter.call(e));const m=e.snapGrid.length,y=e.slidesGrid.length;let x=r.spaceBetween,C=-b,T=0,E=0;if(typeof o>"u")return;typeof x=="string"&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*o:typeof x=="string"&&(x=parseFloat(x)),e.virtualSize=-x,f.forEach(N=>{l?N.style.marginLeft="":N.style.marginRight="",N.style.marginBottom="",N.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(Wa(s,"--swiper-centered-offset-before",""),Wa(s,"--swiper-centered-offset-after",""));const j=r.grid&&r.grid.rows>1&&e.grid;j&&e.grid.initSlides(p);let P;const M=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(N=>typeof r.breakpoints[N].slidesPerView<"u").length>0;for(let N=0;N<p;N+=1){P=0;let R;if(f[N]&&(R=f[N]),j&&e.grid.updateSlide(N,R,p,t),!(f[N]&&pr(R,"display")==="none")){if(r.slidesPerView==="auto"){M&&(f[N].style[t("width")]="");const I=getComputedStyle(R),L=R.style.transform,k=R.style.webkitTransform;if(L&&(R.style.transform="none"),k&&(R.style.webkitTransform="none"),r.roundLengths)P=e.isHorizontal()?tp(R,"width",!0):tp(R,"height",!0);else{const A=n(I,"width"),$=n(I,"padding-left"),_=n(I,"padding-right"),F=n(I,"margin-left"),B=n(I,"margin-right"),J=I.getPropertyValue("box-sizing");if(J&&J==="border-box")P=A+F+B;else{const{clientWidth:Z,offsetWidth:le}=R;P=A+$+_+F+B+(le-Z)}}L&&(R.style.transform=L),k&&(R.style.webkitTransform=k),r.roundLengths&&(P=Math.floor(P))}else P=(o-(r.slidesPerView-1)*x)/r.slidesPerView,r.roundLengths&&(P=Math.floor(P)),f[N]&&(f[N].style[t("width")]=`${P}px`);f[N]&&(f[N].swiperSlideSize=P),w.push(P),r.centeredSlides?(C=C+P/2+T/2+x,T===0&&N!==0&&(C=C-o/2-x),N===0&&(C=C-o/2-x),Math.abs(C)<1/1e3&&(C=0),r.roundLengths&&(C=Math.floor(C)),E%r.slidesPerGroup===0&&h.push(C),v.push(C)):(r.roundLengths&&(C=Math.floor(C)),(E-Math.min(e.params.slidesPerGroupSkip,E))%e.params.slidesPerGroup===0&&h.push(C),v.push(C),C=C+P+x),e.virtualSize+=P+x,T=P,E+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+g,l&&a&&(r.effect==="slide"||r.effect==="coverflow")&&(s.style.width=`${e.virtualSize+x}px`),r.setWrapperSize&&(s.style[t("width")]=`${e.virtualSize+x}px`),j&&e.grid.updateWrapperSize(P,h,t),!r.centeredSlides){const N=[];for(let R=0;R<h.length;R+=1){let I=h[R];r.roundLengths&&(I=Math.floor(I)),h[R]<=e.virtualSize-o&&N.push(I)}h=N,Math.floor(e.virtualSize-o)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-o)}if(u&&r.loop){const N=w[0]+x;if(r.slidesPerGroup>1){const R=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),I=N*r.slidesPerGroup;for(let L=0;L<R;L+=1)h.push(h[h.length-1]+I)}for(let R=0;R<e.virtual.slidesBefore+e.virtual.slidesAfter;R+=1)r.slidesPerGroup===1&&h.push(h[h.length-1]+N),v.push(v[v.length-1]+N),e.virtualSize+=N}if(h.length===0&&(h=[0]),x!==0){const N=e.isHorizontal()&&l?"marginLeft":t("marginRight");f.filter((R,I)=>!r.cssMode||r.loop?!0:I!==f.length-1).forEach(R=>{R.style[N]=`${x}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let N=0;w.forEach(I=>{N+=I+(x||0)}),N-=x;const R=N-o;h=h.map(I=>I<=0?-b:I>R?R+g:I)}if(r.centerInsufficientSlides){let N=0;if(w.forEach(R=>{N+=R+(x||0)}),N-=x,N<o){const R=(o-N)/2;h.forEach((I,L)=>{h[L]=I-R}),v.forEach((I,L)=>{v[L]=I+R})}}if(Object.assign(e,{slides:f,snapGrid:h,slidesGrid:v,slidesSizesGrid:w}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Wa(s,"--swiper-centered-offset-before",`${-h[0]}px`),Wa(s,"--swiper-centered-offset-after",`${e.size/2-w[w.length-1]/2}px`);const N=-e.snapGrid[0],R=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(I=>I+N),e.slidesGrid=e.slidesGrid.map(I=>I+R)}if(p!==c&&e.emit("slidesLengthChange"),h.length!==m&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),v.length!==y&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!u&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const N=`${r.containerModifierClass}backface-hidden`,R=e.el.classList.contains(N);p<=r.maxBackfaceHiddenSlides?R||e.el.classList.add(N):R&&e.el.classList.remove(N)}}function hR(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let s=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const o=l=>r?t.slides[t.getSlideIndexByData(l)]:t.slides[l];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(l=>{n.push(l)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const l=t.activeIndex+i;if(l>t.slides.length&&!r)break;n.push(o(l))}else n.push(o(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const l=n[i].offsetHeight;s=l>s?l:s}(s||s===0)&&(t.wrapperEl.style.height=`${s}px`)}function mR(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function gR(e){e===void 0&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:r,rtlTranslate:s,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let o=-e;s&&(o=e),r.forEach(a=>{a.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*t.size:typeof l=="string"&&(l=parseFloat(l));for(let a=0;a<r.length;a+=1){const u=r[a];let c=u.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=r[0].swiperSlideOffset);const f=(o+(n.centeredSlides?t.minTranslate():0)-c)/(u.swiperSlideSize+l),p=(o-i[0]+(n.centeredSlides?t.minTranslate():0)-c)/(u.swiperSlideSize+l),h=-(o-c),v=h+t.slidesSizesGrid[a];(h>=0&&h<t.size-1||v>1&&v<=t.size||h<=0&&v>=t.size)&&(t.visibleSlides.push(u),t.visibleSlidesIndexes.push(a),r[a].classList.add(n.slideVisibleClass)),u.progress=s?-f:f,u.originalProgress=s?-p:p}}function vR(e){const t=this;if(typeof e>"u"){const c=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*c||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:i,isEnd:o,progressLoop:l}=t;const a=i,u=o;if(r===0)s=0,i=!0,o=!0;else{s=(e-t.minTranslate())/r;const c=Math.abs(e-t.minTranslate())<1,f=Math.abs(e-t.maxTranslate())<1;i=c||s<=0,o=f||s>=1,c&&(s=0),f&&(s=1)}if(n.loop){const c=t.getSlideIndexByData(0),f=t.getSlideIndexByData(t.slides.length-1),p=t.slidesGrid[c],h=t.slidesGrid[f],v=t.slidesGrid[t.slidesGrid.length-1],w=Math.abs(e);w>=p?l=(w-p)/v:l=(w+v-h)/v,l>1&&(l-=1)}Object.assign(t,{progress:s,progressLoop:l,isBeginning:i,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!a&&t.emit("reachBeginning toEdge"),o&&!u&&t.emit("reachEnd toEdge"),(a&&!i||u&&!o)&&t.emit("fromEdge"),t.emit("progress",s)}function yR(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:s}=e,i=e.virtual&&n.virtual.enabled,o=a=>Cn(r,`.${n.slideClass}${a}, swiper-slide${a}`)[0];t.forEach(a=>{a.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let l;if(i)if(n.loop){let a=s-e.virtual.slidesBefore;a<0&&(a=e.virtual.slides.length+a),a>=e.virtual.slides.length&&(a-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${a}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else l=t[s];if(l){l.classList.add(n.slideActiveClass);let a=tR(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!a&&(a=t[0]),a&&a.classList.add(n.slideNextClass);let u=eR(l,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!u===0&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const xl=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const s=r.querySelector(`.${e.params.lazyPreloaderClass}`);s&&s.remove()}},yd=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},np=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const o=s,l=[o-t];l.push(...Array.from({length:t}).map((a,u)=>o+r+u)),e.slides.forEach((a,u)=>{l.includes(a.column)&&yd(e,u)});return}const i=s+r-1;if(e.params.rewind||e.params.loop)for(let o=s-t;o<=i+t;o+=1){const l=(o%n+n)%n;(l<s||l>i)&&yd(e,l)}else for(let o=Math.max(s-t,0);o<=Math.min(i+t,n-1);o+=1)o!==s&&(o>i||o<s)&&yd(e,o)};function wR(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let s;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?s=i:r>=t[i]&&r<t[i+1]&&(s=i+1):r>=t[i]&&(s=i);return n.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}function xR(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:s,activeIndex:i,realIndex:o,snapIndex:l}=t;let a=e,u;const c=p=>{let h=p-t.virtual.slidesBefore;return h<0&&(h=t.virtual.slides.length+h),h>=t.virtual.slides.length&&(h-=t.virtual.slides.length),h};if(typeof a>"u"&&(a=wR(t)),r.indexOf(n)>=0)u=r.indexOf(n);else{const p=Math.min(s.slidesPerGroupSkip,a);u=p+Math.floor((a-p)/s.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),a===i){u!==l&&(t.snapIndex=u,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=c(a));return}let f;t.virtual&&s.virtual.enabled&&s.loop?f=c(a):t.slides[a]?f=parseInt(t.slides[a].getAttribute("data-swiper-slide-index")||a,10):f=a,Object.assign(t,{previousSnapIndex:l,snapIndex:u,previousRealIndex:o,realIndex:f,previousIndex:i,activeIndex:a}),t.initialized&&np(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==f&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function bR(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let s=!1,i;if(r){for(let o=0;o<t.slides.length;o+=1)if(t.slides[o]===r){s=!0,i=o;break}}if(r&&s)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=i;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var SR={updateSize:fR,updateSlides:pR,updateAutoHeight:hR,updateSlidesOffset:mR,updateSlidesProgress:gR,updateProgress:vR,updateSlidesClasses:yR,updateActiveIndex:xR,updateClickedSlide:bR};function CR(e){e===void 0&&(e=this.isHorizontal()?"x":"y");const t=this,{params:n,rtlTranslate:r,translate:s,wrapperEl:i}=t;if(n.virtualTranslate)return r?-s:s;if(n.cssMode)return s;let o=JO(i,e);return o+=t.cssOverflowAdjustment(),r&&(o=-o),o||0}function ER(e,t){const n=this,{rtlTranslate:r,params:s,wrapperEl:i,progress:o}=n;let l=0,a=0;const u=0;n.isHorizontal()?l=r?-e:e:a=e,s.roundLengths&&(l=Math.floor(l),a=Math.floor(a)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:a,s.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-a:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():a-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${l}px, ${a}px, ${u}px)`);let c;const f=n.maxTranslate()-n.minTranslate();f===0?c=0:c=(e-n.minTranslate())/f,c!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function TR(){return-this.snapGrid[0]}function kR(){return-this.snapGrid[this.snapGrid.length-1]}function PR(e,t,n,r,s){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);const i=this,{params:o,wrapperEl:l}=i;if(i.animating&&o.preventInteractionOnTransition)return!1;const a=i.minTranslate(),u=i.maxTranslate();let c;if(r&&e>a?c=a:r&&e<u?c=u:c=e,i.updateProgress(c),o.cssMode){const f=i.isHorizontal();if(t===0)l[f?"scrollLeft":"scrollTop"]=-c;else{if(!i.support.smoothScroll)return Xx({swiper:i,targetPosition:-c,side:f?"left":"top"}),!0;l.scrollTo({[f?"left":"top"]:-c,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,s),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(c),n&&(i.emit("beforeTransitionStart",t,s),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(p){!i||i.destroyed||p.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}var jR={getTranslate:CR,setTranslate:ER,minTranslate:TR,maxTranslate:kR,translateTo:PR};function OR(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function eb(e){let{swiper:t,runCallbacks:n,direction:r,step:s}=e;const{activeIndex:i,previousIndex:o}=t;let l=r;if(l||(i>o?l="next":i<o?l="prev":l="reset"),t.emit(`transition${s}`),n&&i!==o){if(l==="reset"){t.emit(`slideResetTransition${s}`);return}t.emit(`slideChangeTransition${s}`),l==="next"?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`)}}function RR(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),eb({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function NR(e,t){e===void 0&&(e=!0);const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),eb({swiper:n,runCallbacks:e,direction:t,step:"End"}))}var AR={setTransition:OR,transitionStart:RR,transitionEnd:NR};function IR(e,t,n,r,s){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const i=this;let o=e;o<0&&(o=0);const{params:l,snapGrid:a,slidesGrid:u,previousIndex:c,activeIndex:f,rtlTranslate:p,wrapperEl:h,enabled:v}=i;if(i.animating&&l.preventInteractionOnTransition||!v&&!r&&!s)return!1;const w=Math.min(i.params.slidesPerGroupSkip,o);let b=w+Math.floor((o-w)/i.params.slidesPerGroup);b>=a.length&&(b=a.length-1);const g=-a[b];if(l.normalizeSlideIndex)for(let y=0;y<u.length;y+=1){const x=-Math.floor(g*100),C=Math.floor(u[y]*100),T=Math.floor(u[y+1]*100);typeof u[y+1]<"u"?x>=C&&x<T-(T-C)/2?o=y:x>=C&&x<T&&(o=y+1):x>=C&&(o=y)}if(i.initialized&&o!==f&&(!i.allowSlideNext&&(p?g>i.translate&&g>i.minTranslate():g<i.translate&&g<i.minTranslate())||!i.allowSlidePrev&&g>i.translate&&g>i.maxTranslate()&&(f||0)!==o))return!1;o!==(c||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(g);let m;if(o>f?m="next":o<f?m="prev":m="reset",p&&-g===i.translate||!p&&g===i.translate)return i.updateActiveIndex(o),l.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),l.effect!=="slide"&&i.setTranslate(g),m!=="reset"&&(i.transitionStart(n,m),i.transitionEnd(n,m)),!1;if(l.cssMode){const y=i.isHorizontal(),x=p?g:-g;if(t===0){const C=i.virtual&&i.params.virtual.enabled;C&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),C&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[y?"scrollLeft":"scrollTop"]=x})):h[y?"scrollLeft":"scrollTop"]=x,C&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return Xx({swiper:i,targetPosition:x,side:y?"left":"top"}),!0;h.scrollTo({[y?"left":"top"]:x,behavior:"smooth"})}return!0}return i.setTransition(t),i.setTranslate(g),i.updateActiveIndex(o),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,m),t===0?i.transitionEnd(n,m):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(x){!i||i.destroyed||x.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,m))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function _R(e,t,n,r){e===void 0&&(e=0),t===void 0&&(t=this.params.speed),n===void 0&&(n=!0),typeof e=="string"&&(e=parseInt(e,10));const s=this;let i=e;return s.params.loop&&(s.virtual&&s.params.virtual.enabled?i=i+s.virtual.slidesBefore:i=s.getSlideIndexByData(i)),s.slideTo(i,t,n,r)}function MR(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{enabled:s,params:i,animating:o}=r;if(!s)return r;let l=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const a=r.activeIndex<i.slidesPerGroupSkip?1:l,u=r.virtual&&i.virtual.enabled;if(i.loop){if(o&&!u&&i.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+a,e,t,n)}function LR(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this,{params:s,snapGrid:i,slidesGrid:o,rtlTranslate:l,enabled:a,animating:u}=r;if(!a)return r;const c=r.virtual&&s.virtual.enabled;if(s.loop){if(u&&!c&&s.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const f=l?r.translate:-r.translate;function p(g){return g<0?-Math.floor(Math.abs(g)):Math.floor(g)}const h=p(f),v=i.map(g=>p(g));let w=i[v.indexOf(h)-1];if(typeof w>"u"&&s.cssMode){let g;i.forEach((m,y)=>{h>=m&&(g=y)}),typeof g<"u"&&(w=i[g>0?g-1:g])}let b=0;if(typeof w<"u"&&(b=o.indexOf(w),b<0&&(b=r.activeIndex-1),s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(b=b-r.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),s.rewind&&r.isBeginning){const g=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(g,e,t,n)}return r.slideTo(b,e,t,n)}function DR(e,t,n){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);const r=this;return r.slideTo(r.activeIndex,e,t,n)}function FR(e,t,n,r){e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=.5);const s=this;let i=s.activeIndex;const o=Math.min(s.params.slidesPerGroupSkip,i),l=o+Math.floor((i-o)/s.params.slidesPerGroup),a=s.rtlTranslate?s.translate:-s.translate;if(a>=s.snapGrid[l]){const u=s.snapGrid[l],c=s.snapGrid[l+1];a-u>(c-u)*r&&(i+=s.params.slidesPerGroup)}else{const u=s.snapGrid[l-1],c=s.snapGrid[l];a-u<=(c-u)*r&&(i-=s.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,s.slidesGrid.length-1),s.slideTo(i,e,t,n)}function $R(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let s=e.clickedIndex,i;const o=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?s<e.loopedSlides-r/2||s>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),s=e.getSlideIndex(Cn(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),ep(()=>{e.slideTo(s)})):e.slideTo(s):s>e.slides.length-r?(e.loopFix(),s=e.getSlideIndex(Cn(n,`${o}[data-swiper-slide-index="${i}"]`)[0]),ep(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}var zR={slideTo:IR,slideToLoop:_R,slideNext:MR,slidePrev:LR,slideReset:DR,slideToClosest:FR,slideToClickedSlide:$R};function BR(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;Cn(r,`.${n.slideClass}, swiper-slide`).forEach((i,o)=>{i.setAttribute("data-swiper-slide-index",o)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function VR(e){let{slideRealIndex:t,slideTo:n=!0,direction:r,setTranslate:s,activeSlideIndex:i,byController:o,byMousewheel:l}=e===void 0?{}:e;const a=this;if(!a.params.loop)return;a.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:f,slidesEl:p,params:h}=a;if(a.allowSlidePrev=!0,a.allowSlideNext=!0,a.virtual&&h.virtual.enabled){n&&(!h.centeredSlides&&a.snapIndex===0?a.slideTo(a.virtual.slides.length,0,!1,!0):h.centeredSlides&&a.snapIndex<h.slidesPerView?a.slideTo(a.virtual.slides.length+a.snapIndex,0,!1,!0):a.snapIndex===a.snapGrid.length-1&&a.slideTo(a.virtual.slidesBefore,0,!1,!0)),a.allowSlidePrev=c,a.allowSlideNext=f,a.emit("loopFix");return}const v=h.slidesPerView==="auto"?a.slidesPerViewDynamic():Math.ceil(parseFloat(h.slidesPerView,10));let w=h.loopedSlides||v;w%h.slidesPerGroup!==0&&(w+=h.slidesPerGroup-w%h.slidesPerGroup),a.loopedSlides=w;const b=[],g=[];let m=a.activeIndex;typeof i>"u"?i=a.getSlideIndex(a.slides.filter(E=>E.classList.contains(h.slideActiveClass))[0]):m=i;const y=r==="next"||!r,x=r==="prev"||!r;let C=0,T=0;if(i<w){C=Math.max(w-i,h.slidesPerGroup);for(let E=0;E<w-i;E+=1){const j=E-Math.floor(E/u.length)*u.length;b.push(u.length-j-1)}}else if(i>a.slides.length-w*2){T=Math.max(i-(a.slides.length-w*2),h.slidesPerGroup);for(let E=0;E<T;E+=1){const j=E-Math.floor(E/u.length)*u.length;g.push(j)}}if(x&&b.forEach(E=>{a.slides[E].swiperLoopMoveDOM=!0,p.prepend(a.slides[E]),a.slides[E].swiperLoopMoveDOM=!1}),y&&g.forEach(E=>{a.slides[E].swiperLoopMoveDOM=!0,p.append(a.slides[E]),a.slides[E].swiperLoopMoveDOM=!1}),a.recalcSlides(),h.slidesPerView==="auto"&&a.updateSlides(),h.watchSlidesProgress&&a.updateSlidesOffset(),n){if(b.length>0&&x)if(typeof t>"u"){const E=a.slidesGrid[m],P=a.slidesGrid[m+C]-E;l?a.setTranslate(a.translate-P):(a.slideTo(m+C,0,!1,!0),s&&(a.touches[a.isHorizontal()?"startX":"startY"]+=P))}else s&&a.slideToLoop(t,0,!1,!0);else if(g.length>0&&y)if(typeof t>"u"){const E=a.slidesGrid[m],P=a.slidesGrid[m-T]-E;l?a.setTranslate(a.translate-P):(a.slideTo(m-T,0,!1,!0),s&&(a.touches[a.isHorizontal()?"startX":"startY"]+=P))}else a.slideToLoop(t,0,!1,!0)}if(a.allowSlidePrev=c,a.allowSlideNext=f,a.controller&&a.controller.control&&!o){const E={slideRealIndex:t,slideTo:!1,direction:r,setTranslate:s,activeSlideIndex:i,byController:!0};Array.isArray(a.controller.control)?a.controller.control.forEach(j=>{!j.destroyed&&j.params.loop&&j.loopFix(E)}):a.controller.control instanceof a.constructor&&a.controller.control.params.loop&&a.controller.control.loopFix(E)}a.emit("loopFix")}function UR(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(s=>{const i=typeof s.swiperSlideIndex>"u"?s.getAttribute("data-swiper-slide-index")*1:s.swiperSlideIndex;r[i]=s}),e.slides.forEach(s=>{s.removeAttribute("data-swiper-slide-index")}),r.forEach(s=>{n.append(s)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}var HR={loopCreate:BR,loopFix:VR,loopDestroy:UR};function qR(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function WR(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}var QR={setGrabCursor:qR,unsetGrabCursor:WR};function GR(e,t){t===void 0&&(t=this);function n(r){if(!r||r===hs()||r===Mt())return null;r.assignedSlot&&(r=r.assignedSlot);const s=r.closest(e);return!s&&!r.getRootNode?null:s||n(r.getRootNode().host)}return n(t)}function KR(e){const t=this,n=hs(),r=Mt(),s=t.touchEventsData;s.evCache.push(e);const{params:i,touches:o,enabled:l}=t;if(!l||!i.simulateTouch&&e.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let a=e;a.originalEvent&&(a=a.originalEvent);let u=a.target;if(i.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(u)||"which"in a&&a.which===3||"button"in a&&a.button>0||s.isTouched&&s.isMoved)return;const c=!!i.noSwipingClass&&i.noSwipingClass!=="",f=e.composedPath?e.composedPath():e.path;c&&a.target&&a.target.shadowRoot&&f&&(u=f[0]);const p=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,h=!!(a.target&&a.target.shadowRoot);if(i.noSwiping&&(h?GR(p,u):u.closest(p))){t.allowClick=!0;return}if(i.swipeHandler&&!u.closest(i.swipeHandler))return;o.currentX=a.pageX,o.currentY=a.pageY;const v=o.currentX,w=o.currentY,b=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,g=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(b&&(v<=g||v>=r.innerWidth-g))if(b==="prevent")e.preventDefault();else return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=v,o.startY=w,s.touchStartTime=wu(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(s.allowThresholdMove=!1);let m=!0;u.matches(s.focusableElements)&&(m=!1,u.nodeName==="SELECT"&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==u&&n.activeElement.blur();const y=m&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||y)&&!u.isContentEditable&&a.preventDefault(),i.freeMode&&i.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",a)}function XR(e){const t=hs(),n=this,r=n.touchEventsData,{params:s,touches:i,rtlTranslate:o,enabled:l}=n;if(!l||!s.simulateTouch&&e.pointerType==="mouse")return;let a=e;if(a.originalEvent&&(a=a.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a);return}const u=r.evCache.findIndex(T=>T.pointerId===a.pointerId);u>=0&&(r.evCache[u]=a);const c=r.evCache.length>1?r.evCache[0]:a,f=c.pageX,p=c.pageY;if(a.preventedByNestedSwiper){i.startX=f,i.startY=p;return}if(!n.allowTouchMove){a.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:f,startY:p,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:f,currentY:p}),r.touchStartTime=wu());return}if(s.touchReleaseOnEdges&&!s.loop){if(n.isVertical()){if(p<i.startY&&n.translate<=n.maxTranslate()||p>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(f<i.startX&&n.translate<=n.maxTranslate()||f>i.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&a.target===t.activeElement&&a.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",a),a.targetTouches&&a.targetTouches.length>1)return;i.currentX=f,i.currentY=p;const h=i.currentX-i.startX,v=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(h**2+v**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let T;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:h*h+v*v>=25&&(T=Math.atan2(Math.abs(v),Math.abs(h))*180/Math.PI,r.isScrolling=n.isHorizontal()?T>s.touchAngle:90-T>s.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",a),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!s.cssMode&&a.cancelable&&a.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&a.stopPropagation();let w=n.isHorizontal()?h:v,b=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;s.oneWayMovement&&(w=Math.abs(w)*(o?1:-1),b=Math.abs(b)*(o?1:-1)),i.diff=w,w*=s.touchRatio,o&&(w=-w,b=-b);const g=n.touchesDirection;n.swipeDirection=w>0?"prev":"next",n.touchesDirection=b>0?"prev":"next";const m=n.params.loop&&!s.cssMode;if(!r.isMoved){if(m&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const T=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(T)}r.allowMomentumBounce=!1,s.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",a)}let y;r.isMoved&&g!==n.touchesDirection&&m&&Math.abs(w)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),y=!0),n.emit("sliderMove",a),r.isMoved=!0,r.currentTranslate=w+r.startTranslate;let x=!0,C=s.resistanceRatio;if(s.touchReleaseOnEdges&&(C=0),w>0?(m&&!y&&r.currentTranslate>(s.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(x=!1,s.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+w)**C))):w<0&&(m&&!y&&r.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(s.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(x=!1,s.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-w)**C))),x&&(a.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),s.threshold>0)if(Math.abs(w)>s.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function YR(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(y=>y.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:s,touches:i,rtlTranslate:o,slidesGrid:l,enabled:a}=t;if(!a||!s.simulateTouch&&e.pointerType==="mouse")return;let u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&s.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}s.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const c=wu(),f=c-n.touchStartTime;if(t.allowClick){const y=u.path||u.composedPath&&u.composedPath();t.updateClickedSlide(y&&y[0]||u.target),t.emit("tap click",u),f<300&&c-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)}if(n.lastClickTime=wu(),ep(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let p;if(s.followFinger?p=o?t.translate:-t.translate:p=-n.currentTranslate,s.cssMode)return;if(s.freeMode&&s.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:p});return}let h=0,v=t.slidesSizesGrid[0];for(let y=0;y<l.length;y+=y<s.slidesPerGroupSkip?1:s.slidesPerGroup){const x=y<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;typeof l[y+x]<"u"?p>=l[y]&&p<l[y+x]&&(h=y,v=l[y+x]-l[y]):p>=l[y]&&(h=y,v=l[l.length-1]-l[l.length-2])}let w=null,b=null;s.rewind&&(t.isBeginning?b=s.virtual&&s.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(w=0));const g=(p-l[h])/v,m=h<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(f>s.longSwipesMs){if(!s.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(g>=s.longSwipesRatio?t.slideTo(s.rewind&&t.isEnd?w:h+m):t.slideTo(h)),t.swipeDirection==="prev"&&(g>1-s.longSwipesRatio?t.slideTo(h+m):b!==null&&g<0&&Math.abs(g)>s.longSwipesRatio?t.slideTo(b):t.slideTo(h))}else{if(!s.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(h+m):t.slideTo(h):(t.swipeDirection==="next"&&t.slideTo(w!==null?w:h+m),t.swipeDirection==="prev"&&t.slideTo(b!==null?b:h))}}function n0(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:s,snapGrid:i}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const l=o&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!l?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=s,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function JR(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function ZR(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let s;const i=e.maxTranslate()-e.minTranslate();i===0?s=0:s=(e.translate-e.minTranslate())/i,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function eN(e){const t=this;xl(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let r0=!1;function tN(){}const tb=(e,t)=>{const n=hs(),{params:r,el:s,wrapperEl:i,device:o}=e,l=!!r.nested,a=t==="on"?"addEventListener":"removeEventListener",u=t;s[a]("pointerdown",e.onTouchStart,{passive:!1}),n[a]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[a]("pointerup",e.onTouchEnd,{passive:!0}),n[a]("pointercancel",e.onTouchEnd,{passive:!0}),n[a]("pointerout",e.onTouchEnd,{passive:!0}),n[a]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&s[a]("click",e.onClick,!0),r.cssMode&&i[a]("scroll",e.onScroll),r.updateOnWindowResize?e[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",n0,!0):e[u]("observerUpdate",n0,!0),s[a]("load",e.onLoad,{capture:!0})};function nN(){const e=this,t=hs(),{params:n}=e;e.onTouchStart=KR.bind(e),e.onTouchMove=XR.bind(e),e.onTouchEnd=YR.bind(e),n.cssMode&&(e.onScroll=ZR.bind(e)),e.onClick=JR.bind(e),e.onLoad=eN.bind(e),r0||(t.addEventListener("touchstart",tN),r0=!0),tb(e,"on")}function rN(){tb(this,"off")}var sN={attachEvents:nN,detachEvents:rN};const s0=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function iN(){const e=this,{realIndex:t,initialized:n,params:r,el:s}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const o=e.getBreakpoint(i,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const a=(o in i?i[o]:void 0)||e.originalParams,u=s0(e,r),c=s0(e,a),f=r.enabled;u&&!c?(s.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(s.classList.add(`${r.containerModifierClass}grid`),(a.grid.fill&&a.grid.fill==="column"||!a.grid.fill&&r.grid.fill==="column")&&s.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(w=>{if(typeof a[w]>"u")return;const b=r[w]&&r[w].enabled,g=a[w]&&a[w].enabled;b&&!g&&e[w].disable(),!b&&g&&e[w].enable()});const p=a.direction&&a.direction!==r.direction,h=r.loop&&(a.slidesPerView!==r.slidesPerView||p);p&&n&&e.changeDirection(),Ct(e.params,a);const v=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",a),h&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",a)}function oN(e,t,n){if(t===void 0&&(t="window"),!e||t==="container"&&!n)return;let r=!1;const s=Mt(),i=t==="window"?s.innerHeight:n.clientHeight,o=Object.keys(e).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const a=parseFloat(l.substr(1));return{value:i*a,point:l}}return{value:l,point:l}});o.sort((l,a)=>parseInt(l.value,10)-parseInt(a.value,10));for(let l=0;l<o.length;l+=1){const{point:a,value:u}=o[l];t==="window"?s.matchMedia(`(min-width: ${u}px)`).matches&&(r=a):u<=n.clientWidth&&(r=a)}return r||"max"}var aN={setBreakpoint:iN,getBreakpoint:oN};function lN(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(s=>{r[s]&&n.push(t+s)}):typeof r=="string"&&n.push(t+r)}),n}function uN(){const e=this,{classNames:t,params:n,rtl:r,el:s,device:i}=e,o=lN(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),s.classList.add(...t),e.emitContainerClasses()}function cN(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}var dN={addClasses:uN,removeClasses:cN};function fN(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const s=e.slides.length-1,i=e.slidesGrid[s]+e.slidesSizesGrid[s]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}var pN={checkOverflow:fN},i0={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function hN(e,t){return function(r){r===void 0&&(r={});const s=Object.keys(r)[0],i=r[s];if(typeof i!="object"||i===null){Ct(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(s)>=0&&e[s]===!0&&(e[s]={auto:!0}),!(s in e&&"enabled"in i)){Ct(t,r);return}e[s]===!0&&(e[s]={enabled:!0}),typeof e[s]=="object"&&!("enabled"in e[s])&&(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),Ct(t,r)}}const wd={eventsEmitter:dR,update:SR,translate:jR,transition:AR,slide:zR,loop:HR,grabCursor:QR,events:sN,breakpoints:aN,checkOverflow:pN,classes:dN},xd={};let Go=class Mn{constructor(){let t,n;for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];s.length===1&&s[0].constructor&&Object.prototype.toString.call(s[0]).slice(8,-1)==="Object"?n=s[0]:[t,n]=s,n||(n={}),n=Ct({},n),t&&!n.el&&(n.el=t);const o=hs();if(n.el&&typeof n.el=="string"&&o.querySelectorAll(n.el).length>1){const c=[];return o.querySelectorAll(n.el).forEach(f=>{const p=Ct({},n,{el:f});c.push(new Mn(p))}),c}const l=this;l.__swiper__=!0,l.support=Zx(),l.device=oR({userAgent:n.userAgent}),l.browser=lR(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);const a={};l.modules.forEach(c=>{c({params:n,swiper:l,extendParams:hN(n,a),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const u=Ct({},i0,a);return l.params=Ct({},u,xd,n),l.originalParams=Ct({},l.params),l.passedParams=Ct({},n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(c=>{l.on(c,l.params.on[c])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getSlideIndex(t){const{slidesEl:n,params:r}=this,s=Cn(n,`.${r.slideClass}, swiper-slide`),i=xu(s[0]);return xu(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=Cn(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const s=r.minTranslate(),o=(r.maxTranslate()-s)*t+s;r.translateTo(o,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const s=t.getSlideClasses(r);n.push({slideEl:r,classNames:s}),t.emit("_slideClass",r,s)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t,n){t===void 0&&(t="current"),n===void 0&&(n=!1);const r=this,{params:s,slides:i,slidesGrid:o,slidesSizesGrid:l,size:a,activeIndex:u}=r;let c=1;if(s.centeredSlides){let f=i[u]?i[u].swiperSlideSize:0,p;for(let h=u+1;h<i.length;h+=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,c+=1,f>a&&(p=!0));for(let h=u-1;h>=0;h-=1)i[h]&&!p&&(f+=i[h].swiperSlideSize,c+=1,f>a&&(p=!0))}else if(t==="current")for(let f=u+1;f<i.length;f+=1)(n?o[f]+l[f]-o[u]<a:o[f]-o[u]<a)&&(c+=1);else for(let f=u-1;f>=0;f-=1)o[u]-o[f]<a&&(c+=1);return c}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&xl(t,o)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function s(){const o=t.rtlTranslate?t.translate*-1:t.translate,l=Math.min(Math.max(o,t.maxTranslate()),t.minTranslate());t.setTranslate(l),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)s(),r.autoHeight&&t.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&t.isEnd&&!r.centeredSlides){const o=t.virtual&&r.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(o.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||s()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n){n===void 0&&(n=!0);const r=this,s=r.params.direction;return t||(t=s==="horizontal"?"vertical":"horizontal"),t===s||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${s}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&(n.isElement=!0);const s=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(s()):Cn(r,s())[0])();return!o&&n.params.createElements&&(o=Yx("div",n.params.wrapperClass),r.append(o),Cn(r,`.${n.params.slideClass}`).forEach(l=>{o.append(l)})),Object.assign(n,{el:r,wrapperEl:o,slidesEl:n.isElement?r.parentNode.host:o,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||pr(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||pr(r,"direction")==="rtl"),wrongRTL:pr(o,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete?xl(n,s):s.addEventListener("load",i=>{xl(n,i.target)})}),np(n),n.initialized=!0,np(n),n.emit("init"),n.emit("afterInit")),n}destroy(t,n){t===void 0&&(t=!0),n===void 0&&(n=!0);const r=this,{params:s,el:i,wrapperEl:o,slides:l}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),s.loop&&r.loopDestroy(),n&&(r.removeClasses(),i.removeAttribute("style"),o.removeAttribute("style"),l&&l.length&&l.forEach(a=>{a.classList.remove(s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),a.removeAttribute("style"),a.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(a=>{r.off(a)}),t!==!1&&(r.el.swiper=null,XO(r)),r.destroyed=!0),null}static extendDefaults(t){Ct(xd,t)}static get extendedDefaults(){return xd}static get defaults(){return i0}static installModule(t){Mn.prototype.__modules__||(Mn.prototype.__modules__=[]);const n=Mn.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Mn.installModule(n)),Mn):(Mn.installModule(t),Mn)}};Object.keys(wd).forEach(e=>{Object.keys(wd[e]).forEach(t=>{Go.prototype[t]=wd[e][t]})});Go.use([uR,cR]);const nb=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function cs(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function hr(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:cs(t[r])&&cs(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:hr(e[r],t[r]):e[r]=t[r]})}function rb(e){return e===void 0&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function sb(e){return e===void 0&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function ib(e){return e===void 0&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function ob(e){e===void 0&&(e="");const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function mN(e){return e===void 0&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function gN(e){let{swiper:t,slides:n,passedParams:r,changedParams:s,nextEl:i,prevEl:o,scrollbarEl:l,paginationEl:a}=e;const u=s.filter(P=>P!=="children"&&P!=="direction"&&P!=="wrapperClass"),{params:c,pagination:f,navigation:p,scrollbar:h,virtual:v,thumbs:w}=t;let b,g,m,y,x,C,T,E;s.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(b=!0),s.includes("controller")&&r.controller&&r.controller.control&&c.controller&&!c.controller.control&&(g=!0),s.includes("pagination")&&r.pagination&&(r.pagination.el||a)&&(c.pagination||c.pagination===!1)&&f&&!f.el&&(m=!0),s.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(c.scrollbar||c.scrollbar===!1)&&h&&!h.el&&(y=!0),s.includes("navigation")&&r.navigation&&(r.navigation.prevEl||o)&&(r.navigation.nextEl||i)&&(c.navigation||c.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(x=!0);const j=P=>{t[P]&&(t[P].destroy(),P==="navigation"?(t.isElement&&(t[P].prevEl.remove(),t[P].nextEl.remove()),c[P].prevEl=void 0,c[P].nextEl=void 0,t[P].prevEl=void 0,t[P].nextEl=void 0):(t.isElement&&t[P].el.remove(),c[P].el=void 0,t[P].el=void 0))};s.includes("loop")&&t.isElement&&(c.loop&&!r.loop?C=!0:!c.loop&&r.loop?T=!0:E=!0),u.forEach(P=>{if(cs(c[P])&&cs(r[P]))hr(c[P],r[P]),(P==="navigation"||P==="pagination"||P==="scrollbar")&&"enabled"in r[P]&&!r[P].enabled&&j(P);else{const M=r[P];(M===!0||M===!1)&&(P==="navigation"||P==="pagination"||P==="scrollbar")?M===!1&&j(P):c[P]=r[P]}}),u.includes("controller")&&!g&&t.controller&&t.controller.control&&c.controller&&c.controller.control&&(t.controller.control=c.controller.control),s.includes("children")&&n&&v&&c.virtual.enabled&&(v.slides=n,v.update(!0)),s.includes("children")&&n&&c.loop&&(E=!0),b&&w.init()&&w.update(!0),g&&(t.controller.control=c.controller.control),m&&(t.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-pagination"),t.el.appendChild(a)),a&&(c.pagination.el=a),f.init(),f.render(),f.update()),y&&(t.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),t.el.appendChild(l)),l&&(c.scrollbar.el=l),h.init(),h.updateSize(),h.setTranslate()),x&&(t.isElement&&((!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-next"),i.innerHTML=t.hostEl.nextButtonSvg,t.el.appendChild(i)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),i.innerHTML=t.hostEl.prevButtonSvg,t.el.appendChild(o))),i&&(c.navigation.nextEl=i),o&&(c.navigation.prevEl=o),p.init(),p.update()),s.includes("allowSlideNext")&&(t.allowSlideNext=r.allowSlideNext),s.includes("allowSlidePrev")&&(t.allowSlidePrev=r.allowSlidePrev),s.includes("direction")&&t.changeDirection(r.direction,!1),(C||E)&&t.loopDestroy(),(T||E)&&t.loopCreate(),t.update()}function vN(e,t){e===void 0&&(e={}),t===void 0&&(t=!0);const n={on:{}},r={},s={};hr(n,Go.defaults),hr(n,Go.extendedDefaults),n._emitClasses=!0,n.init=!1;const i={},o=nb.map(a=>a.replace(/_/,"")),l=Object.assign({},e);return Object.keys(l).forEach(a=>{typeof e[a]>"u"||(o.indexOf(a)>=0?cs(e[a])?(n[a]={},s[a]={},hr(n[a],e[a]),hr(s[a],e[a])):(n[a]=e[a],s[a]=e[a]):a.search(/on[A-Z]/)===0&&typeof e[a]=="function"?t?r[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:n.on[`${a[2].toLowerCase()}${a.substr(3)}`]=e[a]:i[a]=e[a])}),["navigation","pagination","scrollbar"].forEach(a=>{n[a]===!0&&(n[a]={}),n[a]===!1&&delete n[a]}),{params:n,passedParams:s,rest:i,events:r}}function yN(e,t){let{el:n,nextEl:r,prevEl:s,paginationEl:i,scrollbarEl:o,swiper:l}=e;rb(t)&&r&&s&&(l.params.navigation.nextEl=r,l.originalParams.navigation.nextEl=r,l.params.navigation.prevEl=s,l.originalParams.navigation.prevEl=s),sb(t)&&i&&(l.params.pagination.el=i,l.originalParams.pagination.el=i),ib(t)&&o&&(l.params.scrollbar.el=o,l.originalParams.scrollbar.el=o),l.init(n)}function wN(e,t,n,r,s){const i=[];if(!t)return i;const o=a=>{i.indexOf(a)<0&&i.push(a)};if(n&&r){const a=r.map(s),u=n.map(s);a.join("")!==u.join("")&&o("children"),r.length!==n.length&&o("children")}return nb.filter(a=>a[0]==="_").map(a=>a.replace(/_/,"")).forEach(a=>{if(a in e&&a in t)if(cs(e[a])&&cs(t[a])){const u=Object.keys(e[a]),c=Object.keys(t[a]);u.length!==c.length?o(a):(u.forEach(f=>{e[a][f]!==t[a][f]&&o(a)}),c.forEach(f=>{e[a][f]!==t[a][f]&&o(a)}))}else e[a]!==t[a]&&o(a)}),i}const xN=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())};function bu(){return bu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bu.apply(this,arguments)}function ab(e){return e.type&&e.type.displayName&&e.type.displayName.includes("SwiperSlide")}function lb(e){const t=[];return Y.Children.toArray(e).forEach(n=>{ab(n)?t.push(n):n.props&&n.props.children&&lb(n.props.children).forEach(r=>t.push(r))}),t}function bN(e){const t=[],n={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return Y.Children.toArray(e).forEach(r=>{if(ab(r))t.push(r);else if(r.props&&r.props.slot&&n[r.props.slot])n[r.props.slot].push(r);else if(r.props&&r.props.children){const s=lb(r.props.children);s.length>0?s.forEach(i=>t.push(i)):n["container-end"].push(r)}else n["container-end"].push(r)}),{slides:t,slots:n}}function SN(e,t,n){if(!n)return null;const r=c=>{let f=c;return c<0?f=t.length+c:f>=t.length&&(f=f-t.length),f},s=e.isHorizontal()?{[e.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:o}=n,l=e.params.loop?-t.length:0,a=e.params.loop?t.length*2:t.length,u=[];for(let c=l;c<a;c+=1)c>=i&&c<=o&&u.push(t[r(c)]);return u.map((c,f)=>Y.cloneElement(c,{swiper:e,style:s,key:`slide-${f}`}))}function co(e,t){return typeof window>"u"?S.useEffect(e,t):S.useLayoutEffect(e,t)}const o0=S.createContext(null),CN=S.createContext(null),ub=S.forwardRef(function(e,t){let{className:n,tag:r="div",wrapperTag:s="div",children:i,onSwiper:o,...l}=e===void 0?{}:e,a=!1;const[u,c]=S.useState("swiper"),[f,p]=S.useState(null),[h,v]=S.useState(!1),w=S.useRef(!1),b=S.useRef(null),g=S.useRef(null),m=S.useRef(null),y=S.useRef(null),x=S.useRef(null),C=S.useRef(null),T=S.useRef(null),E=S.useRef(null),{params:j,passedParams:P,rest:M,events:N}=vN(l),{slides:R,slots:I}=bN(i),L=()=>{v(!h)};Object.assign(j.on,{_containerClasses(F,B){c(B)}});const k=()=>{Object.assign(j.on,N),a=!0;const F={...j};if(delete F.wrapperClass,g.current=new Go(F),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=R;const B={cache:!1,slides:R,renderExternal:p,renderExternalUpdate:!1};hr(g.current.params.virtual,B),hr(g.current.originalParams.virtual,B)}};b.current||k(),g.current&&g.current.on("_beforeBreakpoint",L);const A=()=>{a||!N||!g.current||Object.keys(N).forEach(F=>{g.current.on(F,N[F])})},$=()=>{!N||!g.current||Object.keys(N).forEach(F=>{g.current.off(F,N[F])})};S.useEffect(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",L)}),S.useEffect(()=>{!w.current&&g.current&&(g.current.emitSlidesClasses(),w.current=!0)}),co(()=>{if(t&&(t.current=b.current),!!b.current)return g.current.destroyed&&k(),yN({el:b.current,nextEl:x.current,prevEl:C.current,paginationEl:T.current,scrollbarEl:E.current,swiper:g.current},j),o&&o(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),co(()=>{A();const F=wN(P,m.current,R,y.current,B=>B.key);return m.current=P,y.current=R,F.length&&g.current&&!g.current.destroyed&&gN({swiper:g.current,slides:R,passedParams:P,changedParams:F,nextEl:x.current,prevEl:C.current,scrollbarEl:E.current,paginationEl:T.current}),()=>{$()}}),co(()=>{xN(g.current)},[f]);function _(){return j.virtual?SN(g.current,R,f):R.map((F,B)=>Y.cloneElement(F,{swiper:g.current,swiperSlideIndex:B}))}return Y.createElement(r,bu({ref:b,className:ob(`${u}${n?` ${n}`:""}`)},M),Y.createElement(CN.Provider,{value:g.current},I["container-start"],Y.createElement(s,{className:mN(j.wrapperClass)},I["wrapper-start"],_(),I["wrapper-end"]),rb(j)&&Y.createElement(Y.Fragment,null,Y.createElement("div",{ref:C,className:"swiper-button-prev"}),Y.createElement("div",{ref:x,className:"swiper-button-next"})),ib(j)&&Y.createElement("div",{ref:E,className:"swiper-scrollbar"}),sb(j)&&Y.createElement("div",{ref:T,className:"swiper-pagination"}),I["container-end"]))});ub.displayName="Swiper";const cb=S.forwardRef(function(e,t){let{tag:n="div",children:r,className:s="",swiper:i,zoom:o,lazy:l,virtualIndex:a,swiperSlideIndex:u,...c}=e===void 0?{}:e;const f=S.useRef(null),[p,h]=S.useState("swiper-slide"),[v,w]=S.useState(!1);function b(x,C,T){C===f.current&&h(T)}co(()=>{if(typeof u<"u"&&(f.current.swiperSlideIndex=u),t&&(t.current=f.current),!(!f.current||!i)){if(i.destroyed){p!=="swiper-slide"&&h("swiper-slide");return}return i.on("_slideClass",b),()=>{i&&i.off("_slideClass",b)}}}),co(()=>{i&&f.current&&!i.destroyed&&h(i.getSlideClasses(f.current))},[i]);const g={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},m=()=>typeof r=="function"?r(g):r,y=()=>{w(!0)};return Y.createElement(n,bu({ref:f,className:ob(`${p}${s?` ${s}`:""}`),"data-swiper-slide-index":a,onLoad:y},c),o&&Y.createElement(o0.Provider,{value:g},Y.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof o=="number"?o:void 0},m(),l&&!v&&Y.createElement("div",{className:"swiper-lazy-preloader"}))),!o&&Y.createElement(o0.Provider,{value:g},m(),l&&!v&&Y.createElement("div",{className:"swiper-lazy-preloader"})))});cb.displayName="SwiperSlide";var zh={},Bh={};(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})(Bh);var ie={},Fr=tt&&tt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])},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)}}(),fo=tt&&tt.__assign||function(){return fo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},fo.apply(this,arguments)};Object.defineProperty(ie,"__esModule",{value:!0});ie.cloneNode=ie.hasChildren=ie.isDocument=ie.isDirective=ie.isComment=ie.isText=ie.isCDATA=ie.isTag=ie.Element=ie.Document=ie.CDATA=ie.NodeWithChildren=ie.ProcessingInstruction=ie.Comment=ie.Text=ie.DataNode=ie.Node=void 0;var xt=Bh,Vh=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),Uh(this,t)},e}();ie.Node=Vh;var ic=function(e){Fr(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}(Vh);ie.DataNode=ic;var db=function(e){Fr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=xt.ElementType.Text,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(ic);ie.Text=db;var fb=function(e){Fr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=xt.ElementType.Comment,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(ic);ie.Comment=fb;var pb=function(e){Fr(t,e);function t(n,r){var s=e.call(this,r)||this;return s.name=n,s.type=xt.ElementType.Directive,s}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(ic);ie.ProcessingInstruction=pb;var oc=function(e){Fr(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}(Vh);ie.NodeWithChildren=oc;var hb=function(e){Fr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=xt.ElementType.CDATA,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(oc);ie.CDATA=hb;var mb=function(e){Fr(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=xt.ElementType.Root,n}return Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(oc);ie.Document=mb;var gb=function(e){Fr(t,e);function t(n,r,s,i){s===void 0&&(s=[]),i===void 0&&(i=n==="script"?xt.ElementType.Script:n==="style"?xt.ElementType.Style:xt.ElementType.Tag);var o=e.call(this,s)||this;return o.name=n,o.attribs=r,o.type=i,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 s,i;return{name:r,value:n.attribs[r],namespace:(s=n["x-attribsNamespace"])===null||s===void 0?void 0:s[r],prefix:(i=n["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),t}(oc);ie.Element=gb;function vb(e){return(0,xt.isTag)(e)}ie.isTag=vb;function yb(e){return e.type===xt.ElementType.CDATA}ie.isCDATA=yb;function wb(e){return e.type===xt.ElementType.Text}ie.isText=wb;function xb(e){return e.type===xt.ElementType.Comment}ie.isComment=xb;function bb(e){return e.type===xt.ElementType.Directive}ie.isDirective=bb;function Sb(e){return e.type===xt.ElementType.Root}ie.isDocument=Sb;function EN(e){return Object.prototype.hasOwnProperty.call(e,"children")}ie.hasChildren=EN;function Uh(e,t){t===void 0&&(t=!1);var n;if(wb(e))n=new db(e.data);else if(xb(e))n=new fb(e.data);else if(vb(e)){var r=t?bd(e.children):[],s=new gb(e.name,fo({},e.attribs),r);r.forEach(function(a){return a.parent=s}),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]=fo({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]=fo({},e["x-attribsPrefix"])),n=s}else if(yb(e)){var r=t?bd(e.children):[],i=new hb(r);r.forEach(function(u){return u.parent=i}),n=i}else if(Sb(e)){var r=t?bd(e.children):[],o=new mb(r);r.forEach(function(u){return u.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(bb(e)){var l=new pb(e.name,e.data);e["x-name"]!=null&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}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}ie.cloneNode=Uh;function bd(e){for(var t=e.map(function(r){return Uh(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=tt&&tt.__createBinding||(Object.create?function(l,a,u,c){c===void 0&&(c=u);var f=Object.getOwnPropertyDescriptor(a,u);(!f||("get"in f?!a.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return a[u]}}),Object.defineProperty(l,c,f)}:function(l,a,u,c){c===void 0&&(c=u),l[c]=a[u]}),n=tt&&tt.__exportStar||function(l,a){for(var u in l)u!=="default"&&!Object.prototype.hasOwnProperty.call(a,u)&&t(a,l,u)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=Bh,s=ie;n(ie,e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function l(a,u,c){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof u=="function"&&(c=u,u=i),typeof a=="object"&&(u=a,a=void 0),this.callback=a??null,this.options=u??i,this.elementCB=c??null}return l.prototype.onparserinit=function(a){this.parser=a},l.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(a){this.handleCallback(a)},l.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},l.prototype.onopentag=function(a,u){var c=this.options.xmlMode?r.ElementType.Tag:void 0,f=new s.Element(a,u,void 0,c);this.addNode(f),this.tagStack.push(f)},l.prototype.ontext=function(a){var u=this.lastNode;if(u&&u.type===r.ElementType.Text)u.data+=a,this.options.withEndIndices&&(u.endIndex=this.parser.endIndex);else{var c=new s.Text(a);this.addNode(c),this.lastNode=c}},l.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=a;return}var u=new s.Comment(a);this.addNode(u),this.lastNode=u},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var a=new s.Text(""),u=new s.CDATA([a]);this.addNode(u),a.parent=u,this.lastNode=a},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(a,u){var c=new s.ProcessingInstruction(a,u);this.addNode(c)},l.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},l.prototype.addNode=function(a){var u=this.tagStack[this.tagStack.length-1],c=u.children[u.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),u.children.push(a),c&&(a.prev=c,c.next=a),a.parent=u,this.lastNode=null},l}();e.DomHandler=o,e.default=o})(zh);var a0="html",l0="head",Qa="body",TN=/<([a-zA-Z]+[0-9]?)/,u0=/<head[^]*>/i,c0=/<body[^]*>/i,Su=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},rp=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d0=typeof window=="object"&&window.DOMParser;if(typeof d0=="function"){var kN=new d0,PN="text/html";rp=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),kN.parseFromString(e,PN)},Su=rp}if(typeof document=="object"&&document.implementation){var Ga=document.implementation.createHTMLDocument();Su=function(e,t){if(t){var n=Ga.documentElement.querySelector(t);return n.innerHTML=e,Ga}return Ga.documentElement.innerHTML=e,Ga}}var Sd=typeof document=="object"?document.createElement("template"):{},sp;Sd.content&&(sp=function(e){return Sd.innerHTML=e,Sd.content.childNodes});function jN(e){var t,n=e.match(TN);n&&n[1]&&(t=n[1].toLowerCase());var r,s,i;switch(t){case a0:return r=rp(e),u0.test(e)||(s=r.querySelector(l0),s&&s.parentNode.removeChild(s)),c0.test(e)||(s=r.querySelector(Qa),s&&s.parentNode.removeChild(s)),r.querySelectorAll(a0);case l0:case Qa:return r=Su(e),i=r.querySelectorAll(t),c0.test(e)&&u0.test(e)?i[0].parentNode.childNodes:i;default:return sp?sp(e):(s=Su(e,Qa).querySelector(Qa),s.childNodes)}}var ON=jN,Hh={},Cb={};Cb.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 ac=zh,RN=Cb,f0=RN.CASE_SENSITIVE_TAG_NAMES,NN=ac.Comment,AN=ac.Element,IN=ac.ProcessingInstruction,_N=ac.Text,Eb={},Cd;for(var Ed=0,MN=f0.length;Ed<MN;Ed++)Cd=f0[Ed],Eb[Cd.toLowerCase()]=Cd;function LN(e){return Eb[e]}function Tb(e){for(var t={},n,r=0,s=e.length;r<s;r++)n=e[r],t[n.name]=n.value;return t}function DN(e){e=e.toLowerCase();var t=LN(e);return t||e}function kb(e,t,n){t=t||null;for(var r=[],s,i=0,o=e.length;i<o;i++){var l=e[i],a;switch(l.nodeType){case 1:s=DN(l.nodeName),a=new AN(s,Tb(l.attributes)),a.children=kb(s==="template"?l.content.childNodes:l.childNodes,a);break;case 3:a=new _N(l.nodeValue);break;case 8:a=new NN(l.nodeValue);break;default:continue}var u=r[i-1]||null;u&&(u.next=a),a.parent=t,a.prev=u,a.next=null,r.push(a)}return n&&(a=new IN(n.substring(0,n.indexOf(" ")).toLowerCase(),n),a.next=r[0]||null,a.parent=t,r.unshift(a),r[1]&&(r[1].prev=r[0])),r}Hh.formatAttributes=Tb;Hh.formatDOM=kb;var FN=ON,$N=Hh,zN=$N.formatDOM,BN=/<(![a-zA-Z\s]+)>/;function VN(e){if(typeof e!="string")throw new TypeError("First argument must be a string");if(e==="")return[];var t=e.match(BN),n;return t&&t[1]&&(n=t[1]),zN(FN(e),null,n)}var UN=VN,en={},lc={},HN=0;lc.SAME=HN;var qN=1;lc.CAMELCASE=qN;lc.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(en,"__esModule",{value:!0});function WN(e,t){return QN(e)||GN(e,t)||KN(e,t)||XN()}function QN(e){if(Array.isArray(e))return e}function GN(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,l;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(a){i=!0,l=a}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function KN(e,t){if(e){if(typeof e=="string")return p0(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 p0(e,t)}}function p0(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 XN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
228
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Pb=0,$r=1,uc=2,cc=3,qh=4,jb=5,Ob=6;function YN(e){return qe.hasOwnProperty(e)?qe[e]:null}function ot(e,t,n,r,s,i,o){this.acceptsBooleans=t===uc||t===cc||t===qh,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var qe={},JN=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];JN.forEach(function(e){qe[e]=new ot(e,Pb,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=WN(e,2),n=t[0],r=t[1];qe[n]=new ot(n,$r,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new ot(e,uc,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new ot(e,uc,!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){qe[e]=new ot(e,cc,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new ot(e,cc,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new ot(e,qh,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new ot(e,Ob,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new ot(e,jb,!1,e.toLowerCase(),null,!1,!1)});var Wh=/[\-\:]([a-z])/g,Qh=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(Wh,Qh);qe[t]=new ot(t,$r,!1,e,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(Wh,Qh);qe[t]=new ot(t,$r,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Wh,Qh);qe[t]=new ot(t,$r,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new ot(e,$r,!1,e.toLowerCase(),null,!1,!1)});var ZN="xlinkHref";qe[ZN]=new ot("xlinkHref",$r,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new ot(e,$r,!1,e.toLowerCase(),null,!0,!0)});var Gh=lc,eA=Gh.CAMELCASE,tA=Gh.SAME,h0=Gh.possibleStandardNames,nA=":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",rA=nA+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",sA=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+rA+"]*$")),iA=Object.keys(h0).reduce(function(e,t){var n=h0[t];return n===tA?e[t]=t:n===eA?e[t.toLowerCase()]=t:e[t]=n,e},{});en.BOOLEAN=cc;en.BOOLEANISH_STRING=uc;en.NUMERIC=jb;en.OVERLOADED_BOOLEAN=qh;en.POSITIVE_NUMERIC=Ob;en.RESERVED=Pb;en.STRING=$r;en.getPropertyInfo=YN;en.isCustomAttribute=sA;en.possibleStandardNames=iA;var Rb={},Kh={exports:{}},m0=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oA=/\n/g,aA=/^\s*/,lA=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,uA=/^:\s*/,cA=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,dA=/^[;\s]*/,fA=/^\s+|\s+$/g,pA=`
|
|
229
|
+
`,g0="/",v0="*",Hr="",hA="comment",mA="declaration",gA=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 s(v){var w=v.match(oA);w&&(n+=w.length);var b=v.lastIndexOf(pA);r=~b?v.length-b:r+v.length}function i(){var v={line:n,column:r};return function(w){return w.position=new o(v),u(),w}}function o(v){this.start=v,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function l(v){var w=new Error(t.source+":"+n+":"+r+": "+v);if(w.reason=v,w.filename=t.source,w.line=n,w.column=r,w.source=e,!t.silent)throw w}function a(v){var w=v.exec(e);if(w){var b=w[0];return s(b),e=e.slice(b.length),w}}function u(){a(aA)}function c(v){var w;for(v=v||[];w=f();)w!==!1&&v.push(w);return v}function f(){var v=i();if(!(g0!=e.charAt(0)||v0!=e.charAt(1))){for(var w=2;Hr!=e.charAt(w)&&(v0!=e.charAt(w)||g0!=e.charAt(w+1));)++w;if(w+=2,Hr===e.charAt(w-1))return l("End of comment missing");var b=e.slice(2,w-2);return r+=2,s(b),e=e.slice(w),r+=2,v({type:hA,comment:b})}}function p(){var v=i(),w=a(lA);if(w){if(f(),!a(uA))return l("property missing ':'");var b=a(cA),g=v({type:mA,property:y0(w[0].replace(m0,Hr)),value:b?y0(b[0].replace(m0,Hr)):Hr});return a(dA),g}}function h(){var v=[];c(v);for(var w;w=p();)w!==!1&&(v.push(w),c(v));return v}return u(),h()};function y0(e){return e?e.replace(fA,Hr):Hr}var vA=gA;function Nb(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,s=vA(e),i=typeof t=="function",o,l,a=0,u=s.length;a<u;a++)r=s[a],o=r.property,l=r.value,i?t(o,l,r):l&&(n||(n={}),n[o]=l);return n}Kh.exports=Nb;Kh.exports.default=Nb;var yA=Kh.exports,dc={};dc.__esModule=!0;dc.camelCase=void 0;var wA=/^--[a-zA-Z0-9-]+$/,xA=/-([a-z])/g,bA=/^[^-]+$/,SA=/^-(webkit|moz|ms|o|khtml)-/,CA=/^-(ms)-/,EA=function(e){return!e||bA.test(e)||wA.test(e)},TA=function(e,t){return t.toUpperCase()},w0=function(e,t){return"".concat(t,"-")},kA=function(e,t){return t===void 0&&(t={}),EA(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(CA,w0):e=e.replace(SA,w0),e.replace(xA,TA))};dc.camelCase=kA;(function(e){var t=tt&&tt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};e.__esModule=!0;var n=t(yA),r=dc;function s(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,u){a&&u&&(l[(0,r.camelCase)(a,o)]=u)}),l}e.default=s})(Rb);var PA=S,jA=Rb.default;function OA(e,t){if(!e||typeof e!="object")throw new TypeError("First argument must be an object");var n,r,s=typeof t=="function",i={},o={};for(n in e){if(r=e[n],s&&(i=t(n,r),i&&i.length===2)){o[i[0]]=i[1];continue}typeof r=="string"&&(o[r]=n)}return o}function RA(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 NA={reactCompat:!0};function AA(e,t){if(e!=null)try{t.style=jA(e,NA)}catch{t.style={}}}var IA=PA.version.split(".")[0]>=16,Ab=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function _A(e){return!Ab.has(e.name)}var Ib={PRESERVE_CUSTOM_ATTRIBUTES:IA,invertObject:OA,isCustomComponent:RA,setStyleProp:AA,canTextBeChildOfNode:_A,elementsWithNoTextChildren:Ab},Qi=en,x0=Ib,MA=["checked","value"],LA=["input","select","textarea"],DA={reset:!0,submit:!0},_b=function(t,n){t=t||{};var r,s,i,o,l,a={},u=t.type&&DA[t.type];for(r in t){if(i=t[r],Qi.isCustomAttribute(r)){a[r]=i;continue}if(s=r.toLowerCase(),o=b0(s),o){switch(l=Qi.getPropertyInfo(o),MA.indexOf(o)!==-1&&LA.indexOf(n)!==-1&&!u&&(o=b0("default"+s)),a[o]=i,l&&l.type){case Qi.BOOLEAN:a[o]=!0;break;case Qi.OVERLOADED_BOOLEAN:i===""&&(a[o]=!0);break}continue}x0.PRESERVE_CUSTOM_ATTRIBUTES&&(a[r]=i)}return x0.setStyleProp(t.style,a),a};function b0(e){return Qi.possibleStandardNames[e]}var FA=S,$A=_b,Cu=Ib,zA=Cu.setStyleProp,BA=Cu.canTextBeChildOfNode;function Mb(e,t){t=t||{};for(var n=t.library||FA,r=n.cloneElement,s=n.createElement,i=n.isValidElement,o=[],l,a,u=typeof t.replace=="function",c,f,p,h=t.trim,v=0,w=e.length;v<w;v++){if(l=e[v],u&&(c=t.replace(l),i(c))){w>1&&(c=r(c,{key:c.key||v})),o.push(c);continue}if(l.type==="text"){if(a=!l.data.trim().length,a&&l.parent&&!BA(l.parent)||h&&a)continue;o.push(l.data);continue}switch(f=l.attribs,VA(l)?zA(f.style,f):f&&(f=$A(f,l.name)),p=null,l.type){case"script":case"style":l.children[0]&&(f.dangerouslySetInnerHTML={__html:l.children[0].data});break;case"tag":l.name==="textarea"&&l.children[0]?f.defaultValue=l.children[0].data:l.children&&l.children.length&&(p=Mb(l.children,t));break;default:continue}w>1&&(f.key=v),o.push(s(l.name,f,p))}return o.length===1?o[0]:o}function VA(e){return Cu.PRESERVE_CUSTOM_ATTRIBUTES&&e.type==="tag"&&Cu.isCustomComponent(e.name,e.attribs)}var UA=Mb,fc=zh,$s=UN,HA=_b,Lb=UA;$s=typeof $s.default=="function"?$s.default:$s;var qA={lowerCaseAttributeNames:!1};function Rn(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");return e===""?[]:(t=t||{},Lb($s(e,t.htmlparser2||qA),t))}Rn.domToReact=Lb;Rn.htmlToDOM=$s;Rn.attributesToProps=HA;Rn.Comment=fc.Comment;Rn.Element=fc.Element;Rn.ProcessingInstruction=fc.ProcessingInstruction;Rn.Text=fc.Text;var WA=Rn;Rn.default=Rn;const zr=Xo(WA);var Ka=zr.domToReact;zr.htmlToDOM;var Td=zr.attributesToProps;zr.Comment;zr.Element;zr.ProcessingInstruction;zr.Text;const Db=S.forwardRef(({children:e},t)=>d.jsx("div",{ref:t,className:"actionbar",children:e}));Db.displayName="ActionBar";const Fb=Db,$b=S.forwardRef(({type:e="success",className:t="",children:n,button:r,isDismissible:s=!1,isToast:i=!1,autoClose:o=!1,autoCloseDelay:l=3e3,onClose:a,onVisibilityChange:u},c)=>{const[f,p]=S.useState(!0),h=S.useRef(null),v=S.useCallback(()=>{p(!1),a==null||a()},[a]);S.useImperativeHandle(c,()=>({show:w,hide:v,...h.current})),S.useLayoutEffect(()=>{u==null||u(f)},[f,u]),S.useEffect(()=>{o&&f&&setTimeout(()=>{v()},l)},[o,l,v,f]);const w=()=>{p(!0)},b={success:{icon:d.jsx(JT,{}),classModifier:"alert-success"},warning:{icon:d.jsx(cT,{}),classModifier:"alert-warning"},info:{icon:d.jsx(zw,{}),classModifier:"alert-info"},danger:{icon:d.jsx(TT,{}),classModifier:"alert-danger"}},g={"is-dismissible":s,"is-toast ":i},m=K("alert gap-12",b[e].classModifier,g,t);return d.jsx(d.Fragment,{children:f?d.jsxs("div",{ref:h,className:m,role:"alert",children:[b[e].icon,d.jsx("div",{className:"alert-content small",children:n}),r&&d.jsx("div",{className:"ms-12",children:r}),s&&d.jsx("div",{className:"btn-close-container",children:d.jsx("button",{type:"button",className:"btn btn-close","data-bs-dismiss":"alert","aria-label":"Close",onClick:v})}),o&&d.jsx("div",{className:"alert-progress",style:{transform:"scaleX(0)"}})]}):null})});$b.displayName="Alert";const mr=$b,zb=S.forwardRef(({children:e,render:t,isFullscreen:n=!1},r)=>{const s=K("d-flex flex-wrap p-16 gap-8 border-bottom bg-white",{"justify-content-between":t,"mx-n16":!n,"z-3 top-0 start-0 end-0 position-fixed":n});return d.jsxs("div",{ref:r,className:s,children:[e,t?d.jsx("div",{className:"d-flex align-items-center ms-auto gap-8",children:t()}):null]})});zb.displayName="AppHeader";const Bb=zb;function Xh({appCode:e}){return sh({queryKey:["conf"],queryFn:async()=>await re.conf().getConf(e),suspense:!0})}function Vb(){return sh({queryKey:["session"],queryFn:async()=>await re.session().getSession(),suspense:!0})}const Yh=S.createContext(null);function Ub({children:e,params:t}){const n=t.app,{t:r}=se(),s=r(n),i=Vb(),o=Xh({appCode:n}),l=(o==null?void 0:o.isSuccess)&&(i==null?void 0:i.isSuccess);S.useEffect(()=>{var u,c;(c=document.querySelector("html"))==null||c.setAttribute("lang",((u=i==null?void 0:i.data)==null?void 0:u.currentLanguage)||"fr")},[i==null?void 0:i.data]),S.useEffect(()=>{document.title=`${s}`},[n,i.data,s]);const a=S.useMemo(()=>{var u,c,f,p,h,v;return{appCode:n,applications:(u=o==null?void 0:o.data)==null?void 0:u.applications,confQuery:o,currentApp:(c=o==null?void 0:o.data)==null?void 0:c.currentApp,currentLanguage:(f=i==null?void 0:i.data)==null?void 0:f.currentLanguage,init:l,sessionQuery:i,user:(p=i==null?void 0:i.data)==null?void 0:p.user,userDescription:(h=i==null?void 0:i.data)==null?void 0:h.userDescription,userProfile:(v=i==null?void 0:i.data)==null?void 0:v.userProfile}},[n,o,l,i]);return d.jsx(Yh.Provider,{value:a,children:e})}function Ne(){const e=S.useContext(Yh);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}const Jh=S.createContext(null);function Hb({children:e}){var t;const{appCode:n}=Ne(),r=Xh({appCode:n});S.useEffect(()=>{var i,o,l,a,u,c,f,p,h;const v=document.getElementById("favicon");v.href=`${(o=(i=r==null?void 0:r.data)==null?void 0:i.theme)==null?void 0:o.basePath}/img/illustrations/favicon.ico`;const w=(u=(a=(l=r==null?void 0:r.data)==null?void 0:l.theme)==null?void 0:a.bootstrapVersion)==null?void 0:u.split("-"),b=w?w[w.length-1]:void 0;[{data:"data-skin",value:(f=(c=r==null?void 0:r.data)==null?void 0:c.theme)==null?void 0:f.skinName},{data:"data-theme",value:(h=(p=r==null?void 0:r.data)==null?void 0:p.theme)==null?void 0:h.themeName},{data:"data-product",value:b}].forEach(m=>{var y;return(y=document.querySelector("html"))==null?void 0:y.setAttribute(m.data,m.value)})},[r==null?void 0:r.data]);const s=S.useMemo(()=>{var i;return{theme:(i=r==null?void 0:r.data)==null?void 0:i.theme}},[(t=r==null?void 0:r.data)==null?void 0:t.theme]);return d.jsx(Jh.Provider,{value:s,children:e})}function pc(){const e=S.useContext(Jh);if(!e)throw new Error("Cannot be used outside of OdeClientProvider");return e}function qb(){var e;const{sessionQuery:t}=Ne(),n=new Set;return(e=t==null?void 0:t.data)==null?void 0:e.bookmarkedApps.filter(s=>{const i=n.has(s.displayName);return n.add(s.displayName),!i})}function Xs(e){const[t,n]=S.useState();return S.useEffect(()=>{(async()=>{let r;typeof e=="string"?r=await re.rights().sessionHasWorkflowRight(e):await re.rights().sessionHasWorkflowRights(e),n(r)})()},[e]),t}const QA=()=>{const e=Xs("fr.openent.zimbra.controllers.ZimbraController|view"),t=Xs("fr.openent.zimbra.controllers.ZimbraController|preauth"),[n,r]=S.useState(0),[s,i]=S.useState(""),o=S.useCallback(async()=>{if(e)try{const a=await re.http().get("/zimbra/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});a.status!==200&&r(0),r(a.count)}catch{console.error("error"),r(0)}else try{const a=await re.http().get("/conversation/count/INBOX",{queryParams:{unread:!0,_:new Date().getTime()}});r(a.count)}catch{console.error("error"),r(0)}},[e]),l=S.useCallback(()=>{let a="";re.http().get("/userbook/preference/zimbra").then(u=>{try{u.preference&&JSON.parse(u.preference).modeExpert&&t?a="/zimbra/preauth":a=window.location.origin+"/zimbra/zimbra"}catch{a="/zimbra/zimbra"}}),i(a)},[t]);return S.useEffect(()=>{(async()=>{try{await o()}catch(a){console.error(a)}})(),l()},[l,o]),{messages:n,msgLink:s,zimbraWorkflow:e}},Wb=QA,S0=["mousedown","touchstart"];function Zh(e,t,n){const r=S.useRef();return S.useEffect(()=>{const s=i=>{const{target:o}=i??{};if(Array.isArray(n)){const l=(o==null?void 0:o.hasAttribute("data-ignore-outside-clicks"))||!document.body.contains(o)&&o.tagName!=="HTML";n.every(u=>!!u&&!i.composedPath().includes(u))&&!l&&e()}else r.current&&!r.current.contains(o)&&e()};return(t||S0).forEach(i=>{document.addEventListener(i,s)}),()=>{(t||S0).forEach(i=>{document.removeEventListener(i,s)})}},[r,e,n,t]),r}const Xa="top-right";function at(){return{success:(t,n)=>Ii.custom(d.jsx(mr,{type:"success",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??Xa}),error:(t,n)=>Ii.custom(d.jsx(mr,{type:"danger",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??Xa}),info:(t,n)=>Ii.custom(d.jsx(mr,{type:"info",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??Xa}),warning:(t,n)=>Ii.custom(d.jsx(mr,{type:"warning",isToast:!0,isDismissible:n==null?void 0:n.isDismissible,className:"mb-12",children:t}),{duration:n==null?void 0:n.duration,position:(n==null?void 0:n.position)??Xa}),loading:Ii.loading}}function em(){const[e,t]=S.useState(!1),n=S.useRef(null),r=()=>{t(!0)},s=()=>{t(!1)};return S.useEffect(()=>{const i=n.current;if(i)return i.addEventListener("mouseover",r),i.addEventListener("mouseout",s),()=>{i.removeEventListener("mouseover",r),i.removeEventListener("mouseout",s)}},[n]),[n,e]}function Qb({src:e,placeholder:t}){const[n,r]=S.useState(e||t),s=S.useCallback(()=>{r(t)},[t]);return S.useEffect(()=>{r(e)},[e]),{imgSrc:n,onError:s}}function Gb(e,t){const n=S.useCallback(({code:r})=>{t.includes(r)&&e()},[e,t]);S.useEffect(()=>(window.addEventListener("keydown",n),()=>{window.removeEventListener("keydown",n)}),[n])}function Kb(){const e=typeof document<"u",[t,n]=S.useState(()=>document.title);return S.useEffect(()=>{e&&n(document.title)},[e]),t}function tm(e=!1){const[t,n]=S.useState(e),r=S.useCallback(()=>{n(s=>!s)},[]);return[t,r]}function Xb(e,t){const[n,r]=S.useState(e);return S.useEffect(()=>{const s=setTimeout(()=>{r(e)},t||500);return()=>{clearTimeout(s)}},[e,t]),n}function Yb(){const e=S.useRef(null),t='button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';return S.useEffect(()=>{const n=e.current,r=n.querySelectorAll(t)[0],s=n.querySelectorAll(t),i=e&&(s==null?void 0:s[s.length-1]),o=l=>{l.key==="Tab"&&(l.shiftKey?document.activeElement===r&&(i.focus(),l.preventDefault()):document.activeElement===i&&(r.focus(),l.preventDefault()))};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}},[]),e}function Jb(){const e=document.querySelector("html");return()=>{e&&e.scrollIntoView()}}const GA=(e,t)=>{const[,n]=S.useState(!1),r=S.useCallback(o=>{o.preventDefault(),o.stopPropagation(),n(!0)},[]),s=o=>{o.preventDefault(),o.stopPropagation(),n(!1)};return{handleDragging:r,handleDragLeave:s,handleDrop:o=>{var l;s(o);const a=(l=o.dataTransfer)==null?void 0:l.files;t(a),e!=null&&e.current&&a&&(e.current.files=a)}}},Zb=GA;function e2({user:e,avatar:t}){const{t:n}=se(),r=Kb(),[s,i]=S.useState(!0),[o,l]=em(),a=S.useId(),u=S.useId(),c=t,f=e==null?void 0:e.username,p=n("welcome",{username:e==null?void 0:e.firstName}),h=qb(),v=Xs("net.atos.entng.community.controllers.CommunityController|view"),w=Xs("org.entcore.conversation.controllers.ConversationController|view"),b=Xs("fr.openent.searchengine.controllers.SearchEngineController|view"),g=S.useCallback(()=>{i(!s)},[s]),m=async()=>{await re.session().logout(),window.location.href="/auth/login"};return S.useMemo(()=>({title:r,bookmarkedApps:h,appsRef:o,isAppsHovered:l,popoverAppsId:a,popoverSearchId:u,userAvatar:c,userName:f,welcomeUser:p,communityWorkflow:v,conversationWorflow:w,searchWorkflow:b,isCollapsed:s,toggleCollapsedNav:g,handleLogout:m}),[o,h,v,w,l,s,a,u,b,r,g,c,f,p])}function t2(){const[e,t]=S.useState(!1);S.useEffect(()=>{n()},[]);const n=S.useCallback(async()=>{const r=await re.session().isAdml();t(r)},[]);return{isAdml:e}}function hc(){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(l){let a="";switch(a=(l==null?void 0:l.icon)!==void 0?l==null?void 0:l.icon.trim().toLowerCase():"placeholder",a&&a.length>0?a.endsWith("-large")&&(a=a.replace("-large","")):a=(l==null?void 0:l.displayName)!==void 0?l==null?void 0:l.displayName.trim().toLowerCase():"",a){case"admin.title":a="admin";break;case"banques des savoirs":a="banquesavoir";break;case"collaborativewall":a="collaborative-wall";break;case"communautés":a="community";break;case"directory.user":a="userbook";break;case"emploi du temps":a="edt";break;case"messagerie":a="conversation";break;case"news":a="actualites";break;case"homeworks":case"cahier de texte":a="cahier-de-texte";break;case"diary":case"cahier de texte 2d":a="cahier-textes";break}return a}function n(l){return l&&(l.startsWith("/")||l.startsWith("http://")||l.startsWith("https://"))}function r(l){const a=t(l);return a?`color-app-${a}`:"color-app-placeholder"}function s(l){const a=t(l);return a?`bg-app-${a}`:"bg-app-placeholder"}function i(l){const a=t(l);return a?`bg-light-${a}`:"bg-light-placeholder"}function o(l){return e[l.platformConf.name]}return{getIconClass:r,getBackgroundIconClass:s,getBackgroundLightIconClass:i,getIconCode:t,getWidgetIconClass:o,isIconUrl:n}}function ms(){return["/assets/themes/edifice-bootstrap/images","/assets/themes/edifice-bootstrap/icons","/assets/themes/edifice-bootstrap/fonts"]}function ha(){const{user:e,userDescription:t,userProfile:n}=Ne(),{theme:r}=pc();function s(){let i=t==null?void 0:t.picture;return(!i||i==="no-avatar.jpg"||i==="no-avatar.svg")&&(i=`${r==null?void 0:r.basePath}/img/illustrations/no-avatar.svg`),i}return{user:{...e,type:n},avatar:s(),userDescription:t}}function n2(){const[e,t]=S.useState("pending"),{currentApp:n}=Ne();S.useEffect(()=>{r()},[]);const r=async()=>{if(!n){t("[Xiti] Error, currentApp is not defined.");return}try{await re.analytics().trackPageLoad(window.location.pathname,n),console.info(`[Xiti] Success tracking page ${window.location.pathname}`),t(`[Xiti] Success tracking page ${window.location.pathname}`)}catch(s){console.error("[Xiti] Error Tracking Page Load",s),t(`[Xiti] Error Tracking Page Load: ${s}`)}};return{xitiStatus:e}}const r2=S.forwardRef(({src:e,alt:t,imgPlaceholder:n,ratio:r,objectFit:s,className:i,...o},l)=>{const[a]=ms(),u=n??`${a}/common/image-placeholder.png`,{imgSrc:c,onError:f}=Qb({src:e,placeholder:u}),p={"ratio ratio-1x1":r==="1","ratio ratio-4x3":r==="4","ratio ratio-16x9":r==="16","ratio ratio-21x9":r==="21"},h={"object-fit-contain":s==="contain","object-fit-cover":s==="cover","object-fit-fill":s==="fill","object-fit-scale":s==="scale","object-fit-none":s==="none"},v=K({...p}),w=K({...h},i),b=d.jsx("img",{alt:t,onError:f,ref:l,src:c,className:w,...o});return r?d.jsx("div",{className:v,children:b}):b});r2.displayName="Image";const gs=r2,s2=S.forwardRef(({app:e,size:t="24",iconFit:n="contain",variant:r="square"},s)=>{const{isIconUrl:i,getIconCode:o}=hc(),[,l]=ms(),a=r==="square",u=r==="rounded",c=r==="circle",f=n==="contain",p=n==="ratio",h={"icon-xs":t==="24","icon-sm":t==="40","icon-md":t==="48","icon-lg":t==="80","icon-xl":t==="160"},v={square:a,rounded:u,"rounded-circle":c},w={"icon-contain":f,"icon-ratio":p},b=(e==null?void 0:e.icon)!==void 0?e.icon:"placeholder",g=(e==null?void 0:e.displayName)!==void 0?e.displayName:"",m=e?o(e):"",y=i(b),x=m||"placeholder",C=K("app-icon",{...h,...v,...w,[`bg-light-${x}`]:x&&!f,[`color-app-${x}`]:x});return y?d.jsx(gs,{src:b,alt:g,objectFit:"contain",width:t,height:t,className:"h-full"}):d.jsx("div",{className:C,style:{width:t+"px",height:t+"px"},children:d.jsx("svg",{ref:s,width:t,height:t,role:"img",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:d.jsx("use",{xlinkHref:`${l}/apps.svg#${x}`})})})});s2.displayName="AppIcon";const Rr=s2,i2=S.forwardRef(({variant:e="square",size:t="md",alt:n,src:r,imgPlaceholder:s,className:i,...o},l)=>{const[a]=ms(),u=s||`${a}/avatar/no-avatar.svg`,w=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"}},i);return d.jsx("div",{ref:l,className:w,children:d.jsx(gs,{src:r||u,alt:n,imgPlaceholder:u,...o})})});i2.displayName="Avatar";const Nr=i2,o2=S.forwardRef(({children:e,className:t,...n},r)=>{const s=K("breadcrumb-item",t);return d.jsx("li",{ref:r,className:s,...n,children:e})});o2.displayName="BreadcrumbItem";const kd=o2,a2=S.forwardRef(({children:e,className:t},n)=>{const r=K("breadcrumb d-flex flex-nowrap align-items-center mb-0",t);return d.jsx("ol",{ref:n,className:r,children:e})});a2.displayName="BreadcrumbList";const KA=a2,l2=S.forwardRef(({children:e,app:t,className:n},r)=>{const{t:s}=se(),{getIconClass:i}=hc(),o=K("d-flex align-items-center mb-0",i(t),n),l={"--edifice-breadcrumb-divider":"-"};return d.jsx("nav",{ref:r,className:o,"aria-label":s("breadcrumb"),style:l,children:e})});l2.displayName="BreadcrumbNav";const XA=l2,u2=S.forwardRef((e,t)=>{const{isLoading:n,loadingIcon:r,loadingPosition:s="left",children:i,...o}=e,l=()=>{let u;return r?u=r:u=d.jsx(LT,{...o,"aria-label":"Loading"}),u},a=K("loading",{"is-loading":n});return d.jsxs("div",{className:a,role:"status",ref:t,children:[(!s||s==="left")&&l(),i,s==="right"&&l()]})});u2.displayName="Loading";const nm=u2,c2=S.forwardRef(({color:e="primary",type:t="button",size:n="md",children:r,isLoading:s,loadingIcon:i,loadingPosition:o,leftIcon:l,rightIcon:a,className:u,variant:c="filled",...f},p)=>{const h=K("btn",{[`btn-filled btn-${e}`]:c==="filled",[`btn-${c}-${e}`]:c==="outline"||c==="ghost","btn-icon":!r,"btn-loading":s,"btn-lg":n==="lg","btn-sm":n==="sm"},u);return d.jsx("button",{ref:p,className:h,type:t,...f,children:s?d.jsx(nm,{isLoading:!0,loadingIcon:i,loadingPosition:o,children:r}):d.jsxs("span",{children:[l,r,a]})})});c2.displayName="Button";const Pe=c2,d2=S.forwardRef(({icon:e,className:t,...n},r)=>{const s={...n,className:K("btn-icon btn-sm",t)};return d.jsx(Pe,{ref:r,...s,children:e})});d2.displayName="IconButton";const Xn=d2,f2=S.forwardRef(({icon:e=d.jsx(XT,{}),onClick:t,...n},r)=>{const s=K("btn-search");return d.jsx(Xn,{ref:r,className:s,icon:e,...n,onClick:t})});f2.displayName="SearchButton";const rm=f2,p2=S.forwardRef(({level:e="h1",headingStyle:t="h1",children:n,className:r,...s},i)=>{const o=K(t,r);return d.jsx(e,{ref:i,className:o,...s,children:n})});p2.displayName="Heading";const Gt=p2,h2=S.forwardRef(({app:e,name:t},n)=>{const{t:r}=se();return d.jsx(XA,{app:e,ref:n,className:"mw-100",children:d.jsx(KA,{className:"gap-12 mw-100",children:t?d.jsxs(d.Fragment,{children:[d.jsx(kd,{children:d.jsxs("a",{href:e==null?void 0:e.address,className:"d-flex",children:[d.jsx(Xn,{variant:"ghost",color:"tertiary",icon:d.jsx(UT,{}),"aria-label":r(e==null?void 0:e.displayName)}),d.jsx(Rr,{app:e,size:"40"})]})}),d.jsx(kd,{className:"text-truncate",children:d.jsx(Gt,{level:"h1",headingStyle:"h3",className:"text-truncate",children:t})})]}):d.jsxs(kd,{className:"gap-12 d-flex align-items-center",children:[d.jsx(Rr,{app:e,size:"40"}),d.jsx(Gt,{level:"h1",headingStyle:"h3",className:"d-none d-md-flex",children:r(e==null?void 0:e.displayName)})]})})})});h2.displayName="Breadcrumb";const m2=h2,g2=({children:e,space:t=null,flexDirection:n="row"})=>{const r=K("card-body",{"p-8":t==="8","gap-8":t==="8","align-items-start":n==="column","flex-column":n==="column"});return d.jsx("div",{className:r,children:e})};g2.displayName="Card.Body";const YA=g2,sm=S.createContext(null);sm.displayName="CardContext";const v2=()=>{const e=S.useContext(sm);if(!e)throw new Error("Cannot be rendered outside the Card component");return e},y2=({children:e})=>d.jsx("div",{className:"card-footer gap-16",children:e});y2.displayName="Card.Footer";const JA=y2,w2=()=>{const{isSelectable:e,isClickable:t,onClick:n,onSelect:r}=v2();return d.jsxs("div",{className:"card-header",children:[e?d.jsx(Xn,{"aria-label":"Open Action Bar",className:"z-3 bg-white",color:"secondary",icon:d.jsx(FT,{}),onClick:r,variant:"ghost"}):null,t?d.jsx("button",{onClick:n,className:"position-absolute bottom-0 end-0 top-0 start-0 opacity-0 z-1 w-100","aria-label":"Open resource"}):null]})};w2.displayName="Card.Header";const ZA=w2,x2=({imageSrc:e,className:t,variant:n="medium"})=>{const{app:r}=v2(),s=n==="landscape"?{width:"100%",height:"auto"}:null;return d.jsx("div",{className:K("card-image",n),children:e?d.jsx(gs,{alt:"",src:e,objectFit:"cover",className:K("h-full",t)}):d.jsx(Rr,{app:r,iconFit:"ratio",size:"80",variant:"rounded",...s})})};x2.displayName="Card.Image";const eI=x2,b2=({children:e,className:t})=>{const n=K("card-text small text-break text-truncate text-truncate-1",t);return d.jsx("p",{className:n,children:e})};b2.displayName="Card.Text";const tI=b2,S2=({children:e,className:t})=>{const n=K("card-title body text-break text-truncate text-truncate-1",t);return d.jsx("h3",{className:n,children:d.jsx("strong",{children:e})})};S2.displayName="Card.Title";const nI=S2,C2=({userSrc:e,creatorName:t})=>e?d.jsx(Nr,{alt:t||"",size:"xs",src:e,variant:"circle",width:"24",height:"24"}):d.jsx(Fh,{});C2.displayName="Card.User";const rI=C2,E2=S.forwardRef(({app:e,isSelectable:t=!0,isClickable:n=!0,isSelected:r=!1,onClick:s,onSelect:i,children:o,className:l},a)=>{const{getIconCode:u}=hc(),c=e?u(e):"placeholder",f=S.useMemo(()=>({app:e,appCode:c,isSelectable:t,isClickable:n,onClick:s,onSelect:i}),[e,c,t,n,s,i]);return d.jsx(sm.Provider,{value:f,children:d.jsxs("div",{ref:a,className:K("card",{"is-selected":r},l),children:[d.jsx(T2.Header,{}),typeof o=="function"?o(c):o]})})});E2.displayName="Card";const T2=Object.assign(E2,{Title:nI,Text:tI,Image:eI,Body:YA,User:rI,Footer:JA,Header:ZA}),wn=T2,k2=S.forwardRef(({label:e,disabled:t=!1,checked:n=!1,indeterminate:r=!1,...s},i)=>{const o=S.useRef(null);S.useImperativeHandle(i,()=>({...o.current})),S.useEffect(()=>{o.current.indeterminate=r},[o,r]);const l=S.useId(),a={type:"checkbox",checked:n,disabled:t,ref:o,className:K(s.className,"form-check-input c-pointer"),id:l},u={...s,...a};return d.jsxs("div",{className:"form-check d-flex align-items-center gap-8",children:[d.jsx("input",{...u}),e&&d.jsx("label",{className:"form-check-label",htmlFor:u.id,children:e})]})});k2.displayName="Checkbox";const mc=k2,P2=S.createContext(null),vi=()=>{const e=S.useContext(P2);if(!e)throw new Error("Cannot be rendered outside the Dropdown Component");return e},j2=S.createContext(null),gc=()=>{const e=S.useContext(j2);if(!e)throw new Error("Cannot be rendered outside the FormControl component");return e},O2=({children:e})=>{const{status:t}=gc(),n=K("form-text",{"is-invalid":t==="invalid",valid:t==="valid"});return d.jsx("p",{className:n,children:d.jsx("em",{children:e})})};O2.displayName="Text";const R2=O2,N2=S.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",type:r="text",className:s,...i},o)=>{const{id:l,isRequired:a,isReadOnly:u,status:c}=gc(),f=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},s);return d.jsx("input",{ref:o,id:l,className:f,type:r,placeholder:t,required:a,readOnly:u,...i})});N2.displayName="Input";const Ar=N2,A2=S.forwardRef(({leftIcon:e,optionalText:t="Optional",requiredText:n="*",children:r,className:s},i)=>{const{id:o,isOptional:l,isRequired:a}=gc(),u=K("form-label",{"has-icon":e},s),c=l&&!a,f=a&&!l;return S.useEffect(()=>{if(l&&a)throw new Error("Cannot be optional and required at the same time")},[l,a]),d.jsxs("label",{ref:i,htmlFor:o,className:u,children:[e,r,c&&d.jsxs("em",{className:"optional",children:["- ",t]}),f&&d.jsx("em",{className:"required",children:n})]})});A2.displayName="Label";const es=A2,I2=S.forwardRef(({children:e,className:t,id:n,isOptional:r,isReadOnly:s,isRequired:i,status:o,...l},a)=>{const u=S.useMemo(()=>({id:n,isOptional:r,isRequired:i,isReadOnly:s,status:o}),[n,r,s,i,o]);return d.jsx(j2.Provider,{value:u,children:d.jsx("div",{ref:a,className:t,...l,children:e})})}),sI=Object.assign(I2,{Label:es,Input:Ar,Text:R2});I2.displayName="FormControl";const Ue=sI,iI=({placeholder:e,value:t="",handleSearchInputChange:n})=>{const{triggerProps:r,itemProps:s,setVisible:i}=vi(),o={...r,role:"combobox",onClick:()=>{t.length>2&&i(!0)},onChange:n};return S.useEffect(()=>{i(t.length>2)},[i,t]),d.jsx(Ue,{className:"d-flex align-items-center",id:"search",children:d.jsx(Ar,{...o,className:"max-w-512",noValidationIcon:!0,placeholder:e,size:"md",type:"search",onKeyDown:s.onMenuItemKeyDown})})},oI=iI,_2=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=vi(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:a}=s,u=S.useId(),c=n.includes(t),f={value:t,model:n,checked:c,readOnly:!0},p=K("dropdown-item c-pointer",{focus:o===u});return d.jsx("div",{id:u,ref:h=>i.current[u]=h,role:"menuitemcheckbox","aria-checked":c,onMouseUp:()=>r(t),onKeyDown:h=>l(h,()=>r(t)),onMouseEnter:a,tabIndex:c?0:-1,className:p,children:d.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,d.jsx(mc,{...f})]})})};_2.displayName="Dropdown.CheckboxItem";const aI=_2,M2=({type:e="action",icon:t,onClick:n,children:r,...s})=>{const{itemProps:i,itemRefs:o,isFocused:l}=vi(),{onMenuItemKeyDown:a,onMenuItemMouseEnter:u,onMenuItemClick:c}=i,f=()=>{n==null||n(),e==="action"&&c()},p=S.useId(),h=K("dropdown-item",{focus:l===p});return d.jsx("div",{id:p,role:"menuitem",ref:v=>o.current[p]=v,tabIndex:l===p?0:-1,className:h,"aria-current":l===p,onClick:f,onMouseEnter:u,onKeyDown:v=>a(v,n),...s,children:d.jsxs("div",{className:"d-flex gap-8 align-items-center",children:[t,r]})})};M2.displayName="Dropdown.Item";const lI=M2,L2=S.forwardRef(({children:e,block:t,...n},r)=>{const{menuProps:s,visible:i}=vi(),{className:o,...l}=s,a={...l,...n},u=K({"w-100":t},o);return i?d.jsx("div",{ref:r,className:u,...a,children:e}):null});L2.displayName="Dropdown.Menu";const uI=L2,D2=S.forwardRef(({label:e,children:t},n)=>d.jsxs("div",{ref:n,role:"group",children:[d.jsx("span",{className:"small px-4",children:d.jsx("strong",{children:e})}),t]}));D2.displayName="Dropdown.MenuGroup";const cI=D2,F2=S.forwardRef(({model:e,icon:t,label:n=!1,disabled:r=!1,checked:s,...i},o)=>{const l=S.useId(),a={type:"radio",checked:s,disabled:r,ref:o,className:K(i.className,"form-check-input c-pointer",t&&"d-none"),id:l},u={...i,...a};return d.jsxs("div",{className:K("form-check d-flex align-items-center gap-8",t&&"ps-0"),children:[d.jsx("input",{...u}),t&&d.jsx("label",{htmlFor:u.id,className:K("c-pointer",e!==i.value&&"text-muted"),children:t}),!t&&n&&d.jsx("label",{className:"form-check-label",htmlFor:u.id,children:n})]})});F2.displayName="Radio";const Eu=F2,$2=({children:e,value:t,model:n,onChange:r})=>{const{itemProps:s,itemRefs:i,isFocused:o}=vi(),{onMenuItemKeyDown:l,onMenuItemMouseEnter:a}=s,u=S.useId(),f={value:t,model:n,checked:t===n,readOnly:!0},p=K("dropdown-item c-pointer",{focus:o===u});return d.jsx("div",{id:u,ref:h=>i.current[u]=h,role:"menuitemradio","aria-checked":t===n,onMouseUp:()=>r(t),onKeyDown:h=>l(h,()=>r(t)),onMouseEnter:a,tabIndex:t===n?0:-1,className:p,children:d.jsxs("div",{className:"d-flex gap-8 align-items-center justify-content-between position-relative",children:[e,d.jsx(Eu,{...f,className:"position-absolute start-0 end-0 top-0 bottom-0 opacity-0"})]})})};$2.displayName="Dropdown.RadioItem";const dI=$2,z2=()=>d.jsx("div",{role:"separator",className:"px-4",children:d.jsx("hr",{className:"m-0"})});z2.displayName="Dropdown.Separator";const fI=z2,B2=S.forwardRef(({label:e,icon:t,variant:n,disabled:r=!1,size:s,badgeContent:i,...o},l)=>{const{triggerProps:a,block:u}=vi(),{className:c,...f}=a,p={...f,...o},h=K(s,n,{"w-100":u},c);return d.jsxs("button",{ref:l,className:h,disabled:r,...p,children:[t||null,e,i?d.jsx("span",{className:"badge text-bg-secondary rounded-pill",children:i}):d.jsx(WT,{width:16,height:16,className:"dropdown-toggle-caret"})]})});B2.displayName="Dropdown.Trigger";const pI=B2,hI=e=>{const t=S.useId(),[n,r]=S.useState(!1),[s,i]=S.useState(-1),[o,l]=S.useState(null),{refs:a,floatingStyles:u}=qk({placement:e,open:n,onOpenChange:r,whileElementsMounted:Ak,middleware:[mk(4),gk({apply({rects:N,elements:R}){Object.assign(R.floating.style,{minWidth:`${N.reference.width}px`})}}),pk({padding:0})]}),c=S.useRef(null),f=S.useRef(null),p=S.useRef({});S.useEffect(()=>{n?c.current&&(c.current.focus(),i(0)):(i(-1),p.current={})},[n]),S.useEffect(()=>{if(s!==-1){const N=Object.values(p.current)[s];if(N){const R=N.getAttribute("id");l(R),N.focus()}}},[s]);const h=()=>{const R=Object.values(p.current).length;i(I=>(I+1)%R)},v=()=>{const R=Object.values(p.current).length;i(I=>(I-1+R)%R)},w=()=>{i(0)},b=()=>{const R=Object.values(p.current).length;i(R-1)},g=S.useCallback(()=>{r(!0)},[]),m=S.useCallback(()=>{f.current&&(f.current.focus(),r(!1))},[]),y=(N,R)=>{N&&(R.stopPropagation(),R.preventDefault())},x=S.useCallback(N=>{let R=!1;switch(N.code){case" ":case"Space":case"Enter":case"ArrowDown":case"Down":g(),R=!0;break;case"Esc":case"Escape":m(),R=!0;break;case"Up":case"ArrowUp":g(),R=!0;break}y(R,N)},[m,g]),C=N=>{const I=Object.values(p.current).findIndex(L=>L.id===N.currentTarget.getAttribute("id"));i(I)},T=S.useCallback((N,R)=>{let I=!1;if(N.shiftKey)N.key==="Tab"&&(m(),I=!0);else{switch(N.code){case"Escape":m();break;case" ":case"Space":case"Enter":s!==-1&&(Object.values(p.current)[s].getAttribute("role")==="menuitem"&&f.current&&(f.current.focus(),r(!1)),R==null||R()),I=!0;break;case"ArrowDown":case"Down":h(),I=!0;break;case"ArrowUp":case"Up":v(),I=!0;break;case"Home":w(),I=!0;break;case"End":b(),I=!0;break}y(I,N)}},[s,m]),E=S.useCallback(N=>{r(n!==!0),N.stopPropagation(),N.preventDefault()},[n]),j=S.useCallback(()=>{m()},[m]);function P(N,...R){R.forEach(I=>{typeof I=="function"?I(N):I!=null&&(I.current=N)})}function M(...N){return R=>{P(R,...N)}}return{isFocused:o,visible:n,itemRefs:p,triggerRef:f,menuRef:c,triggerProps:{ref:M(f,a.setReference),id:`dropdown-toggle-${t}`,"aria-haspopup":"menu","aria-controls":`dropdown-${t}`,"aria-expanded":!!n,className:`dropdown-toggle ${n?"selected":""}`,onClick:E,onKeyDown:x,"aria-activedescendant":o},menuProps:{ref:M(c,a.setFloating),className:"dropdown-menu bg-white shadow rounded-4 p-8","aria-labelledby":`dropdown-toggle-${t}`,style:{...u}},itemProps:{onMenuItemMouseEnter:C,onMenuItemClick:j,onMenuItemKeyDown:T},setVisible:r}},V2=hI,U2=({children:e,block:t,overflow:n=!0,placement:r="bottom-start"})=>{const{visible:s,isFocused:i,triggerProps:o,menuProps:l,itemProps:a,itemRefs:u,setVisible:c}=V2(r),f=Zh(()=>c(!1)),p=S.useMemo(()=>({visible:s,isFocused:i,triggerProps:o,menuProps:l,itemProps:a,itemRefs:u,block:t,setVisible:c}),[s,i,o,l,a,u,t,c]),h=K("dropdown",{"w-100":t,overflow:n});return d.jsx(P2.Provider,{value:p,children:d.jsx("div",{ref:f,className:h,children:typeof e=="function"?e(o,u):e})})};U2.displayName="Dropdown";const mI=Object.assign(U2,{Trigger:pI,Menu:uI,Item:lI,Separator:fI,CheckboxItem:aI,RadioItem:dI,MenuGroup:cI}),be=mI,vc=({onSearchResultsChange:e,onSearchInputChange:t,options:n,value:r,isLoading:s,noResult:i,placeholder:o})=>{const{t:l}=se(),[a,u]=S.useState([]);S.useEffect(()=>{e(a)},[a]);const c=p=>{u([p])},f=()=>s?d.jsxs("div",{className:"d-flex align-items-center p-4",children:[d.jsx(nm,{isLoading:s}),d.jsx("span",{className:"ps-4",children:l("explorer.search.pending")})]}):i?d.jsx("div",{className:"p-4",children:l("portal.no.result")}):n.map((p,h)=>d.jsxs(S.Fragment,{children:[d.jsx(be.Item,{type:"select",onClick:()=>c(p.value),children:p.label}),h<n.length-1&&d.jsx(be.Separator,{})]},h));return d.jsxs(be,{block:!0,children:[d.jsx(vc.Trigger,{placeholder:o,handleSearchInputChange:t,value:r}),d.jsx(be.Menu,{children:f()})]})};vc.Trigger=oI;vc.displayName="Combobox";const H2=vc,q2=({imageSrc:e,imageAlt:t="",title:n,text:r})=>d.jsxs("div",{className:"emptyscreen",children:[e&&d.jsx("div",{className:"emptyscreen-image mb-12",children:d.jsx("img",{className:"mx-auto",src:e,alt:t,width:"250",height:"250"})}),n&&d.jsx(Gt,{level:"h2",headingStyle:"h2",className:"text-secondary mb-8",children:n}),r&&d.jsx("div",{className:"text",children:r})]});q2.displayName="EmptyScreen";const gI=q2,Ys=({children:e,className:t,...n})=>{const r=K("grid",t);return d.jsx("div",{className:r,...n,children:e})},im=({sm:e,md:t,lg:n,xl:r,children:s,className:i,as:o,...l})=>{const a=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},i);return d.jsx(a,{className:u,...l,children:s})};Ys.displayName="Grid";im.displayName="Grid.Col";Ys.Col=im;const W2=S.forwardRef(({label:e,addButtonLabel:t="Add image",deleteButtonLabel:n="Delete image",src:r,className:s,app:i,onUploadImage:o,onDeleteImage:l},a)=>{const u=S.useRef(null),[c,f]=S.useState(r||""),p=x=>{f("");const C=x==null?void 0:x[0];C&&(f(URL.createObjectURL(C)),o(C))},h=()=>{var x;(x=u.current)==null||x.click()},v=()=>{u.current&&(u.current.value=""),f(""),l()},w=x=>{p(x.target.files)},b=K("image-input",s),{handleDragging:g,handleDragLeave:m,handleDrop:y}=Zb(u,p);return d.jsxs(Ue,{id:"image-input",className:b,onDragEnter:g,onDragOver:g,onDragLeave:m,onDrop:y,ref:a,children:[d.jsxs("div",{className:"image-input-actions gap-8",children:[d.jsx(Xn,{"aria-label":t,color:"tertiary",icon:d.jsx(CT,{}),onClick:h,type:"button",variant:"ghost"}),d.jsx(Xn,{"aria-label":n,color:"danger",disabled:!c,icon:d.jsx($w,{width:"20",height:"20"}),onClick:v,type:"button",variant:"ghost"})]}),d.jsxs(Ue.Label,{children:[d.jsx("span",{className:"visually-hidden",children:e}),d.jsx(Ar,{accept:"image/*",hidden:!0,onChange:w,ref:u,size:"sm",type:"file"}),c?d.jsx(Nr,{alt:"",src:c,size:"xl"}):d.jsx(Rr,{app:i,iconFit:"ratio",size:"160",variant:"rounded"})]})]})});W2.displayName="ImagePicker";const om=W2,Q2=S.forwardRef(({text:e,textButton:t,src:n,alt:r,url:s},i)=>d.jsx(d.Fragment,{children:d.jsxs("div",{ref:i,className:"p-16",children:[d.jsx(gs,{width:"270",height:"140",loading:"lazy",className:"rounded",src:n,alt:r}),d.jsx("p",{className:"m-8",children:e}),d.jsx("a",{href:s,target:"_blank",rel:"noreferrer",children:d.jsx(Pe,{rightIcon:d.jsx(hT,{}),className:"py-0 px-8",variant:"ghost",color:"primary",children:t})})]})}));Q2.displayName="Library";const vI=Q2,G2=S.forwardRef(({position:e=!0},t)=>{const[n]=ms(),r=`${n}/loading/screen-loading.gif`,s=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 d.jsxs(d.Fragment,{children:[d.jsx("div",{ref:t,className:s,children:d.jsx("div",{className:"bg-white rounded-circle mx-auto",children:d.jsx("img",{src:r,alt:"loading"})})}),!e&&d.jsx("div",{className:"modal-backdrop fade show"})]})});G2.displayName="LoadingScreen";const et=G2,K2=S.forwardRef(({src:e,is1d:t,translate:n="Retour accueil"},r)=>{const s=K("navbar-brand d-none d-md-block"),i=`logo ${t?"ONE":"NEO"}`;return d.jsx("a",{ref:r,className:s,href:"/timeline/timeline","aria-label":n,children:d.jsx("img",{className:"logo",src:e,alt:i,width:"300",height:"52"})})});K2.displayName="Logo";const ip=K2,am=S.createContext({ariaLabelId:"",ariaDescriptionId:"",focusId:""});am.displayName="ModalContext";const X2=()=>{const e=S.useContext(am);if(!e)throw new Error("Cannot be rendered outside the Modal component");return e},Y2=e=>{const{ariaDescriptionId:t}=X2(),{children:n,className:r}=e,s=K("modal-body",r);return d.jsx("div",{id:t,className:s,children:n})};Y2.displayName="Modal.Body";const yI=Y2,J2=e=>d.jsx("div",{className:"modal-footer",children:e.children});J2.displayName="Modal.Footer";const wI=J2,Z2=e=>{const{onModalClose:t,children:n}=e,{ariaLabelId:r,focusId:s}=X2(),i=S.useRef(null);return S.useEffect(()=>{var o;s||(o=i.current)==null||o.focus()},[s]),d.jsxs("div",{className:"modal-header",children:[d.jsx("h2",{id:r,className:"modal-title",tabIndex:-1,children:n}),d.jsx(Xn,{ref:i,"aria-label":"Close",color:"tertiary",icon:d.jsx(Fw,{}),type:"button",variant:"ghost",title:"Delete",onClick:t,className:"btn-close"})]})};Z2.displayName="Modal.Header";const xI=Z2,eS=e=>d.jsx("p",{className:"modal-subtitle",children:e.children});eS.displayName="Modal.Subtitle";const bI=eS,tS=S.forwardRef((e,t)=>{const{id:n,isOpen:r,onModalClose:s,size:i="md",viewport:o=!1,scrollable:l=!1,focusId:a,children:u}=e,c=`aria_label_${n}`,f=`aria_desc_${n}`,p=Zh(s),h=Yb();Gb(s,["Escape"]),S.useEffect(()=>{if(r&&(document.body.style.overflow="hidden",a)){const m=document.getElementById(a);m==null||m.focus()}return()=>{document.body.style.overflow=""}},[a,r]);const v=K("modal fade",{"show d-block":r,"modal-scrollable":l,viewport:o,[`modal-${i}`]:i}),w=K("modal-dialog"),b={ariaLabelId:c,ariaDescriptionId:f,focusId:a},g=Rh(r,{from:{x:-50,opacity:0},enter:{x:0,opacity:1},leave:{x:50,opacity:0}});return d.jsx(am.Provider,{value:b,children:g((m,y)=>d.jsxs(d.Fragment,{children:[y&&d.jsx(vu.div,{id:n,ref:t,role:"dialog","aria-modal":"true","aria-labelledby":c,"aria-describedby":f,className:v,style:m,tabIndex:-1,children:d.jsx("div",{id:`${n}_ref`,ref:x=>{p.current=x,y&&(h.current=x)},className:w,children:d.jsx("div",{className:"modal-content",children:u})})}),y&&d.jsx(vu.div,{className:"modal-backdrop fade show",style:{opacity:.65}})]}))})}),SI=Object.assign(tS,{Header:xI,Subtitle:bI,Body:yI,Footer:wI});tS.displayName="Modal";const me=SI,CI=({children:e,className:t})=>{const n=K("popover-header",t);return d.jsx("div",{className:n,children:e})},nS=({children:e,className:t})=>{const n=K("popover-body",t);return d.jsx("div",{className:n,children:e})},rS=({children:e,className:t})=>{const n=K("popover-footer p-8",t);return d.jsx("div",{className:n,children:e})},yc=S.forwardRef(({children:e,className:t,id:n,isVisible:r,...s},i)=>{const o=K("popover d-block position-absolute top-100 start-50 translate-middle-x",t);return Rh(r,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:{duration:0}})((a,u)=>u&&d.jsx(vu.div,{ref:i,"aria-labelledby":n,className:o,role:"tooltip",style:a,...s,children:e}))});yc.displayName="Popover";const sS=e=>d.jsx(be.Trigger,{...e,"aria-haspopup":"listbox",role:"combobox"});sS.displayName="SelectTrigger";const EI=sS,iS=({icon:e,options:t,overflow:n,block:r,variant:s,size:i,disabled:o,placeholderOption:l,onValueChange:a})=>{const[u,c]=S.useState(),{t:f}=se();S.useEffect(()=>{if(u){const h=typeof u=="object"?u.value:u;a==null||a(h)}},[u]);const p=typeof u=="object"?u.label:u;return d.jsxs(be,{overflow:n,block:r,children:[d.jsx(EI,{icon:e,label:f(p||l),variant:s,size:i,disabled:o}),d.jsx(be.Menu,{role:"listbox",children:t==null?void 0:t.map(h=>{const v=typeof h=="object"?h.value:h,w=typeof h=="object"?h.label:h;return d.jsx(be.Item,{onClick:()=>c(h),children:w},v)})})]})};iS.displayName="Select";const lm=iS,TI=({children:e,message:t,icon:n=null,placement:r="auto"})=>{const[s,i]=S.useState(null),[o,l]=S.useState(null),[a,u]=S.useState(null),{styles:c,attributes:f}=hO(s,o,{placement:r,modifiers:[{name:"arrow",options:{element:a}}]}),[p,h]=S.useState(!1);return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"d-inline-block position-relative z-2",ref:i,onMouseEnter:()=>{h(!0)},onMouseLeave:()=>{h(!1)},children:e}),p&&d.jsxs("div",{className:K("tooltip d-block show mb-12","bs-tooltip-auto"),ref:l,style:c.popper,...f.popper,children:[d.jsxs("div",{className:"tooltip-inner shadow-hover d-flex gap-8 align-items-center",children:[n&&n,d.jsx("div",{children:t})]}),d.jsx("div",{className:"tooltip-arrow",ref:u,style:c.arrow})]})]})},Tu=TI,oS=S.forwardRef(({noValidationIcon:e,placeholder:t,size:n="md",height:r="md",className:s,...i},o)=>{const{id:l,isRequired:a,isReadOnly:u,status:c}=gc(),f=K({"form-control":!u,"form-control-lg":n==="lg","form-control-sm":n==="sm","textarea-height-lg":r==="lg","textarea-height-md":r==="md","textarea-height-sm":r==="sm","is-invalid":c==="invalid","is-valid":c==="valid","form-control-plaintext":u,"no-validation-icon":e},s);return d.jsx("textarea",{ref:o,id:l,className:f,placeholder:t,required:a,readOnly:u,...i})});oS.displayName="TextArea";const um=oS;function kI(e,t,n,r,s,i,o,l,a){const u=b=>{b.preventDefault(),s==null||s(e),b.stopPropagation()},c=b=>{(b.code==="Enter"||b.code==="Space")&&(b.preventDefault(),s==null||s(e),b.stopPropagation())},f=()=>{r(!n),n?i==null||i(e):o==null||o(e)};return{handleItemClick:u,handleItemKeyDown:c,handleItemFoldUnfoldClick:b=>{b.preventDefault(),f(),b.stopPropagation()},handleItemFoldUnfoldKeyDown:b=>{(b.code==="Enter"||b.code==="Space")&&(b.preventDefault(),f(),b.stopPropagation())},handleItemFocus:b=>{b.preventDefault(),l==null||l(e)},handleItemBlur:b=>{b.preventDefault(),a==null||a(e)}}}const aS=e=>{const{nodeId:t,label:n,children:r,section:s,selected:i,onItemSelect:o,onItemFold:l,onItemUnfold:a,onItemFocus:u,onItemBlur:c,selectedNodesIds:f}=e,[p,h]=S.useState(!1),{handleItemClick:v,handleItemKeyDown:w,handleItemFoldUnfoldClick:b,handleItemFoldUnfoldKeyDown:g,handleItemFocus:m,handleItemBlur:y}=kI(t,n,p,h,o,l,a,u,c);S.useEffect(()=>{if(f!=null&&f.length&&(f==null?void 0:f.length)>=1){const T=f[f.length-1];f.some(E=>E===t&&t!==T?(h(!0),E===t):(h(!1),!1))}else h(!1)},[t,f]);const x=s?16:12,C=()=>d.jsx("li",{id:`listitem_${t}`,role:"treeitem","aria-selected":i,"aria-expanded":p,children:d.jsxs("div",{children:[d.jsxs("div",{className:"action-container d-flex align-items-center gap-8 px-2",children:[d.jsxs("div",{className:"py-8",tabIndex:0,role:"button",onClick:b,onKeyDown:g,"aria-label":"fold/unfold button",children:[Array.isArray(r)&&!p&&d.jsx(iv,{title:"RafterRight",width:x,height:x}),Array.isArray(r)&&p&&d.jsx(_o,{title:"RafterDown",width:x,height:x}),!Array.isArray(r)&&d.jsx(iv,{title:"RafterRight",width:x,height:x,"aria-hidden":"true",className:"opacity-0"})]}),d.jsxs("div",{tabIndex:0,role:"button",className:"flex-fill d-flex align-items-center text-truncate gap-8 py-8",onClick:v,onKeyDown:w,onFocus:m,onBlur:y,children:[s&&d.jsx(NT,{title:"Folder",width:20,height:20}),d.jsx("span",{className:"text-truncate",children:n})]})]}),Array.isArray(r)&&d.jsx("ul",{role:"group",children:r})]})},t);return s?d.jsx("ul",{role:"tree",className:"m-0 p-0",children:C()}):C()};aS.displayName="TreeItem";const PI=aS,lS=S.forwardRef((e,t)=>{const{data:n,onTreeItemSelect:r,onTreeItemFold:s,onTreeItemUnfold:i,onTreeItemFocus:o,onTreeItemBlur:l,selectedNodesIds:a}=e,[u,c]=S.useState("default");S.useEffect(()=>{a!=null&&a.length&&(a==null?void 0:a.length)>=1?c(a[a.length-1]):c("")},[a]);const f=g=>{c(g),r==null||r(g)},p=g=>{s==null||s(g)},h=g=>{i==null||i(g)},v=g=>{o==null||o(g)},w=g=>{l==null||l(g)},b=g=>d.jsx(PI,{nodeId:g.id,label:g.name,section:g.section,selectedNodesIds:a,selected:u===g.id,onItemSelect:f,onItemFold:p,onItemUnfold:h,onItemFocus:v,onItemBlur:w,children:Array.isArray(g.children)?g.children.map(m=>b(m)):null},g.id);return d.jsx("div",{ref:t,id:"treeview",className:"treeview",children:b(n)})});lS.displayName="TreeView";const uS=lS,cS=S.forwardRef(({children:e},t)=>d.jsx("span",{className:"visually-hidden",ref:t,children:e}));cS.displayName="VisuallyHidden";const Bn=cS,dS=({app:e,name:t,isSelected:n=!1,isSelectable:r=!0,onClick:s,onSelect:i})=>d.jsx(wn,{app:e,isSelectable:r,isSelected:n,onClick:s,onSelect:i,children:o=>d.jsxs(wn.Body,{children:[d.jsx(PT,{width:"48",height:"48",className:`color-app-${o}`}),d.jsx(wn.Title,{children:t})]})});dS.displayName="FolderCard";const jI=dS,OI=()=>{const{t:e}=se();return[{value:"bpr.activityType.classroomActivity",label:e("bpr.activityType.classroomActivity")},{value:"bpr.activityType.groupActivity",label:e("bpr.activityType.groupActivity")},{value:"bpr.activityType.personalActivity",label:e("bpr.activityType.personalActivity")},{value:"bpr.activityType.homework",label:e("bpr.activityType.homework")},{value:"bpr.activityType.exercize",label:e("bpr.activityType.exercize")},{value:"bpr.activityType.learningPath",label:e("bpr.activityType.learningPath")},{value:"bpr.activityType.courseElement",label:e("bpr.activityType.courseElement")},{value:"bpr.other",label:e("bpr.other")}]},RI=({control:e,selectedActivities:t,selectActivities:n})=>{const r=OI(),{t:s}=se();return d.jsx("div",{className:"col d-flex",children:d.jsx(Hu,{name:"activityType",control:e,rules:{required:!0},render:({field:{onChange:i}})=>d.jsxs(be,{block:!0,overflow:!0,children:[d.jsx(be.Trigger,{size:"md",label:s("bpr.form.publication.type"),badgeContent:t==null?void 0:t.length}),d.jsx(be.Menu,{children:r.map((o,l)=>d.jsx(be.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},l))})]})})})},NI=["3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"],C0=({name:e,control:t,placeholderOption:n,validate:r})=>d.jsx(Hu,{name:e,control:t,rules:{required:!0,validate:r},render:({field:{onChange:s}})=>d.jsx(lm,{block:!0,size:"md",onValueChange:s,options:NI,"aria-required":!0,placeholderOption:n})}),AI=()=>{const{t:e}=se();return[{value:"de_DE",label:e("de_DE")},{value:"en_EN",label:e("en_EN")},{value:"ar_DZ",label:e("ar_DZ")},{value:"es_ES",label:e("es_ES")},{value:"fr_FR",label:e("fr_FR")},{value:"it_IT",label:e("it_IT")},{value:"ja_JP",label:e("ja_JP")},{value:"zh_CN",label:e("zh_CN")},{value:"pt_PT",label:e("pt_PT")},{value:"ru_RU",label:e("ru_RU")},{value:"bpr.other",label:e("bpr.other")}]},II="bpr.form.publication.language",_I=({control:e})=>{const t=AI();return d.jsx("div",{className:"col",children:d.jsx(Hu,{name:"language",control:e,rules:{required:!0},render:({field:{onChange:n}})=>d.jsx(lm,{block:!0,size:"md",onValueChange:n,options:t,"aria-required":!0,placeholderOption:II})})})},MI=()=>{const{t:e}=se(),[t]=ms();return d.jsxs(d.Fragment,{children:[d.jsxs("ul",{className:"mb-12",children:[d.jsxs("li",{children:[e("bpr.form.publication.licence.text.1"),d.jsx("img",{className:"ms-8 d-inline-block",src:`${t}/common/image-creative-commons.png`,alt:"licence creative commons"})]}),d.jsx("li",{children:e("bpr.form.publication.licence.text.2")})]}),d.jsx(mr,{type:"info",className:"mb-12",children:e("bpr.form.publication.licence.text.3")}),d.jsx(mr,{type:"warning",children:e("bpr.form.publication.licence.text.4")})]})},LI=()=>{const{t:e}=se();return[{value:"bpr.subjectArea.artActivity",label:e("bpr.subjectArea.artActivity")},{value:"bpr.subjectArea.readLearning",label:e("bpr.subjectArea.readLearning")},{value:"bpr.subjectArea.chemistry",label:e("bpr.subjectArea.chemistry")},{value:"bpr.subjectArea.law",label:e("bpr.subjectArea.law")},{value:"bpr.subjectArea.worldDiscovery",label:e("bpr.subjectArea.worldDiscovery")},{value:"bpr.subjectArea.economy",label:e("bpr.subjectArea.economy")},{value:"bpr.subjectArea.mediaEducation",label:e("bpr.subjectArea.mediaEducation")},{value:"bpr.subjectArea.musicEducation",label:e("bpr.subjectArea.musicEducation")},{value:"bpr.subjectArea.sportEducation",label:e("bpr.subjectArea.sportEducation")},{value:"bpr.subjectArea.citizenshipEducation",label:e("bpr.subjectArea.citizenshipEducation")},{value:"bpr.subjectArea.geography",label:e("bpr.subjectArea.geography")},{value:"bpr.subjectArea.history",label:e("bpr.subjectArea.history")},{value:"bpr.subjectArea.artHistory",label:e("bpr.subjectArea.artHistory")},{value:"bpr.subjectArea.ComputerScience",label:e("bpr.subjectArea.ComputerScience")},{value:"bpr.subjectArea.languages",label:e("bpr.subjectArea.languages")},{value:"bpr.subjectArea.italian",label:e("bpr.subjectArea.italian")},{value:"bpr.subjectArea.spanish",label:e("bpr.subjectArea.spanish")},{value:"bpr.subjectArea.french",label:e("bpr.subjectArea.french")},{value:"bpr.subjectArea.german",label:e("bpr.subjectArea.german")},{value:"bpr.subjectArea.english",label:e("bpr.subjectArea.english")},{value:"bpr.subjectArea.ancientLanguages",label:e("bpr.subjectArea.ancientLanguages")},{value:"bpr.subjectArea.literature",label:e("bpr.subjectArea.literature")},{value:"bpr.subjectArea.mathematics",label:e("bpr.subjectArea.mathematics")},{value:"bpr.subjectArea.vocationalGuidance",label:e("bpr.subjectArea.vocationalGuidance")},{value:"bpr.subjectArea.philosohppy",label:e("bpr.subjectArea.philosohppy")},{value:"bpr.subjectArea.physics",label:e("bpr.subjectArea.physics")},{value:"bpr.subjectArea.politicalSscience",label:e("bpr.subjectArea.politicalSscience")},{value:"bpr.subjectArea.sociology",label:e("bpr.subjectArea.sociology")},{value:"bpr.subjectArea.biology",label:e("bpr.subjectArea.biology")},{value:"bpr.subjectArea.geology",label:e("bpr.subjectArea.geology")},{value:"bpr.subjectArea.technology",label:e("bpr.subjectArea.technology")},{value:"bpr.other",label:e("bpr.other")}]},DI=({control:e,selectedSubjectAreas:t,selectSubjects:n})=>{const r=LI(),{t:s}=se();return d.jsx("div",{className:"col d-flex",children:d.jsx(Hu,{name:"subjectArea",control:e,rules:{required:!0},render:({field:{onChange:i}})=>d.jsxs(be,{block:!0,overflow:!0,children:[d.jsx(be.Trigger,{size:"md",label:s("bpr.form.publication.discipline"),badgeContent:t==null?void 0:t.length}),d.jsx(be.Menu,{children:r.map((o,l)=>d.jsx(be.CheckboxItem,{value:o.value,model:t,onChange:()=>{n(o.value),i(o.value)},children:o.label},l))})]})})})};function E0({formData:e}){const{t}=se(),n=r=>r.match(/^\s/);return d.jsxs(d.Fragment,{children:[d.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.error.title")}),d.jsx("p",{className:"pt-24 pb-24",children:d.jsx("strong",{children:t("bpr.form.publication.response.error.content")})}),d.jsxs("ul",{children:[n(e.title)&&d.jsx("li",{className:"pt-2 pb-2",children:d.jsx("strong",{children:t("bpr.form.publication.response.empty.title")})}),n(e.description)&&d.jsx("li",{className:"pt-2 pb-2",children:d.jsx("strong",{children:t("bpr.form.publication.response.empty.description")})})]})]})}function FI({result:e}){const{t}=se();return d.jsxs(d.Fragment,{children:[d.jsx("h3",{className:"pt-24",children:t("bpr.form.publication.response.success.title")}),d.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.1")}),d.jsx("p",{className:"pt-24",children:t("bpr.form.publication.response.success.content.2")}),e.details.front_url&&d.jsx("p",{className:"pt-24 pb-24",children:d.jsx("a",{className:"button right-magnet",href:e.details.front_url,target:"_blank",rel:"noreferrer",children:t("bpr.form.publication.response.success.button")})})]})}const $I={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"};function zI({onSuccess:e,resource:t}){const{user:n,appCode:r}=Ne(),s=at(),[i,o]=S.useState(t.thumbnail||""),{control:l,register:a,watch:u,setValue:c,handleSubmit:f,formState:{errors:p,isSubmitting:h,isDirty:v,isValid:w}}=Lw({mode:"onChange"}),[b,g]=S.useState([]),[m,y]=S.useState([]),x=(M,N,R)=>{let I=[...N];const L=I.findIndex(k=>k===M);N.includes(M)?I=N.filter((k,A)=>A!==L):I=[...N,M],R(I)};return{control:l,cover:i,formState:{errors:p,isSubmitting:h,isDirty:v,isValid:w},handleDeleteImage:()=>o(""),handlePublish:async M=>{const N=n?n==null?void 0:n.userId:"";try{let R=new Blob;typeof i=="string"?R=await re.http().get(i,{responseType:"blob"}):i?R=await re.http().get(URL.createObjectURL(i),{responseType:"blob"}):t.thumbnail&&(R=await re.http().get(t.thumbnail,{responseType:"blob"}));const I=await re.http().get(`/userbook/avatar/${N}?thumbnail=48x48`,{responseType:"blob"}),L=await re.http().get(`/directory/user/${N}/attachment-school`,{responseType:"json"}),k=$I[r],A={activityType:b,age:[M.ageMin,M.ageMax],application:k,cover:R,description:M.description,keyWords:M.keyWords,language:M.language,licence:"CC-BY",resourceId:t.assetId,resourceEntId:t.assetId,subjectArea:m,teacherAvatar:I,title:M.title,userId:N,userStructureName:L.name||(n==null?void 0:n.structureNames[0])},$=await re.resource(k).publish(A);$.success?s.success(d.jsx(FI,{result:$}),{duration:1e4}):s.error(d.jsx(E0,{formData:M})),e==null||e()}catch(R){console.error(R),s.error(d.jsx(E0,{formData:M}))}},handleSubmit:f,handleUploadImage:M=>o(M),register:a,selectActivities:M=>{x(M,b,g)},selectedActivities:b,selectedSubjectAreas:m,selectSubjects:M=>{x(M,m,y)},setValue:c,watch:u}}function BI({isOpen:e,resource:t,onSuccess:n,onCancel:r}){const{currentApp:s}=Ne(),{t:i}=se(),{control:o,cover:l,formState:{isDirty:a,isValid:u,isSubmitting:c},handleDeleteImage:f,handleSubmit:p,handleUploadImage:h,handlePublish:v,register:w,selectActivities:b,selectedActivities:g,selectedSubjectAreas:m,selectSubjects:y}=zI({resource:t,onSuccess:n}),x="bpr.form.publication.age.min",C="bpr.form.publication.age.max";return Nn.createPortal(d.jsxs(me,{isOpen:e,onModalClose:r,id:"libraryModal",size:"lg",children:[d.jsx(me.Header,{onModalClose:r,children:i("bpr.publish")}),d.jsx(me.Subtitle,{children:i("bpr.form.tip")}),d.jsxs(me.Body,{children:[d.jsx(Gt,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.general")}),d.jsxs("form",{id:"libraryModalForm",onSubmit:p(v),children:[d.jsxs("div",{className:"d-block d-md-flex mb-24 gap-24",children:[d.jsxs("div",{style:{maxWidth:"160px"},children:[d.jsx("div",{className:"form-label",children:i("bpr.form.publication.cover.title")}),d.jsx(om,{app:s,src:t.thumbnail,label:i("bpr.form.publication.cover.upload.label"),addButtonLabel:i("bpr.form.publication.cover.upload.add"),deleteButtonLabel:i("bpr.form.publication.cover.upload.remove"),onUploadImage:h,onDeleteImage:f,className:"align-self-center"}),!l&&d.jsx("p",{className:"form-text is-invalid",children:d.jsx("em",{children:i("bpr.form.publication.cover.upload.required.image")})})]}),d.jsxs("div",{className:"flex-fill",children:[d.jsxs(Ue,{id:"title",className:"mb-16",isRequired:!0,children:[d.jsx(es,{children:i("bpr.form.publication.title")}),d.jsx(Ar,{type:"text",defaultValue:t.name,...w("title",{required:!0}),placeholder:i("bpr.form.publication.title.placeholder"),size:"md","aria-required":!0})]}),d.jsxs(Ue,{id:"description",isRequired:!0,children:[d.jsx(es,{children:i("bpr.form.publication.description")}),d.jsx(um,{...w("description",{required:!0}),placeholder:i("bpr.form.publication.description.placeholder"),size:"md"})]})]})]}),d.jsx("hr",{}),d.jsx(Gt,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.heading.infos")}),d.jsxs("div",{className:"d-flex flex-column flex-md-row gap-16 row mb-24",children:[d.jsx(RI,{control:o,selectedActivities:g,selectActivities:b}),d.jsx(DI,{control:o,selectedSubjectAreas:m,selectSubjects:y}),d.jsx(_I,{control:o})]}),d.jsxs("div",{className:"mb-24",children:[d.jsx("label",{htmlFor:"",className:"form-label",children:i("bpr.form.publication.age")}),d.jsxs("div",{className:"d-flex gap-8",children:[d.jsx("div",{className:"col col-2",children:d.jsx(C0,{control:o,name:"ageMin",placeholderOption:x,validate:(T,E)=>parseInt(T)<=parseInt(E.ageMax)})}),d.jsx("div",{className:"col col-2",children:d.jsx(C0,{control:o,name:"ageMax",placeholderOption:C,validate:(T,E)=>parseInt(T)>=parseInt(E.ageMin)})})]})]}),d.jsx("div",{className:"mb-24",children:d.jsxs(Ue,{id:"keywords",isOptional:!0,children:[d.jsx(es,{children:i("bpr.form.publication.keywords")}),d.jsx(Ar,{type:"text",...w("keyWords"),size:"md",placeholder:i("bpr.form.publication.keywords.placeholder")})]})}),d.jsx("hr",{}),d.jsx(Gt,{headingStyle:"h4",level:"h3",className:"mb-16",children:i("bpr.form.publication.licence.text")}),d.jsx(MI,{})]})]}),d.jsxs(me.Footer,{children:[d.jsx(Pe,{color:"tertiary",onClick:r,type:"button",variant:"ghost",children:i("cancel")}),d.jsx(Pe,{form:"libraryModalForm",type:"submit",color:"primary",variant:"filled",isLoading:c,disabled:!l||c||!a||!u,children:i("bpr.form.submit")})]})]}),document.getElementById("portal"))}const fS=({app:e,resource:t,time:n,isSelected:r=!1,isSelectable:s=!0,onClick:i,onSelect:o})=>{const l=`/userbook/avatar/${t==null?void 0:t.creatorId}`;function a(p){const{rights:h,creatorId:v}=p||{};return h.filter(b=>!b.includes(v)).length>=1}const u=a(t),c=t==null?void 0:t.public,{t:f}=se();return d.jsx(wn,{app:e,isSelected:r,isSelectable:s,onClick:i,onSelect:o,children:p=>d.jsxs(d.Fragment,{children:[d.jsxs(wn.Body,{children:[d.jsx("div",{className:"card-image medium",children:t!=null&&t.thumbnail?d.jsx(gs,{alt:"",src:t==null?void 0:t.thumbnail,objectFit:"cover",className:"h-full"}):d.jsx(Rr,{app:e,iconFit:"ratio",size:"80",variant:"rounded"})}),d.jsxs("div",{className:"text-truncate",children:[d.jsx(wn.Title,{children:t==null?void 0:t.name}),d.jsx(wn.Text,{children:d.jsx("em",{children:n})})]})]}),d.jsxs(wn.Footer,{children:[d.jsxs("div",{className:`
|
|
230
|
+
d-inline-flex
|
|
231
|
+
align-items-center
|
|
232
|
+
gap-8
|
|
233
|
+
text-truncate`,children:[l?d.jsx(Nr,{alt:(t==null?void 0:t.creatorName)||"",size:"xs",src:l,variant:"circle",width:"24",height:"24"}):d.jsx(Fh,{}),d.jsx(wn.Text,{children:t==null?void 0:t.creatorName})]}),d.jsxs("div",{className:"d-inline-flex align-items-center gap-8",children:[u&&d.jsx(Tu,{message:f("tooltip.shared",{ns:p}),placement:"top",children:d.jsx(ek,{width:16,height:16})}),c&&d.jsx(Tu,{message:f("tooltip.public",{ns:p}),placement:"top",children:d.jsx(IT,{width:16,height:16})})]})]})]})})};fS.displayName="ResourceCard";const VI=fS,UI=({watch:e,selectedResource:t})=>{const[n,r]=S.useState(""),[s,i]=S.useState(!!(t!=null&&t.public)||!1),o=S.useId(),l=e("title"),{t:a}=se(),u=at(),c=`${Wx({foo:`${l}${o}`})}-${Gx(l)}`;S.useEffect(()=>{if(s){let h="";t&&t.slug?h=t.slug:h=c,r(h)}},[s,t,l,o,c]);function f(h){i(h)}function p(){navigator.clipboard.writeText(`${window.location.origin}${window.location.pathname}/pub/${n}`),u.success(a("explorer.copy.clipboard"))}return{slug:n,uniqueId:o,isPublic:s,resourceName:l,onPublicChange:f,onCopyToClipBoard:p}},HI=({isUpdating:e,selectedResource:t})=>{const[n,r]=S.useState(e&&(t==null?void 0:t.thumbnail)||"");return{thumbnail:n,handleDeleteImage:()=>r(""),handleUploadImage:o=>r(o)}},qI=({appCode:e,isPublic:t,onCopyToClipBoard:n,onPublicChange:r,register:s,slug:i,resourceName:o})=>{const{t:l}=se();return d.jsxs(d.Fragment,{children:[d.jsxs(Gt,{headingStyle:"h4",level:"h3",className:"mb-16",children:[l("explorer.resource.editModal.heading.access"),e]}),d.jsx(mr,{type:"info",children:l("explorer.resource.editModal.access.alert")}),d.jsxs(Ue,{id:"flexSwitchCheckDefault",className:"form-switch d-flex gap-8 mt-16 mb-8",children:[d.jsx(Ue.Input,{type:"checkbox",role:"switch",...s("enablePublic",{disabled:!t&&!o,onChange:a=>{r(a.target.checked)}}),className:"form-check-input mt-0",size:"md"}),d.jsx(Ue.Label,{className:"form-check-label mb-0",children:l("explorer.resource.editModal.access.flexSwitchCheckDefault.label")})]}),t&&d.jsxs("div",{className:"d-flex flex-wrap align-items-center gap-4",children:[d.jsxs("p",{className:"text-break",children:[window.location.origin,window.location.pathname,"/pub/",i]}),d.jsx(Pe,{color:"primary",disabled:!t,onClick:n,type:"button",leftIcon:d.jsx(xT,{}),variant:"ghost",className:"text-nowrap",children:l("explorer.resource.editModal.access.url.button")})]})]})},pS=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},WI=({isOpen:e,actions:t,onCancel:n,onSuccess:r,...s})=>{var i,o,l,a,u,c;const{appCode:f,currentApp:p}=Ne(),{t:h}=se(),{mode:v}=s,w=S.useId(),b=v==="create",g=v==="update",{watch:m,register:y,handleSubmit:x,formState:{isSubmitting:C,isValid:T}}=Lw({mode:"onChange",defaultValues:{description:g?(i=s.selectedResource)==null?void 0:i.description:"",enablePublic:g?(o=s.selectedResource)==null?void 0:o.public:!1,title:g?(l=s.selectedResource)==null?void 0:l.name:""}}),{slug:E,uniqueId:j,isPublic:P,resourceName:M,onPublicChange:N,onCopyToClipBoard:R}=UI({watch:m,selectedResource:g?s.selectedResource:void 0}),I=at(),{thumbnail:L,handleDeleteImage:k,handleUploadImage:A}=HI({isUpdating:g}),$=async function(_){var F,B;try{const J={description:_.description||"",name:_.title,public:_.enablePublic,thumbnail:L},Z=`${Wx({foo:`${_.title}${j}`})}-${Gx(_.title)}`;b?await s.createResource.mutateAsync({...J,folder:((F=s.currentFolder)==null?void 0:F.id)==="default"?void 0:parseInt(((B=s.currentFolder)==null?void 0:B.id)||""),slug:_.enablePublic?Z:"",app:f}):await s.updateResource.mutateAsync({...J,slug:_.enablePublic?s.selectedResource&&s.selectedResource.slug?s.selectedResource.slug:Z:"",entId:s.selectedResource.assetId,trashed:s.selectedResource.trashed}),I.success(d.jsxs(d.Fragment,{children:[d.jsx("strong",{children:h(b?"explorer.resource.created":"explorer.resource.updated")}),d.jsxs("p",{children:[h("title")," : ",_.title]}),d.jsxs("p",{children:[h("description")," : ",_.description]}),f===zs.BLOG&&d.jsxs("p",{children:["Public:",_.enablePublic?h("explorer.enable.public.yes"):h("explorer.enable.public.no")]})]})),r()}catch(J){console.error(J)}};return Nn.createPortal(d.jsxs(me,{id:`${v}-resource`,size:"lg",isOpen:e,onModalClose:n,children:[d.jsx(me.Header,{onModalClose:n,children:h(`explorer.resource.editModal.header.${b?"create":"edit"}`)}),d.jsxs(me.Body,{children:[d.jsx(Gt,{headingStyle:"h4",level:"h3",className:"mb-16",children:h("explorer.resource.editModal.heading.general")}),d.jsxs("form",{id:w,onSubmit:x($),children:[d.jsxs("div",{className:"d-block d-md-flex gap-16 mb-24",children:[d.jsx("div",{children:d.jsx(om,{app:p,src:g&&((a=s.selectedResource)==null?void 0:a.thumbnail)||"",label:h("explorer.imagepicker.label"),addButtonLabel:h("explorer.imagepicker.button.add"),deleteButtonLabel:h("explorer.imagepicker.button.delete"),onUploadImage:A,onDeleteImage:k,className:"align-self-center mt-8"})}),d.jsxs("div",{className:"col",children:[d.jsxs(Ue,{id:"title",className:"mb-16",isRequired:!0,children:[d.jsx(es,{children:h("title")}),d.jsx(Ar,{type:"text",defaultValue:g?(u=s.selectedResource)==null?void 0:u.name:"",...y("title",{required:!0,pattern:{value:/[^ ]/,message:"invalid title"}}),placeholder:h("explorer.resource.editModal.title.placeholder"),size:"md","aria-required":!0})]}),d.jsxs(Ue,{id:"description",isOptional:!0,children:[d.jsx(es,{children:h("description")}),d.jsx(um,{defaultValue:g?(c=s.selectedResource)==null?void 0:c.description:"",...y("description"),placeholder:h("explorer.resource.editModal.description.placeholder"),size:"md"})]})]})]}),f===zs.BLOG&&pS({workflow:"createPublic",actions:t})&&d.jsx(qI,{appCode:f,isPublic:P,slug:E,onCopyToClipBoard:R,onPublicChange:N,register:y,resourceName:M})]})]}),d.jsxs(me.Footer,{children:[d.jsx(Pe,{color:"tertiary",onClick:n,type:"button",variant:"ghost",children:h("explorer.cancel")}),d.jsx(Pe,{form:w,type:"submit",color:"primary",isLoading:C,variant:"filled",disabled:!T||C,children:h(b?"explorer.create":"save")})]})]}),document.getElementById("portal"))},QI=WI;function GI({radioPublicationValue:e,onRadioPublicationChange:t}){const{appCode:n}=Ne(),{t:r}=se(n);return d.jsxs(d.Fragment,{children:[d.jsx("hr",{}),d.jsx(Gt,{headingStyle:"h4",level:"h3",className:"mb-16",children:r("explorer.publication.steps")}),d.jsx(Eu,{label:r("explorer.immediat.publication"),id:"publication-now",name:"publication",value:"IMMEDIATE",model:e,checked:e==="IMMEDIATE",onChange:s=>t(s.target.value)}),d.jsx(Eu,{label:r("explorer.validate.publication"),id:"publication-validate",name:"publication",value:"RESTRAINT",checked:e==="RESTRAINT",model:e,onChange:s=>t(s.target.value)})]})}const KI={searchInputValue:"",searchResults:[],searchAPIResults:[],searchPending:!1,isLoading:!1};function XI(e,t){switch(t.type){case"onChange":return{...e,searchInputValue:t.payload};case"isSearching":return{...e,isLoading:t.payload};case"addResult":return{...e,searchResults:t.payload};case"addApiResult":return{...e,searchAPIResults:t.payload};case"updateSearchResult":return{...e,searchResults:t.payload};case"emptyResult":return{...e,searchResults:t.payload};default:throw new Error("Unhandled action type")}}const Pd=[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}],YI=({resource:e,shareRights:t,shareDispatch:n})=>{const[r,s]=S.useReducer(XI,KI),i=Xb(r.searchInputValue,500),{isAdml:o}=t2(),{appCode:l}=Ne();S.useEffect(()=>{u(i)},[i]);const a=v=>{const w=v.target.value;s({type:"onChange",payload:w})},u=async v=>{if(s({type:"isSearching",payload:!0}),!o&&v.length>=1||o&&v.length>=3){const w=await re.share().searchShareSubjects(l,e.assetId,v);s({type:"addApiResult",payload:w});const b=w.filter(g=>!t.rights.find(m=>m.id===g.id)).filter(g=>!(g.type==="user"&&g.id===e.creatorId)).map(g=>({value:g.id,label:g.displayName,icon:g.type==="sharebookmark"?dh:null}));s({type:"addResult",payload:b})}else s({type:"emptyResult",payload:[]}),Promise.resolve();s({type:"isSearching",payload:!1})};return{state:r,showSearchAdmlHint:()=>o&&r.searchInputValue.length<3,showSearchLoading:()=>r.searchPending&&r.searchInputValue.length>0,showSearchNoResults:()=>!r.searchPending&&!o&&i.length>0&&r.searchResults.length===0||!r.searchPending&&o&&i.length>3&&r.searchResults.length===0,handleSearchInputChange:a,handleSearchResultsChange:async v=>{const w=r.searchAPIResults.find(b=>b.id===v[0]);if(w){let b=[];if(w.type==="sharebookmark"){const g=await re.directory().getBookMarkById(w.id);b.push({...g,type:"sharebookmark",avatarUrl:"",directoryUrl:"",actions:Pd}),g==null||g.users.filter(m=>!t.rights.find(y=>y.id===m.id)).forEach(m=>{b.push({...m,type:"user",avatarUrl:"",directoryUrl:"",actions:Pd,isBookmarkMember:!0})}),g.groups.filter(m=>!t.rights.find(y=>y.id===m.id)).forEach(m=>{b.push({...m,type:"group",avatarUrl:"",directoryUrl:"",actions:Pd,isBookmarkMember:!0})})}else b=[{...w,actions:[{id:"read",displayName:"read"},{id:"comment",displayName:"comment"}]}];n({type:"updateShareRights",payload:{...t,rights:[...t.rights,...b]}}),s({type:"updateSearchResult",payload:r.searchResults.filter(g=>g.value!==v[0])})}}}},JI={isSharing:!1,shareRights:{rights:[],visibleBookmarks:[],visibleGroups:[],visibleUsers:[]},shareRightActions:[]};function ZI(e,t){switch(t.type){case"init":return{...e,...t.payload};case"deleteRow":return{...e,shareRights:t.payload};case"updateShareRights":return{...e,shareRights:t.payload};case"toggleRight":return{...e,shareRights:t.payload};case"isSharing":return{...e,isSharing:!0};default:throw new Error("Unhandled action type")}}function e8({onSuccess:e,resource:t,updateResource:n,shareResource:r}){const{appCode:s}=Ne(),{user:i,avatar:o}=ha(),[l,a]=S.useReducer(ZI,JI);return S.useEffect(()=>{(async()=>{const h=await re.share().getActionsForApp(s),v=await re.share().getRightsForResource(s,t.assetId);a({type:"init",payload:{shareRightActions:h,shareRights:v}})})()},[]),{state:l,dispatch:a,currentIsAuthor:()=>!!(t&&t.creatorId===(i==null?void 0:i.userId)),myAvatar:o,handleDeleteRow:h=>{a({type:"deleteRow",payload:{...l.shareRights,rights:l.shareRights.rights.filter(v=>{var w,b;return v.id!==h.id&&!((w=h.users)!=null&&w.find(g=>g.id===v.id))&&!((b=h.groups)!=null&&b.find(g=>g.id===v.id))})}})},handleShare:async h=>{a({type:"isSharing",payload:!0});try{const v=t.rights.filter(b=>i&&b.includes(`user:${i.userId}`)).map(b=>b.split(":")[2]).filter(b=>!!b),w=[...l.shareRights.rights];if(v.length>0){const b=v.map(g=>({displayName:g,id:g}));w.push({actions:b,avatarUrl:"",directoryUrl:"",displayName:i.username,id:i.userId,type:"user"})}s==="blog"?await n.mutateAsync(h):await n.mutateAsync({entId:t.assetId||"",trashed:t.trashed||!1,name:t.name||"",thumbnail:t.thumbnail||"",description:t.description||"",public:t.public||!1,slug:t.slug||""}),await r.mutateAsync({resourceId:t.assetId,rights:w}),e==null||e()}catch(v){console.error("Failed to save share",v)}finally{a({type:"isSharing",payload:!1})}},toggleRight:(h,v)=>{var w,b;const{rights:g,...m}=l.shareRights,y=[...g],x=y.findIndex(E=>E.id===h.id),C=l.shareRightActions.filter(E=>E.id===v)[0];if(y[x].actions.findIndex(E=>E.id===v)>-1){let E=y[x].actions.filter(P=>P.id!==v);const j=l.shareRightActions.filter(P=>{var M;return(M=P.requires)==null?void 0:M.includes(v)});E=E.filter(P=>!j.find(M=>M.id===P.id)),y[x]={...y[x],actions:E}}else{const E=l.shareRightActions.filter(j=>{var P;return((P=C.requires)==null?void 0:P.includes(j.id))&&!y[x].actions.find(M=>M.id===j.id)});y[x]={...y[x],actions:[...y[x].actions,C,...E]}}h.type==="sharebookmark"&&((w=y[x].users)==null||w.forEach(E=>{const j=y.findIndex(P=>P.id===E.id);y[j]={...y[j],actions:y[x].actions}}),(b=y[x].groups)==null||b.forEach(E=>{const j=y.findIndex(P=>P.id===E.id);y[j]={...y[j],actions:y[x].actions}})),a({type:"toggleRight",payload:{rights:y,...m}})}}}function t8({resource:e}){const{assetId:t,description:n,thumbnail:r,name:s,public:i,trashed:o,slug:l,"publish-type":a}=e||{"publish-type":"",assetId:"",description:"",name:"",public:!1,slug:"",thumbnail:"",trashed:!1},[u,c]=S.useState(a||"RESTRAINT"),[f,p]=S.useState({description:n||"",entId:t,name:s,public:!!i,slug:l||"",thumbnail:r,trashed:o,"publish-type":a});return S.useEffect(()=>{u&&p(v=>({...v,"publish-type":u}))},[u]),{radioPublicationValue:u,shareBlogPayload:f,handleRadioPublicationChange:async v=>{c(v)}}}const n8=({shareRights:e,shareDispatch:t})=>{const n=at(),{t:r}=se(),s=S.useRef(null),[i,o]=S.useState({name:"",id:S.useId()}),[l,a]=tm(!1),[u,c]=S.useState(!1),f=()=>{a()},p=()=>{o(w=>{var b;return{...w,name:((b=s.current)==null?void 0:b.value)||""}})},h=async w=>{try{const b=await re.directory().saveBookmarks(w,{users:e.rights.filter(g=>g.type==="user").map(g=>g.id),groups:e.rights.filter(g=>g.type==="group").map(g=>g.id),bookmarks:e.rights.filter(g=>g.type==="sharebookmark").map(g=>g.id)});n.success(r("explorer.bookmarked.status.saved")),t({type:"updateShareRights",payload:{...e,visibleBookmarks:[...e.visibleBookmarks,{displayName:w,id:b.id}]}}),o(g=>({...g,bookmarkId:g.id+new Date().getTime().toString()})),c(!1)}catch(b){console.error("Failed to save bookmark",b),n.error(r("explorer.bookmarked.status.error"))}};return{refBookmark:s,showBookmark:l,showBookmarkInput:u,bookmark:i,handleBookmarkChange:p,setBookmark:o,handleOnSave:()=>{var w;const b=((w=s.current)==null?void 0:w.value)||"";h(b)},toggleBookmark:f,toggleBookmarkInput:c}},r8=({bookmark:e,refBookmark:t,onBookmarkChange:n,onSave:r})=>{const{t:s}=se();return d.jsx("div",{className:"mt-16",children:d.jsxs(Ue,{id:"bookmarkName",className:"d-flex flex-wrap align-items-center gap-16",children:[d.jsx("div",{className:"flex-fill",children:d.jsx(Ue.Input,{ref:t,onChange:n,placeholder:s("explorer.modal.share.sharebookmark.placeholder"),size:"sm",type:"text"},e.id)}),d.jsx(Pe,{type:"button",color:"primary",variant:"ghost",disabled:e.name.length===0,leftIcon:d.jsx(GT,{}),onClick:r,className:"text-nowrap",children:s("explorer.modal.share.sharebookmark.save")})]})})},s8=(e,t)=>e.actions.filter(n=>t.id===n.id).length>0,i8=(e,t)=>e.isBookmarkMember&&t||!e.isBookmarkMember,o8=({shareRights:e,showBookmark:t,toggleBookmark:n,shareRightActions:r,toggleRight:s,onDeleteRow:i})=>{const{t:o}=se();return e==null?void 0:e.rights.map(l=>i8(l,t)&&d.jsxs("tr",{className:l.isBookmarkMember?"bg-light":"",children:[d.jsxs("td",{children:[l.type!=="sharebookmark"&&d.jsx(Nr,{alt:o("explorer.modal.share.avatar.shared.alt"),size:"xs",src:l.avatarUrl,variant:"circle"}),l.type==="sharebookmark"&&d.jsx(dh,{})]}),d.jsx("td",{children:d.jsxs("div",{className:"d-flex",children:[l.type==="sharebookmark"&&d.jsx(Pe,{color:"tertiary",rightIcon:d.jsx(_o,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:t?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal ps-0",onClick:n,children:l.displayName}),l.type!=="sharebookmark"&&l.displayName]})}),r.map(a=>d.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:d.jsx(mc,{checked:s8(l,a),onChange:()=>s(l,a.id)})},a.displayName)),d.jsx("td",{children:!l.isBookmarkMember&&d.jsx(Xn,{"aria-label":"Delete",color:"tertiary",icon:d.jsx(Fw,{}),type:"button",variant:"ghost",title:"Delete",onClick:()=>i(l)})})]},l.id))};function a8({isOpen:e,resource:t,updateResource:n,shareResource:r,onSuccess:s,onCancel:i}){const{appCode:o}=Ne(),{radioPublicationValue:l,shareBlogPayload:a,handleRadioPublicationChange:u}=t8({resource:t}),{state:{isSharing:c,shareRights:f,shareRightActions:p},dispatch:h,myAvatar:v,currentIsAuthor:w,handleShare:b,toggleRight:g,handleDeleteRow:m}=e8({resource:t,updateResource:n,shareResource:r,onSuccess:s}),{state:{searchResults:y,searchInputValue:x},showSearchAdmlHint:C,showSearchLoading:T,showSearchNoResults:E,handleSearchInputChange:j,handleSearchResultsChange:P}=YI({resource:t,shareRights:f,shareDispatch:h}),{refBookmark:M,showBookmark:N,handleBookmarkChange:R,toggleBookmark:I,bookmark:L,handleOnSave:k,showBookmarkInput:A,toggleBookmarkInput:$}=n8({shareRights:f,shareDispatch:h}),{t:_}=se(),F=C()?_("explorer.search.adml.hint"):_("explorer.modal.share.search.placeholder");return Nn.createPortal(d.jsxs(me,{id:"share_modal",size:"lg",isOpen:e,onModalClose:i,children:[d.jsx(me.Header,{onModalClose:i,children:_("share.title")}),d.jsxs(me.Body,{children:[d.jsx(Gt,{headingStyle:"h4",level:"h3",className:"mb-16",children:_("explorer.modal.share.usersWithAccess")}),d.jsx("div",{className:"table-responsive",children:d.jsxs("table",{className:"table border align-middle mb-0",children:[d.jsx("thead",{className:"bg-secondary",children:d.jsxs("tr",{children:[d.jsx("th",{scope:"col",className:"w-32",children:d.jsx(Bn,{children:_("explorer.modal.share.avatar.shared.alt")})}),d.jsx("th",{scope:"col",children:d.jsx(Bn,{children:_("explorer.modal.share.search.placeholder")})}),p.map(B=>d.jsx("th",{scope:"col",className:"text-center text-white",children:_(B.displayName)},B.displayName)),d.jsx("th",{scope:"col",children:d.jsx(Bn,{children:_("close")})})]})}),d.jsxs("tbody",{children:[w()&&d.jsxs("tr",{children:[d.jsx("th",{scope:"row",children:d.jsx(Nr,{alt:_("explorer.modal.share.avatar.me.alt"),size:"xs",src:v,variant:"circle"})}),d.jsx("td",{children:_("share.me")}),p.map(B=>d.jsx("td",{style:{width:"80px"},className:"text-center text-white",children:d.jsx(mc,{checked:!0,disabled:!0})},B.displayName)),d.jsx("td",{})]}),d.jsx(o8,{showBookmark:N,shareRightActions:p,shareRights:f,onDeleteRow:m,toggleRight:g,toggleBookmark:I})]})]})}),d.jsxs("div",{className:"mt-16",children:[d.jsx(Pe,{color:"tertiary",leftIcon:d.jsx(dh,{}),rightIcon:d.jsx(_o,{title:"Show",className:"w-16 min-w-0",style:{transition:"rotate 0.2s ease-out",rotate:A?"-180deg":"0deg"}}),type:"button",variant:"ghost",className:"fw-normal",onClick:()=>$(!A),children:_("share.save.sharebookmark")}),A&&d.jsx(r8,{refBookmark:M,bookmark:L,onBookmarkChange:R,onSave:k})]}),d.jsx("hr",{}),d.jsxs(Gt,{headingStyle:"h4",level:"h3",className:"mb-16 d-flex align-items-center",children:[d.jsx("div",{className:"me-8",children:_("explorer.modal.share.search")}),d.jsx(Tu,{message:"Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.",placement:"top",children:d.jsx(zw,{className:"c-pointer",height:"18"})})]}),d.jsx("div",{className:"row",children:d.jsx("div",{className:"col-10",children:d.jsx(H2,{value:x,placeholder:F,isLoading:T(),noResult:E(),options:y,onSearchInputChange:j,onSearchResultsChange:P})})}),o==="blog"&&d.jsx(GI,{radioPublicationValue:l,onRadioPublicationChange:u})]}),d.jsxs(me.Footer,{children:[d.jsx(Pe,{type:"button",color:"tertiary",variant:"ghost",onClick:i,children:_("explorer.cancel")}),d.jsx(Pe,{type:"button",color:"primary",variant:"filled",isLoading:c,onClick:()=>b(a),disabled:c,children:_("share")})]})]}),document.getElementById("portal"))}const l8=async e=>await re.conf().getPreference(e),u8=async e=>await re.conf().savePreference(e,JSON.stringify({showOnboardingTrash:!1})),c8=e=>{const[t,n]=S.useState(!0),[r,s]=S.useState(!1);return S.useEffect(()=>{(async()=>{const o=await l8(e);if(o){const{showOnboardingTrash:l}=o;s(l);return}s(!0)})()},[e]),{isOpen:t,setIsOpen:n,isOnboardingTrash:r,handleSavePreference:async()=>{await u8(e),n(!1)}}},hS=({id:e,items:t,modalOptions:n})=>{const[r]=ms(),[s,i]=S.useState(),[o,l]=S.useState(0),{isOpen:a,isOnboardingTrash:u,setIsOpen:c,handleSavePreference:f}=c8(e),{t:p}=se(),{title:h,prevText:v,closeText:w,nextText:b}=n;return u?Nn.createPortal(d.jsxs(me,{id:"onboarding-modal",size:"md",isOpen:a,focusId:"nextButtonId",onModalClose:()=>c(!1),children:[d.jsx(me.Header,{onModalClose:()=>c(!1),children:p(h||"explorer.modal.onboarding.trash.title")}),d.jsx(me.Body,{children:d.jsx(ub,{modules:[rR],onSwiper:g=>{i(g)},onSlideChange:g=>{l(g.progress)},pagination:{clickable:!0},children:t.map((g,m)=>d.jsxs(cb,{children:[d.jsx(gs,{width:"270",height:"140",className:"mx-auto my-12",loading:"lazy",src:`${r}/${g.src}`,alt:p(g.alt)}),d.jsx("p",{children:p(g.text)})]},m))})}),d.jsxs(me.Footer,{children:[d.jsx(Pe,{type:"button",color:"tertiary",variant:"ghost",onClick:()=>c(!1),children:p("explorer.modal.onboarding.trash.later")}),o>0&&d.jsx(Pe,{type:"button",color:"primary",variant:"outline",onClick:()=>s.slidePrev(),children:p(v||"explorer.modal.onboarding.trash.prev")}),o<1&&d.jsx(Pe,{id:"nextButtonId",type:"button",color:"primary",variant:"filled",onClick:()=>s.slideNext(),children:p(b||"explorer.modal.onboarding.trash.next")}),o===1&&d.jsx(Pe,{type:"button",color:"primary",variant:"filled",onClick:f,children:p(w||"explorer.modal.onboarding.trash.close")})]})]}),document.getElementById("portal")):null};hS.displayName="OnboardingModal";const d8=hS;function jd({children:e}){return d.jsx("span",{className:"position-absolute badge rounded-pill bg-warning",children:e})}function Od({children:e,className:t,...n}){const r=K("navbar",t);return d.jsx("nav",{className:r,...n,children:e})}function T0({children:e,className:t,...n}){const r=K("navbar-nav",t);return d.jsx("ul",{className:r,...n,children:e})}const Ae=S.forwardRef(({children:e,className:t,...n},r)=>{const s=K("nav-item",t);return d.jsx("li",{ref:r,className:s,...n,children:e})});Ae.displayName="NavItem";function $i({link:e,className:t,children:n,translate:r,...s}){const i=K("nav-link",t);return d.jsxs("a",{href:e,className:i,...s,children:[n,r&&d.jsx(Bn,{children:d.jsx("span",{className:"nav-text",children:r})})]})}const f8=()=>{const{t:e}=se();return d.jsx("div",{className:"widget-footer",children:d.jsx("div",{className:"widget-footer-action",children:d.jsx("a",{href:"/welcome",className:"link",children:e("plus")})})})},p8=({bookmarkedApps:e})=>{const{t}=se();return d.jsxs("div",{className:"widget-body d-flex flex-wrap",children:[!e.length&&d.jsx("div",{className:"text-dark",children:t("navbar.myapps.more")}),e.slice(0,6).map((n,r)=>d.jsx("a",{href:n.address,className:"bookmarked-app",children:d.jsx(Rr,{app:n,size:"32"})},r))]})};function k0({isHelpOpen:e,setIsHelpOpen:t,parsedHeadline:n,parsedContent:r,error:s}){const{t:i}=se(),o=()=>{t(!1)};return e?Nn.createPortal(d.jsxs(me,{id:"help-modal",isOpen:e,onModalClose:o,scrollable:!0,size:"lg",children:[d.jsx(me.Header,{onModalClose:o,children:i("navbar.help")}),d.jsx(me.Subtitle,{children:s?i("help.notfound.title"):n}),d.jsx(me.Body,{className:s?"d-flex":null,children:s?i("help.notfound.text"):r})]}),document.getElementById("portal")):null}function h8(){var e;const{appCode:t}=Ne(),{theme:n}=pc(),[r,s]=S.useState(""),[i,o]=S.useState(!0),[l,a]=S.useState(!1),[u,c]=S.useState(!1),f=n!=null&&n.is1d?"/help-1d":"/help-2d";S.useEffect(()=>{(async()=>{let b="";b=f+"/application/"+t+"/",!t&&window.location.pathname!=="/adapter"?b=f+"/application/portal/":window.location.pathname==="/adapter"?b=f+"/application/"+window.location.search.split("eliot=")[1].split("&")[0]+"/":window.location.pathname.includes("/directory/class-admin")?b=f+"/application/parametrage-de-la-classe/":(window.location.pathname.includes("/userbook/mon-compte")||window.location.pathname.includes("/timeline/preferencesView")||window.location.pathname.includes("/timeline/historyView"))&&(b=f+"/application/userbook/");try{const g=await fetch(b),m=await g.text();if(g.status===404){c(!0);return}s(m),c(!1)}catch(g){c(!0),console.error(g)}})()},[t,f]);const h=zr(r,{replace:b=>{const g=b;if(g.attribs&&g.attribs.id==="TOC")return d.jsxs("nav",{id:"TOC",children:[d.jsx(Pe,{onClick:()=>{o(!i)},children:d.jsx(vT,{})}),Ka(g.children,{replace:m=>{const y=m;if(y.attribs&&y.name==="ul")return d.jsx("ul",{id:"TOC-list",style:{display:i?"block":"none"},children:Ka(y.children,{replace:x=>{const C=x;if(C.attribs&&C.name==="a")return d.jsx("a",{...Td(C.attribs),children:d.jsx("span",{onClick:()=>{o(!1)},children:Ka(C.children)})})}})})}})]});if(g.attribs&&g.attribs.class==="section level2"){const m=Td(b.attribs);return d.jsx("div",{...m,className:"section level2",style:{display:g.attribs.id!=="présentation"?"none":"block"},children:Ka(g.children,{replace:y=>{const x=y;if(x.attribs&&x.name==="img"){const C=y.attribs.src;return d.jsx("img",{...Td(x.attribs),src:`${f}/${C}`,alt:""})}}})})}}}),v=(e=h==null?void 0:h.props)==null?void 0:e.children.find(b=>b.type==="body").props.children,w=v==null?void 0:v.find(b=>b.type==="p").props.children;return{html:r,visibility:i,isModalOpen:l,setIsModalOpen:a,parsedContent:v,parsedHeadline:w,error:u}}const mS=()=>{const[e,t]=em(),n=S.useRef(null),r=S.useId(),{t:s}=se();function i(){if(n.current){const o=n.current.value;window.location.href=`/searchengine#/${o}`}}return d.jsxs(Ae,{id:r,ref:e,className:"position-relative","aria-haspopup":"true","aria-expanded":t,children:[d.jsxs("a",{href:"/searchengine",className:"nav-link dropdown-item",children:[d.jsx(AO,{className:"icon search"}),d.jsx("span",{className:"nav-text",children:s("navbar.search")})]}),d.jsx(yc,{id:r,isVisible:t,className:"d-none d-md-flex",children:d.jsxs(Ue,{id:"my-search-input",className:"search-text input-group py-8 px-12",children:[d.jsx(Ue.Input,{ref:n,size:"sm",type:"text",name:"my-search-input",placeholder:"Rechercher"}),d.jsx(rm,{type:"submit",size:"sm",onClick:i,"aria-label":s("navbar.search")})]})})]})};mS.displayName="SearchEngine";const m8=mS,gS=({is1d:e=!1,src:t=""})=>{const{t:n}=se(),{messages:r,msgLink:s,zimbraWorkflow:i}=Wb(),{user:o,avatar:l}=ha(),{currentLanguage:a}=Ne(),{isModalOpen:u,setIsModalOpen:c,parsedContent:f,parsedHeadline:p,error:h}=h8(),v=K("header",{"no-2d":e,"no-1d":!e}),{title:w,bookmarkedApps:b,appsRef:g,isAppsHovered:m,popoverAppsId:y,userAvatar:x,userName:C,welcomeUser:T,communityWorkflow:E,conversationWorflow:j,searchWorkflow:P,isCollapsed:M,toggleCollapsedNav:N,handleLogout:R}=e2({user:o,avatar:l}),I=r>0;return d.jsx("header",{className:v,children:e?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"container-fluid",children:d.jsxs(Od,{children:[d.jsx("a",{className:"navbar-title d-md-none text-truncate h4",href:"/timeline/timeline",children:w}),d.jsxs("div",{className:"d-none d-md-inline-flex gap-12 align-items-center",children:[d.jsx(Nr,{alt:C,size:"sm",src:x,variant:"circle",width:"32",height:"32"}),d.jsx("span",{className:"navbar-text",children:T})]}),d.jsxs(T0,{className:"gap-8","aria-hidden":"false","aria-label":n("navbar.main.navigation"),children:[j&&d.jsx(Ae,{children:d.jsxs("a",{href:"/conversation/conversation",className:"nav-link",children:[d.jsx(OO,{className:"icon notification"}),I&&d.jsx(jd,{children:r}),d.jsx(Bn,{children:n("navbar.messages")})]})}),d.jsx(Ae,{children:d.jsx($i,{link:"/userbook/mon-compte",className:"dropdown-item",translate:n("navbar.myaccount"),children:d.jsx(Fh,{className:"icon user"})})}),a==="fr"?d.jsxs(Ae,{children:[d.jsxs("button",{className:"nav-link",onClick:()=>{c(!0)},children:[d.jsx(PO,{className:"icon help"}),d.jsx(Bn,{children:n("navbar.help")})]}),d.jsx(k0,{isHelpOpen:u,setIsHelpOpen:c,parsedContent:f,parsedHeadline:p,error:h})]}):null,d.jsx(Ae,{children:d.jsxs("button",{className:"nav-link",onClick:R,children:[d.jsx(Gv,{className:"icon logout"}),d.jsx(Bn,{children:n("navbar.disconnect")})]})}),d.jsx(Ae,{className:"d-md-none",children:d.jsx("button",{className:"nav-link btn btn-naked",type:"button","aria-controls":"navbarCollapsed","aria-expanded":!M,"aria-label":n("navbar.secondary.navigation"),onClick:N,children:d.jsx(_o,{className:"icon rafter-down",width:"20",height:"20"})})})]})]})}),d.jsx(Od,{className:"no-2d navbar-secondary navbar-expand-md","aria-label":n("navbar.secondary.navigation"),children:d.jsx("div",{className:"container-fluid",children:d.jsxs("div",{className:`collapse navbar-collapse ${M?"":"show"}`,id:"navbarCollapsed",children:[d.jsx(ip,{is1d:!0,src:`${t}/img/illustrations/logo.png`,translate:n("navbar.home")}),d.jsxs(T0,{className:"gap-8",children:[d.jsx(Ae,{children:d.jsxs("a",{href:"/timeline/timeline",className:"button",children:[d.jsx(TO,{color:"#fff",className:"d-md-none"}),d.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.whatsnew")})]})}),d.jsx(Ae,{children:d.jsxs("a",{href:"/userbook/annuaire",className:"button",children:[d.jsx(_O,{color:"#fff",className:"d-md-none"}),d.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.classMembers")})]})}),d.jsx(Ae,{children:d.jsxs("a",{href:"/welcome",className:"button",children:[d.jsx(Kv,{color:"#fff",className:"d-md-none"}),d.jsx("span",{className:"d-inline-block",children:n("portal.header.navigation.myapps")})]})})]})]})})})]}):d.jsx(Od,{className:"navbar-expand-md",children:d.jsxs("div",{className:"container-fluid",children:[d.jsx(ip,{src:`${t}/img/illustrations/logo.png`}),d.jsx("a",{href:"/timeline/timeline",className:"navbar-title text-truncate d-md-none",children:w}),d.jsxs("ul",{className:"navbar-nav",children:[d.jsx(Ae,{children:d.jsx($i,{link:"/timeline/timeline",translate:n("navbar.home"),children:d.jsx(wO,{color:"#fff"})})}),d.jsxs(Ae,{className:"position-relative",ref:g,id:y,"aria-haspopup":"true","aria-expanded":m,children:[d.jsx($i,{link:"/welcome",translate:n("navbar.applications"),children:d.jsx(Kv,{color:"#fff"})}),d.jsxs(yc,{className:"top-100 widget",id:y,isVisible:m,children:[d.jsx(nS,{children:d.jsx(p8,{bookmarkedApps:b})}),d.jsx(rS,{className:"widget-footer border-top border-ghost",children:d.jsx(f8,{})})]})]}),j&&d.jsx(Ae,{children:d.jsxs($i,{className:"position-relative",link:"/conversation/conversation",translate:n("conversation"),children:[d.jsx(Xv,{color:"#fff"}),I&&d.jsx(jd,{children:r})]})}),i&&d.jsx(Ae,{children:d.jsxs($i,{className:"position-relative",link:s,translate:n("conversation"),children:[d.jsx(Xv,{color:"#fff"}),I&&d.jsx(jd,{children:r})]})}),a==="fr"?d.jsxs(Ae,{children:[d.jsxs("button",{className:"nav-link btn btn-naked",onClick:()=>{c(!0)},children:[d.jsx(SO,{color:"#fff"}),d.jsx(Bn,{children:n("support")})]}),d.jsx(k0,{isHelpOpen:u,setIsHelpOpen:c,parsedContent:f,parsedHeadline:p,error:h})]}):null,d.jsx(Ae,{children:d.jsxs("div",{className:"dropdown",children:[d.jsx("button",{className:"nav-link btn btn-naked d-md-none",type:"button","aria-controls":"dropdown-navbar","aria-expanded":!M,"aria-label":n("navbar.open.menu"),onClick:N,children:d.jsx(_o,{className:"icon rafter-down",width:"20",height:"20",color:"#fff"})}),d.jsxs("ul",{className:`dropdown-menu dropdown-menu-end ${M?"":"show"}`,id:"dropdown-navbar",children:[E&&d.jsx(Ae,{children:d.jsxs("a",{href:"/community",className:"nav-link dropdown-item",children:[d.jsx(gO,{className:"icon community"}),d.jsx("span",{className:"nav-text",children:n("navbar.community")})]})}),P?d.jsx(m8,{}):null,d.jsx(Ae,{children:d.jsxs("a",{href:"/userbook/mon-compte",className:"nav-link dropdown-item",children:[d.jsx(Nr,{alt:C,size:"sm",src:x,variant:"circle",className:"bg-white",width:"32",height:"32"}),d.jsx("span",{className:"nav-text",children:n("navbar.myaccount")})]})}),d.jsx(Ae,{children:d.jsx("hr",{className:"dropdown-divider"})}),d.jsx(Ae,{children:d.jsxs("a",{href:"/auth/logout?callback=",className:"nav-link dropdown-item",children:[d.jsx(Gv,{className:"icon logout"}),d.jsx("span",{id:"logout-label",className:"nav-text",children:n("navbar.disconnect")})]})})]})]})})]})]})})})};gS.displayName="Header";const g8=gS;function vS({children:e,className:t,...n}){const r=K("container-fluid",t);return d.jsx("main",{className:r,...n,children:e})}vS.displayName="Main";const yS=({children:e,...t})=>{const{theme:n}=pc();return d.jsxs(d.Fragment,{children:[d.jsx(g8,{is1d:n==null?void 0:n.is1d,src:n==null?void 0:n.basePath}),d.jsx(vS,{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}),d.jsx(MP,{toastOptions:{position:"top-right"}})]})};yS.displayName="Layout";const wS=yS,v8=({children:e})=>d.jsx("div",{className:"widget-footer",children:d.jsx("div",{className:"widget-footer-action",children:d.jsx("a",{href:"/welcome",className:"link",children:e})})}),y8=({children:e})=>d.jsxs("div",{className:"widget-header",children:[d.jsx("div",{className:"subtitle",children:e}),d.jsx("div",{className:"widget-options",children:d.jsx("div",{className:"widget-handle",children:d.jsx("i",{className:"fas fa-grip-vertical"})})})]}),w8=({children:e})=>d.jsx("div",{className:"widget-body p-12 d-flex flex-wrap",children:e});function ma({children:e}){return d.jsx("div",{className:"widget",children:e})}ma.Header=y8;ma.Body=w8;ma.Footer=v8;ma.displayName="Widget";const xS=({data:e})=>e.length>0?e.slice(0,6).map((t,n)=>d.jsx("a",{href:t.address,className:"bookmarked-app",children:d.jsx(Rr,{app:t,size:"32"})},n)):d.jsx("div",{className:"text-dark mx-auto",children:d.jsx("a",{href:"/welcome",children:"Sélectionner vos applications favorites"})});xS.displayName="BookmarkedApps";const x8=xS,wc=Object.freeze(Object.defineProperty({__proto__:null,ActionBar:Fb,Alert:mr,AppHeader:Bb,AppIcon:Rr,Avatar:Nr,BookmarkedApps:x8,Breadcrumb:m2,Button:Pe,Card:wn,Checkbox:mc,Column:im,Combobox:H2,Dropdown:be,EmptyScreen:gI,FolderCard:jI,FormControl:Ue,FormText:R2,Grid:Ys,Heading:Gt,IconButton:Xn,Image:gs,ImagePicker:om,Input:Ar,Label:es,Layout:wS,Library:vI,Loading:nm,LoadingScreen:et,Logo:ip,Modal:me,OdeClientContext:Yh,OdeClientProvider:Ub,OnboardingModal:d8,Popover:yc,PopoverBody:nS,PopoverFooter:rS,PopoverHeader:CI,PublishModal:BI,Radio:Eu,ResourceCard:VI,ResourceModal:QI,SearchButton:rm,Select:lm,ShareModal:a8,TextArea:um,ThemeContext:Jh,ThemeProvider:Hb,Tooltip:Tu,TreeView:uS,VisuallyHidden:Bn,Widget:ma,isActionAvailable:pS,useBookmark:qb,useClickOutside:Zh,useConf:Xh,useConversation:Wb,useDebounce:Xb,useDropdown:V2,useDropzone:Zb,useHasWorkflow:Xs,useHeader:e2,useHover:em,useImage:Qb,useIsAdml:t2,useKeyPress:Gb,useOdeClient:Ne,useOdeIcons:hc,useOdeTheme:pc,usePaths:ms,useScrollToTop:Jb,useSession:Vb,useTitle:Kb,useToast:at,useToggle:tm,useTrapFocus:Yb,useUser:ha,useXitiTrackPageLoad:n2},Symbol.toStringTag,{value:"Module"})),b8=function(){return null};var bS,P0=Nn;bS=P0.createRoot,P0.hydrateRoot;const j0=e=>{let t;const n=new Set,r=(a,u)=>{const c=typeof a=="function"?a(t):a;if(!Object.is(c,t)){const f=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(p=>p(t,f))}},s=()=>t,l={setState:r,getState:s,subscribe:a=>(n.add(a),()=>n.delete(a)),destroy:()=>{n.clear()}};return t=e(r,s,l),l},S8=e=>e?j0(e):j0;var SS={exports:{}},CS={};/**
|
|
228
234
|
* @license React
|
|
229
235
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
230
236
|
*
|
|
@@ -232,4 +238,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
232
238
|
*
|
|
233
239
|
* This source code is licensed under the MIT license found in the
|
|
234
240
|
* LICENSE file in the root directory of this source tree.
|
|
235
|
-
*/var gl=x,vR=Vg;function yR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wR=typeof Object.is=="function"?Object.is:yR,xR=vR.useSyncExternalStore,SR=gl.useRef,bR=gl.useEffect,CR=gl.useMemo,ER=gl.useDebugValue;Sy.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=SR(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=CR(function(){function l(p){if(!u){if(u=!0,c=p,p=r(p),s!==void 0&&o.hasValue){var m=o.value;if(s(m,p))return d=m}return d=p}if(m=d,wR(c,p))return m;var y=r(p);return s!==void 0&&s(m,y)?m:(c=p,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,s]);var a=xR(e,i[0],i[1]);return bR(function(){o.hasValue=!0,o.value=a},[a]),ER(a),a};xy.exports=Sy;var RR=xy.exports;const kR=Pa(RR),{useDebugValue:PR}=pm,{useSyncExternalStoreWithSelector:OR}=kR;function NR(e,t=e.getState,n){const r=OR(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return PR(r),r}const nm=e=>{const t=typeof e=="function"?gR(e):e,n=(r,s)=>NR(t,r,s);return Object.assign(n,t),n},jR=e=>e?nm(e):nm,by=async e=>{const t=await Y.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},TR=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await Y.resource(e.app).createFolder(r)},_R=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const s={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await Y.resource(t.app).updateFolder(s)},IR=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await Y.resource(e.app).trashAll(s,n)},AR=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await Y.resource(e.app).deleteAll(s,n)},LR=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await Y.resource(e.app).restoreAll(s,r)},MR=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await Y.resource(e.app).moveToFolder(i,s)},DR=async({searchParams:e,entId:t,shares:n})=>await Y.share().saveRights(e.app,t,n),FR=async({searchParams:e,params:t})=>await Y.resource(e.app).update(t),$R=async e=>await Y.rights().sessionHasWorkflowRights(e),zR=({searchParams:e,assetId:t})=>Y.resource(e.app).gotoView(t),UR=({searchParams:e,params:t})=>Y.resource(e.app).create(t),BR=({searchParams:e,assetId:t})=>Y.resource(e.app).gotoPrint(t),VR=async({searchParams:e,params:t})=>await Y.resource(e.app).publish(t),HR=async()=>await Y.conf().getPreference("showOnboardingTrash"),qR=async({onSuccess:e})=>{const t=await Y.conf().savePreference("showOnboardingTrash",JSON.stringify({showOnboardingTrash:!1}));return e==null||e(),t};function mf(e){return e.filter((t,n)=>e.indexOf(t)===n)}function xi(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=xi(e,i),n===void 0))),n)}function QR(e,t){var r;const n=xi(e,t);return(r=n==null?void 0:n.folder)!=null&&r.ancestors?[...(n==null?void 0:n.folder.ancestors)||[],e]:e===Xe.BIN?[Xe.BIN]:[Xe.DEFAULT]}function Cy(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>Cy(t.id,n)):!1}function Mi(e,t){return Ey(e,t)||e}function Ey(e,t,n){var s;const r=t(e,n);if((s=r==null?void 0:r.children)!=null&&s.length){const i=[];for(const o of(r==null?void 0:r.children)||[]){const a=Ey(o,t,r);a&&i.push(a)}return{...r,children:i}}return r}class vl{constructor(t){cr(this,"id");cr(this,"name");cr(this,"childNumber");cr(this,"section",!1);cr(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const Ry=(e,t,n)=>Mi(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new vl(s))),r)),{app:WR,types:KR,filters:GR,orders:XR}=ml(),Fe=jR()((e,t)=>({filters:GR,orders:XR,searchConfig:{minLength:1},searchParams:{app:WR,types:KR,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:Xe.DEFAULT,name:qt("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(r=>{const{searchParams:s}=r;return s.search!==n.search?n.search?{...r,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...s,...n,trashed:!1,filters:{...s.filters,folder:void 0}}}:{...r,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...s,...n,trashed:!1,filters:{...s.filters}}}:{searchParams:{...s,...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();zR({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:s}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const i=r.find(o=>o.id===s[0]);BR({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},publishApi:async(n,r)=>{const{searchParams:s}=t();return await VR({searchParams:s,params:r})},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,a=QR(n,i),l=mf([...a,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:l,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===Xe.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!Cy(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await by({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(a=>{var l;return{...a,treeData:Ry(s,(l=o==null?void 0:o.pages[0])==null?void 0:l.folders,n||Xe.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=xi(n,r);B4()(),e(a=>({...a,searchParams:{...a.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=xi(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||Xe.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...n.searchParams,search:void 0,filters:{folder:Xe.BIN},trashed:!0},currentFolder:{id:Xe.BIN}}))}})),ot=()=>Fe(e=>e.searchParams),gf=()=>Fe(e=>e.selectedNodesIds),ts=()=>Fe(e=>e.treeData),YR=()=>Fe(e=>e.selectedFolders),ZR=()=>Fe(e=>e.selectedResources),JR=()=>Fe(e=>e.searchConfig),Di=()=>Fe(e=>e.folderIds),Fi=()=>Fe(e=>e.resourceIds),yl=()=>Fe(e=>e.selectedResources.map(t=>t.assetId)),wl=()=>Fe(e=>e.selectedResources.filter(t=>t.assetId===t.id)),ns=()=>Fe(e=>e.currentFolder),je=()=>Fe(e=>e.updaters),rs=()=>{const e=ns();return(e==null?void 0:e.id)===Xe.BIN},ky=()=>Fe(e=>e.resourceIsTrash),ek=()=>Fe(e=>e.resourceActionDisable),tk=()=>{const e=ns();return(e==null?void 0:e.id)==="default"},nk=()=>gf().length>1,rk=()=>Fe(e=>e.status),Py=()=>{const e=ot(),[t,n]=x.useState(""),r=JR(),s=rk(),i=x.useRef(null),{setSearchParams:o}=je(),a=c=>{const d=c.target.value;n(d.toString())},l=c=>{(c.key==="Enter"||c.key==="Return")&&(c.preventDefault(),o({search:t||void 0}))},u=c=>{c.preventDefault(),o({search:t||void 0})};return x.useEffect(()=>{const d=t.length==0||t.length>=r.minLength?{search:t||void 0}:{};o({...e,...d})},[t,r.minLength]),x.useEffect(()=>{s==="select"&&n("")},[s]),x.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{formRef:i,inputSearch:t,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}};function sk(){const{appCode:e}=yt(),t=gf(),n=rs(),r=ns(),{t:s}=pe(["common",e]),{gotoPreviousFolder:i}=je(),{inputSearch:o}=Py(),a=s("explorer.tree.trash"),l=s("explorer.tree.search"),u=s("explorer.filters.mine",{ns:e}),c=(r==null?void 0:r.name)||u;return f.jsx("div",{className:"py-16",children:t.length>1&&!n?f.jsxs("div",{className:"d-flex align-items-center gap-8",children:[f.jsx(Ka,{icon:f.jsx(W4,{}),variant:"ghost",color:"tertiary","aria-label":s("back"),className:"ms-n16",onClick:i}),f.jsx("p",{className:"body py-8 text-truncate",children:f.jsx("strong",{children:c})})]}):f.jsx("h2",{className:"body py-8 fw-bold",children:o.length!==0?l:n?a:u})})}function ik(e,{parentId:t,newFolder:n}){return Mi(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=mf([...i,r.id]);return{...r,children:[...r.children||[],new vl({...n,ancestors:o})]}}else return r})}function ok(e,{folders:t}){return Mi(e,n=>{if(!t.includes(n.id))return n})}function ak(e,{destinationId:t,folders:n}){return Mi(e,(r,s)=>{var i,o;if(t===r.id){const a=[...((i=r.folder)==null?void 0:i.ancestors)||[]],l=mf([...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 p=xi(h,e);p&&u.push({...p,folder:{...p==null?void 0:p.folder,ancestors:l}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(s==null?void 0:s.id)?void 0:r})}function lk(e,{folderId:t,newFolder:n}){return Mi(e,r=>r.id===t?new vl(n):r)}const{actions:rm,app:uk}=ml(),Oy=()=>Id({queryKey:["actions"],queryFn:async()=>{const e=rm.map(n=>n.workflow);return await $R(e)},select:e=>rm.map(t=>({...t,available:e[t.workflow]}))}),ck=()=>{const{hotToast:e}=jt(Tt),{appCode:t}=yt(),{t:n}=pe(),r=it(),s=ot(),i=ns(),o=ts(),{setTreeData:a,setSearchParams:l,setSearchConfig:u}=je(),{filters:c,trashed:d,search:h}=s,p=["context",{folderId:c.folder,filters:c,trashed:d,search:h}];return zS({queryKey:p,queryFn:async({pageParam:m=0})=>await by({...s,pagination:{...s.pagination,startIdx:m}}),onError(m){typeof m=="string"&&e.error(n(m))},onSuccess:async m=>{var S,g,v;await r.cancelQueries({queryKey:p});const y=[...((S=m==null?void 0:m.pages[0])==null?void 0:S.folders)??[]];(g=m==null?void 0:m.pages[0])!=null&&g.searchConfig&&u(m.pages[0].searchConfig),s.search||((i==null?void 0:i.id)==="default"?a({id:Xe.DEFAULT,section:!0,children:y.map(w=>new vl(w)),name:n("explorer.filters.mine",{ns:t})}):a(Ry(o,y,s.filters.folder||Xe.DEFAULT))),l({...s,pagination:(v=m==null?void 0:m.pages[(m==null?void 0:m.pages.length)-1])==null?void 0:v.pagination})},retry:!1,getNextPageParam:m=>m.pagination.startIdx+m.pagination.pageSize})},u8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),s=Di(),i=yl(),o=Fi(),a=wl().length>0,l=a?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:d,setSearchParams:h}=je(),{filters:p,trashed:m}=n,y=["context",{folderId:p.folder,filters:p,trashed:m}];return an({mutationFn:async()=>await IR({searchParams:n,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(qt(S))},onSuccess:async S=>{if(await t.cancelQueries({queryKey:y}),t.getQueryData(y))return t.setQueryData(y,v=>{var w;if(v){const b={...v,pages:v==null?void 0:v.pages.map(R=>{var k;return{...R,folders:R.folders.filter(P=>!s.includes(P.id)),pagination:{...R.pagination,maxIdx:((k=R==null?void 0:R.pagination)==null?void 0:k.maxIdx)-S.resources.length},resources:R.resources.filter(P=>a?!i.includes(P.assetId):!l.includes(P.id))}})},E=ok(r,{folders:s});return d(E),h({...n,pagination:{...n.pagination,maxIdx:((w=n.pagination)==null?void 0:w.maxIdx)-S.resources.length}}),b}})},onSettled:()=>{u(),c()}})},dk=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=Di(),s=yl(),i=Fi(),o=wl().length>0,a=o?s:i,{setFolderIds:l,setResourceIds:u,setSelectedResources:c,setSelectedFolders:d}=je(),{filters:h,trashed:p}=n,m=["context",{folderId:h.folder,filters:h,trashed:p}];return an({mutationFn:async()=>await LR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(y){typeof y=="string"&&e.error(qt(y))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:m}),t.getQueryData(m))return t.setQueryData(m,S=>{if(S)return{...S,pages:S==null?void 0:S.pages.map(g=>({...g,folders:g.folders.filter(v=>!r.includes(v.id)),resources:g.resources.filter(v=>o?!s.includes(v.assetId):!a.includes(v.id))}))}})},onSettled:()=>{u([]),c([]),l([]),d([])}})},c8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=Di(),s=yl(),i=Fi(),o=wl().length>0,a=o?s:i,{clearSelectedItems:l,clearSelectedIds:u}=je(),{filters:c,trashed:d}=n,h=["context",{folderId:c.folder,filters:c,trashed:d}];return an({mutationFn:async()=>await AR({searchParams:n,folderIds:r,resourceIds:a,useAssetIds:o}),onError(p){typeof p=="string"&&e.error(qt(p))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:h}),t.getQueryData(h))return t.setQueryData(h,m=>{if(m)return{...m,pages:m==null?void 0:m.pages.map(S=>({...S,folders:S.folders.filter(g=>!r.includes(g.id)),resources:S.resources.filter(g=>o?!s.includes(g.assetId):!a.includes(g.id))}))}})},onSettled:()=>{l(),u()}})},d8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),s=Di(),i=yl(),o=Fi(),a=wl().length>0,l=a?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:d,setSearchParams:h}=je(),{filters:p,trashed:m}=n,y=["context",{folderId:p.folder,filters:p,trashed:m}];return an({mutationFn:async S=>await MR({searchParams:n,folderId:S,folderIds:s,resourceIds:l,useAssetIds:a}),onError(S){typeof S=="string"&&e.error(qt(S))},onSuccess:async(S,g)=>{if(t.getQueryData(y))return t.setQueryData(y,w=>{var b;if(w){const E=ak(r,{destinationId:g,folders:s}),R={...w,pages:w==null?void 0:w.pages.map(k=>{var P;return{...k,folders:k.folders.filter(_=>!s.includes(_.id)),pagination:{...k.pagination,maxIdx:((P=k.pagination)==null?void 0:P.maxIdx)-S.resources.length},resources:k.resources.filter(_=>a?!i.includes(_.assetId):!l.includes(_.id))}})};return d(E),h({...n,pagination:{...n.pagination,maxIdx:((b=n.pagination)==null?void 0:b.maxIdx)-S.resources.length}}),R}})},onSettled:()=>{c(),u()}})},f8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),{setTreeData:s}=je(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return an({mutationFn:async({name:l,parentId:u})=>await TR({searchParams:n,name:l,parentId:u}),onError(l){typeof l=="string"&&e.error(qt(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 p={...h,pages:h==null?void 0:h.pages.map(y=>({...y,folders:[...y.folders,d]}))},m=ik(r,{parentId:u.parentId,newFolder:d});return s(m),p}})}})},h8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),r=ts(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=je(),{filters:a,trashed:l}=n,u=["context",{folderId:a.folder,filters:a,trashed:l}];return an({mutationFn:async({folderId:c,name:d,parentId:h})=>await _R({searchParams:n,folderId:c,parentId:h,name:d}),onError(c){typeof c=="string"&&e.error(qt(c))},onSuccess:async(c,d)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,p=>{if(p){const m={...p,pages:p==null?void 0:p.pages.map(S=>({...S,folders:S.folders.map(g=>g.id===c.id?{...c,parentId:d.parentId,rights:g.rights}:g)}))},y=lk(r,{folderId:d.folderId,newFolder:c});return o(y),m}})},onSettled:()=>{s([]),i([])}})},p8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{setResourceIds:r,setSelectedResources:s}=je(),{filters:i,trashed:o}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return an({mutationFn:async({entId:l,shares:u})=>await DR({searchParams:n,entId:l,shares:u}),onError(l){typeof l=="string"&&e.error(qt(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(p=>{if(p.assetId===(u==null?void 0:u.entId)){let m=[`creator:${p.creatorId}`];return(u==null?void 0:u.shares.length)>=1&&(m=[...m,...u.shares.flatMap(y=>y.actions.map(S=>`${y.type}:${y.id}:${S.id}`))]),{...p,rights:m}}else return p})}))}})},onSettled:()=>{r([]),s([])}})},m8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{filters:r,trashed:s}=n,i=["context",{folderId:r.folder,filters:r,trashed:s}];return an({mutationFn:async o=>await FR({searchParams:n,params:o}),onError(o){typeof o=="string"&&e.error(qt(o))},onSuccess:async(o,a)=>{if(await t.cancelQueries({queryKey:i}),t.getQueryData(i))return t.setQueryData(i,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:p,public:m,description:y,slug:S,...g}=a;return{...d,...g,name:h,thumbnail:typeof p=="string"?p:URL.createObjectURL(p),public:m,description:y,slug:S}}else return d})}))}})}})},g8=()=>{const{hotToast:e}=jt(Tt),t=it(),n=ot(),{user:r}=Ld(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return an({mutationFn:async i=>await UR({searchParams:n,params:i}),onError(i){typeof i=="string"&&e.error(qt(i))},onSuccess:async(i,o)=>{var c,d,h;await t.cancelQueries({queryKey:s});const a=t.getQueryData(s),{thumbnail:l}=o,u={...o,thumbnail:l?URL.createObjectURL(l):"",application:uk,assetId:i._id||i.entId||"",id:i._id||i.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),slug:o.slug||"",modifiedAt:((c=i.modified)==null?void 0:c.$date)||"",modifierId:((d=i.author)==null?void 0:d.userId)||"",modifierName:((h=i.author)==null?void 0:h.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(a)return t.setQueryData(s,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(m=>({...m,resources:[u,...m.resources]}))}})}})},{trashActions:fk}=ml();function Ny(){const[e,t]=x.useState(!1),[n,r]=x.useState("void"),[s,i]=x.useState(),{t:o}=pe(),{hotToast:a}=jt(Tt),l=ns(),u=Fi(),c=ZR(),d=YR(),h=Di(),p=rs(),m=dk(),y=ky(),{openResource:S,printSelectedResource:g,openFolder:v,clearSelectedItems:w,clearSelectedIds:b}=je(),{data:E}=Oy();x.useEffect(()=>{if(u.length===0&&h.length===0){t(!1);return}if(y){t(!1);return}t(!0)},[u,h]);async function R(X){var me;switch((me=document.getElementById("root"))==null||me.setAttribute("aria-hidden","true"),i(X),X.id){case $e.OPEN:return u.length>0?S(c[0]):v({folder:d[0],folderId:d[0].id});case $e.MOVE:return r("move");case $e.PRINT:return g();case $e.DELETE:return r("delete");case $e.RESTORE:return await _();case $e.PUBLISH:return r("publish");case $e.UPD_PROPS:case"edit":return we();case $e.SHARE:return r("share");default:throw Error(`Unknown action: ${X.id}`)}}function k(X){const me=u.length+h.length,_t=u.length===1||h.length===1,It=me===1,un=h.length===0;switch(X.id){case $e.OPEN:return It;case $e.MANAGE:return _t;case $e.PUBLISH:return _t&&un;case $e.UPD_PROPS:return _t&&un;case $e.SHARE:return un&&_t;case $e.PRINT:return _t&&un;case"edit":return It;default:return!0}}function P(){return!0}async function _(){try{if(p)await m.mutate(),a.success(o("explorer.trash.toast"));else throw new Error("Cannot restore untrashed resources");F()}catch(X){console.error(X)}}function F(){var X;r("void"),s!=null&&s.id&&((X=document.getElementById(s==null?void 0:s.id))==null||X.focus())}const A=X=>()=>{n===X&&(F(),w(),b())},I=A("move"),U=A("move"),$=A("delete"),C=A("delete"),O=A("publish"),L=A("publish"),N=A("edit_folder"),D=A("edit_folder"),M=A("edit_resource"),K=A("edit_resource"),G=A("share"),le=A("share");function we(){u&&u.length>0?r("edit_resource"):r("edit_folder")}function xe(X){return X.id==="edit"&&h.length>0?"explorer.rename":`explorer.actions.${X.id}`}return{onRestore:_,actions:p?fk:E,selectedElement:[...c,...d],currentFolderId:l==null?void 0:l.id,overrideLabel:xe,handleClick:R,isActivable:p?P:k,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:I,onMoveSuccess:U,isDeleteModalOpen:n==="delete",onDeleteCancel:C,onDeleteSuccess:$,isPublishModalOpen:n==="publish",onPublishCancel:L,onPublishSuccess:O,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:D,onEditFolderSuccess:N,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:K,onEditResourceSuccess:M,isShareResourceOpen:n==="share",onShareResourceCancel:le,onShareResourceSuccess:G,onClearActionBar:F}}function hk({roles:e,rights:t,action:n}){const[r,s]=x.useState(!1),{user:i}=Ld(),o=rs();x.useEffect(()=>{u()},[e,t]);const a=async function(c){const d=c instanceof Array?c:[c];if(e instanceof Array){const h=await Y.rights().sessionHasAtLeastOneResourceRight(e,d);s(h)}else{const h=await Y.rights().sessionHasResourceRight(e,d);s(h)}},l=async function(c){if(e instanceof Array){const d=await Y.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);s(d)}else{const d=await Y.rights().sessionHasResourceRightForEachList(e,c);s(d)}},u=async function(){var c,d,h;if(e===void 0){s(!0);return}if(o&&((d=(c=t[0])==null?void 0:c.trashedBy)!=null&&d.includes(i==null?void 0:i.userId))&&n==="restore"&&!((h=t[0])!=null&&h.trashed)){s(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await a(t);else{const p=t.map(m=>m.rights);await l(p)}else s(!1);else typeof t=="string"?await a(t):await a(t.rights)};return{visible:r,refreshState:u}}function pk({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=pe(),{overrideLabel:o}=Ny(),{visible:a}=hk({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:l}=je(),u=rs();return a?f.jsx(f.Fragment,{children:r}):s?s():u&&!a?f.jsx(Jr,{type:"button",color:"primary",variant:"filled",onClick:()=>{l(!0)},children:i(o(n))}):f.jsx(f.Fragment,{})}const mk=x.lazy(async()=>await ye(()=>import("./ShareResourceModal.js"),["ShareResourceModal.js","Tooltip.js"])),gk=x.lazy(async()=>await ye(()=>import("./DeleteModal.js"),[])),vk=x.lazy(async()=>await ye(()=>import("./MoveModal.js"),[])),yk=x.lazy(async()=>await ye(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),wk=x.lazy(async()=>await ye(()=>import("./EditResourceModal.js"),["EditResourceModal.js","index.esm.js","TextArea.js"])),xk=x.lazy(async()=>await ye(()=>import("./PublishModal.js"),["PublishModal.js","index.esm.js","TextArea.js"]));function Sk(){const{t:e}=pe(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:s,isPublishModalOpen:i,isActionBarOpen:o,isEditFolderOpen:a,overrideLabel:l,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:d,onEditResourceCancel:h,onEditResourceSuccess:p,isShareResourceOpen:m,onShareResourceCancel:y,onShareResourceSuccess:S,onMoveCancel:g,onMoveSuccess:v,onDeleteCancel:w,onDeleteSuccess:b,onPublishCancel:E,onPublishSuccess:R,isActivable:k,handleClick:P}=Ny(),_=tf(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:[_((F,A)=>A&&f.jsx(Ea.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:F,children:f.jsx(V4,{children:t==null?void 0:t.filter(I=>I.available&&I.target==="actionbar").map(I=>k(I)&&f.jsx(pk,{resourceRights:n,roleExpected:I.right,action:I,children:f.jsx(Jr,{id:I.id,type:"button",color:"primary",variant:"filled",onClick:()=>{P(I)},children:e(l(I))},I.id)},I.id))})})),f.jsxs(x.Suspense,{fallback:f.jsx(Ve,{}),children:[r&&f.jsx(vk,{isOpen:r,onCancel:g,onSuccess:v}),s&&f.jsx(gk,{isOpen:s,onCancel:w,onSuccess:b}),i&&f.jsx(xk,{isOpen:i,onCancel:E,onSuccess:R}),a&&f.jsx(yk,{edit:!0,isOpen:a,onCancel:u,onSuccess:c}),d&&f.jsx(wk,{edit:!0,isOpen:d,onCancel:h,onSuccess:p}),m&&f.jsx(mk,{isOpen:m,onCancel:y,onSuccess:S})]})]})}const{http:v8}=_y.instance(),bk={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},Ck=()=>{var l;const{user:e,appCode:t}=yt(),n=bk[t],r=(l=e.apps.find(u=>u.isExternal&&u.address.includes("library")&&u.name.includes("library")))==null?void 0:l.address.split("?");let s=r==null?void 0:r[0];s!=null&&s.endsWith("/")||(s=`${s}/`);const i=r==null?void 0:r[1],o=`application%5B0%5D=${n}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${s}search/?${i}&${o}`}},Ek=x.lazy(async()=>await ye(()=>import("./EmptyScreenApp.js"),["EmptyScreenApp.js","EmptyScreen.js"])),Rk=x.lazy(async()=>await ye(()=>import("./EmptyScreenSearch.js"),["EmptyScreenSearch.js","EmptyScreen.js"])),kk=x.lazy(async()=>await ye(()=>import("./EmptyScreenError.js"),["EmptyScreenError.js","EmptyScreen.js"])),Pk=x.lazy(async()=>await ye(()=>import("./EmptyScreenNoContentInFolder.js"),["EmptyScreenNoContentInFolder.js","EmptyScreen.js"])),Ok=x.lazy(async()=>await ye(()=>import("./EmptyScreenTrash.js"),["EmptyScreenTrash.js","EmptyScreen.js"])),Nk=x.lazy(async()=>await ye(()=>import("./FoldersList.js"),["FoldersList.js","Card.js"])),jk=x.lazy(async()=>await ye(()=>import("./ResourcesList.js"),["ResourcesList.js","Tooltip.js","Card.js"])),Tk=()=>{const e=tk(),t=rs(),n=nk(),r=ot(),{data:s,isError:i,isLoading:o,isFetching:a,fetchNextPage:l}=ck(),u=(s==null?void 0:s.pages[0].folders.length)===0,c=(s==null?void 0:s.pages[0].resources.length)===0,d=u&&c;return i?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(kk,{})}):r.search&&d?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Rk,{})}):!d&&!o?f.jsxs(x.Suspense,{fallback:f.jsx(Ve,{}),children:[f.jsx(Nk,{data:s,isFetching:a}),f.jsx(jk,{data:s,isFetching:a,fetchNextPage:l})]}):e&&d?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Ek,{})}):n&&d&&!t?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Pk,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Ok,{})}):null};function _k({isOpen:e,onCancel:t=()=>({})}){const{t:n}=pe();return Pi.createPortal(f.jsxs(bn,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[f.jsx(bn.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),f.jsx(bn.Body,{children:f.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),f.jsx(bn.Footer,{children:f.jsx(Jr,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const Ik=()=>{const{appCode:e,currentApp:t}=yt(),{t:n}=pe(),[r,s]=x.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=ns(),a=ot(),{setSearchParams:l}=je();x.useEffect(()=>{const c=()=>r.includes("1")?!0:void 0,d=()=>r.includes("2")?!0:void 0,h=()=>r.includes("7")?!0:void 0;l({...a,filters:{owner:c(),public:h(),shared:d(),folder:o?o.id:"default"}})},[o,l,r]);const u=[{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)==ho.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==ho.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)==ho.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},Ak=()=>{const{appCode:e}=yt(),{t}=pe(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=Ik(),{formRef:i,inputSearch:o,handleInputSearchChange:a,handleKeyPress:l,handleSearchSubmit:u}=Py(),c=n.length>0?n.length:void 0;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",ref:i,children:[f.jsxs(yc,{id:"search",className:"input-group",children:[f.jsx(P0,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:o,onChange:a,onKeyDown:l}),f.jsx(b0,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:u})]}),f.jsxs(pr,{placement:"bottom-end",children:[f.jsx(pr.Trigger,{label:t("explorer.filters"),icon:f.jsx(l3,{width:20}),variant:"ghost",badgeContent:c}),f.jsx(pr.Menu,{children:r.map(d=>d.value==="0"?f.jsxs(x.Fragment,{children:[f.jsx(pr.RadioItem,{value:d.value,model:n,onChange:()=>s(d.value),children:d.label}),f.jsx(pr.Separator,{})]},"0"):f.jsx(pr.RadioItem,{value:d.value,model:n,onChange:()=>s(d.value),children:d.label},d.value))})]})]})},Lk=({id:e,selected:t,onSelect:n})=>{const{t:r}=pe();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(n3,{width:"20",height:"20"}),f.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},Mk=x.lazy(async()=>await ye(()=>import("./EditFolderModal.js"),["EditFolderModal.js","index.esm.js"])),Dk=()=>{const e=it(),{t}=pe(),[n,r]=z4(),s=ts(),i=rs(),o=gf(),{goToTrash:a,selectTreeItem:l,unfoldTreeItem:u,foldTreeItem:c,clearSelectedItems:d,clearSelectedIds:h}=je(),p=async y=>{await u(y,e)},m=()=>{d(),h(),r()};return s?f.jsxs(f.Fragment,{children:[f.jsx(DC,{data:s,selectedNodesIds:o,onTreeItemSelect:l,onTreeItemFold:c,onTreeItemUnfold:p}),f.jsx(Lk,{id:Xe.BIN,selected:i,onSelect:a}),f.jsx("div",{className:"d-grid my-16",children:f.jsx(Jr,{disabled:i,type:"button",color:"primary",variant:"outline",leftIcon:f.jsx(y3,{}),onClick:m,children:t("explorer.folder.new")})}),f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:n&&f.jsx(Mk,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},Fk=()=>{const e=ek(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=je();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},$k=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!0);return x.useEffect(()=>{(async()=>{const i=await HR();if(i){t(JSON.parse(i==null?void 0:i.showOnboardingTrash));return}t(!0)})()},[]),{isOnboardingTrash:e,isOpen:n,handleSavePreference:async()=>{await qR({onSuccess:()=>r(!1)})},setIsOpen:r}},zk=()=>{const e=ky(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=je();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},Uk=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0},Bk=x.lazy(async()=>await ye(()=>import("./OnboardingTrash.js"),[])),Vk=x.lazy(async()=>await ye(()=>import("./AppAction.js"),[])),Hk=x.lazy(async()=>await ye(()=>import("./Library.js"),[])),qk=x.lazy(async()=>await ye(()=>import("./TrashedResourceModal.js"),[]));function Qk(){const{currentApp:e}=yt(),{isOnboardingTrash:t,isOpen:n,setIsOpen:r,handleSavePreference:s}=$k(),{data:i}=Oy(),{isTrashedModalOpen:o,onTrashedCancel:a}=zk(),{isActionDisableModalOpen:l,onActionDisableCancel:u}=Fk();WS();const c=i==null?void 0:i.find(h=>h.id==="publish"),{libraryUrl:d}=Ck();return f.jsxs(f.Fragment,{children:[f.jsx(T3,{render:()=>Uk({workflow:"create",actions:i})?f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Vk,{})}):null,children:f.jsx(L3,{app:e})}),f.jsxs(Ms,{className:"flex-grow-1",children:[f.jsxs(Ms.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[f.jsx(Dk,{}),(c==null?void 0:c.available)&&d&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Hk,{url:d})})]}),f.jsxs(Ms.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[f.jsx(Ak,{}),f.jsx(sk,{}),f.jsx(Tk,{})]}),f.jsx(Sk,{}),t&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(Bk,{isOpen:n,setIsOpen:r,handleSavePreference:s})}),o&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(qk,{isOpen:o,onCancel:a})}),l&&f.jsx(x.Suspense,{fallback:f.jsx(Ve,{}),children:f.jsx(_k,{isOpen:l,onCancel:u})})]})]})}function Wk(){const{init:e}=yt();return e?e?f.jsx(pR,{children:f.jsx(Qk,{})}):null:f.jsx(Ve,{position:!1})}const Kk=document.getElementById("root"),Gk=new cw({queryCache:new Am({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});wy(Kk).render(f.jsx(x.StrictMode,{children:f.jsxs(PS,{client:Gk,children:[f.jsx(BS,{params:ml(),children:f.jsx(QS,{children:f.jsx(Wk,{})})}),f.jsx(mR,{initialIsOpen:!1})]})}));export{t8 as $,Tt as A,Jr as B,r5 as C,pr as D,o8 as E,yc as F,h3 as G,rp as H,c0 as I,c8 as J,u8 as K,Ve as L,bn as M,rs as N,d8 as O,YR as P,it as Q,pm as R,y3 as S,ts as T,DC as U,Es as V,ns as W,f8 as X,h8 as Y,i5 as Z,ye as _,Pi as a,g8 as a0,Uk as a1,v8 as a2,bk as a3,ml as a4,V as a5,n8 as a6,n3 as a7,vc as a8,Md as a9,r8 as aa,Di as ab,l8 as ac,B4 as ad,Ea as ae,Z3 as af,a8 as ag,s8 as ah,_e as ai,Pa as aj,Fi as ak,i8 as al,Jg as am,Qa as b,z4 as c,yt as d,je as e,Oy as f,Jk as g,Ad as h,Ni as i,f as j,P0 as k,A3 as l,d5 as m,ot as n,Ld as o,ZR as p,m8 as q,x as r,p8 as s,jt as t,pe as u,e8 as v,np as w,gc as x,Ka as y,J4 as z};
|
|
241
|
+
*/var xc=S,C8=mw;function E8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var T8=typeof Object.is=="function"?Object.is:E8,k8=C8.useSyncExternalStore,P8=xc.useRef,j8=xc.useEffect,O8=xc.useMemo,R8=xc.useDebugValue;CS.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var i=P8(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=O8(function(){function a(h){if(!u){if(u=!0,c=h,h=r(h),s!==void 0&&o.hasValue){var v=o.value;if(s(v,h))return f=v}return f=h}if(v=f,T8(c,h))return v;var w=r(h);return s!==void 0&&s(v,w)?v:(c=h,f=w)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return a(t())},p===null?void 0:function(){return a(p())}]},[t,n,r,s]);var l=k8(e,i[0],i[1]);return j8(function(){o.hasValue=!0,o.value=l},[l]),R8(l),l};SS.exports=CS;var N8=SS.exports;const A8=Xo(N8),{useDebugValue:I8}=Y,{useSyncExternalStoreWithSelector:_8}=A8;function M8(e,t=e.getState,n){const r=_8(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return I8(r),r}const O0=e=>{const t=typeof e=="function"?S8(e):e,n=(r,s)=>M8(t,r,s);return Object.assign(n,t),n},L8=e=>e?O0(e):O0,ES=async e=>{const t=await re.resource(e.app).searchContext(e);return{...t,folders:t.folders.filter(n=>!n.trashed)}},D8=async({searchParams:e,name:t,parentId:n})=>{const r={name:t,parentId:n,app:e.app,type:e.types[0]};return await re.resource(e.app).createFolder(r)},F8=async({folderId:e,searchParams:t,parentId:n,name:r})=>{const s={folderId:e,name:r,parentId:n,app:t.app,type:t.types[0]};return await re.resource(t.app).updateFolder(s)},$8=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await re.resource(e.app).trashAll(s,n)},z8=async({searchParams:e,resourceIds:t,useAssetIds:n,folderIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:r};return await re.resource(e.app).deleteAll(s,n)},B8=async({searchParams:e,resourceIds:t,folderIds:n,useAssetIds:r})=>{const s={application:e.app,resourceType:e.types[0],resourceIds:t,folderIds:n};return await re.resource(e.app).restoreAll(s,r)},V8=async({searchParams:e,resourceIds:t,folderId:n,folderIds:r,useAssetIds:s})=>{const i={application:e.app,folderId:n,resourceIds:t,folderIds:r};return await re.resource(e.app).moveToFolder(i,s)},U8=async({app:e,resourceId:t,rights:n})=>await re.share().saveRights(e,t,n),H8=async({app:e,params:t})=>await re.resource(e).update(t),q8=async e=>await re.rights().sessionHasWorkflowRights(e),W8=({searchParams:e,assetId:t})=>re.resource(e.app).gotoView(t),Q8=({searchParams:e,params:t})=>re.resource(e.app).create(t),G8=({searchParams:e,assetId:t})=>re.resource(e.app).gotoPrint(t);function cm(e){return e.filter((t,n)=>e.indexOf(t)===n)}function Ko(e,t){var r,s;let n;return(t==null?void 0:t.id)===e?t:((r=t==null?void 0:t.children)!=null&&r.length&&((s=t==null?void 0:t.children)==null||s.every(i=>(n=Ko(e,i),n===void 0))),n)}function K8(e,t){var r;const n=Ko(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]}const gn=document.querySelector("[data-ode-app]");let zi;function bc(){var e;if(zi)return zi;if(zi={app:zs.PORTAL,types:["folder"],filters:[],actions:[],trashActions:[],orders:[]},(e=gn==null?void 0:gn.dataset)!=null&&e.odeApp){const{odeApp:t}=gn.dataset;try{const n=JSON.parse(t);Object.assign(zi,n)}catch(n){console.error("[AppParams] could not parse app params from root data attributes:",gn==null?void 0:gn.dataset,n)}}else console.error("[AppParams] could not found app params from root data attributes:",gn==null?void 0:gn.dataset);return zi}function TS(e,t){return t.id===e&&t.children?t.children.length>0:t.children?t.children.some(n=>TS(t.id,n)):!1}function ga(e,t){return kS(e,t)||e}function kS(e,t,n){var s;const r=t(e,n);if((s=r==null?void 0:r.children)!=null&&s.length){const i=[];for(const o of(r==null?void 0:r.children)||[]){const l=kS(o,t,r);l&&i.push(l)}return{...r,children:i}}return r}class Sc{constructor(t){ws(this,"id");ws(this,"name");ws(this,"childNumber");ws(this,"section",!1);ws(this,"children",[]);this.folder=t,this.id=t.id,this.name=t.name,this.childNumber=t.childNumber}}const PS=(e,t,n)=>ga(e,r=>(r.id===n&&(r.children=t==null?void 0:t.map(s=>new Sc(s))),r)),{app:X8,types:Y8,filters:J8,orders:Z8}=bc(),lt=L8()((e,t)=>({filters:J8,orders:Z8,searchConfig:{minLength:1},searchParams:{app:X8,types:Y8,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:bt("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(r=>{const{searchParams:s}=r;return s.search!==n.search?n.search?{...r,selectedFolders:[],selectedNodesIds:[],selectedResources:[],currentFolder:void 0,searchParams:{...s,...n,trashed:!1,filters:{...s.filters,folder:void 0}}}:{...r,selectedFolders:[],selectedNodesIds:["default"],selectedResources:[],currentFolder:{id:"default"},searchParams:{...s,...n,trashed:!1,filters:{...s.filters}}}:{searchParams:{...s,...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();W8({searchParams:r,assetId:n.assetId})}catch(r){console.error("explorer open failed: ",r)}},printSelectedResource:()=>{try{const{searchParams:n,selectedResources:r,resourceIds:s}=t();if(r.length!==1)throw new Error("Cannot open more than 1 resource");const i=r.find(o=>o.id===s[0]);G8({searchParams:n,assetId:i.assetId})}catch(n){console.error("explorer print failed: ",n)}},openFolder:({folderId:n,folder:r})=>{const{searchParams:s,treeData:i}=t(),o=s.filters.folder,l=K8(n,i),a=cm([...l,n]);o!==n&&e(u=>({...u,folderIds:[],resourceIds:[],selectedNodesIds:a,currentFolder:r||{id:n},searchParams:{...s,search:void 0,filters:{...s.filters,folder:n},trashed:n===Et.BIN}}))},foldTreeItem:()=>e(n=>({...n,status:"fold"})),unfoldTreeItem:async(n,r)=>{const{treeData:s,searchParams:i}=t();if(e(o=>({...o,status:"unfold"})),!TS(n,s)){await r.prefetchInfiniteQuery({queryKey:["prefetchContext",{folderId:n,trashed:!1}],queryFn:async()=>await ES({...i,filters:{...i.filters,folder:n}})});const o=r.getQueryData(["prefetchContext",{folderId:n,trashed:!1}]);e(l=>{var a;return{...l,treeData:PS(s,(a=o==null?void 0:o.pages[0])==null?void 0:a.folders,n||Et.DEFAULT)}})}},selectTreeItem:n=>{const{treeData:r}=t(),{openFolder:s}=t().updaters,i=Ko(n,r);Jb()(),e(l=>({...l,searchParams:{...l.searchParams,search:void 0},status:"select",selectedResources:[]})),s({folder:i,folderId:n})},gotoPreviousFolder:()=>{const{selectedNodesIds:n,treeData:r}=t(),{openFolder:s}=t().updaters,i=n.length;if(i<2)return;const o=Ko(n[i-2],r);s({folder:o,folderId:(o==null?void 0:o.id)||Et.DEFAULT})},goToTrash:()=>e(n=>({...n,selectedNodesIds:[],selectedResources:[],resourceIds:[],folderIds:[],status:"select",searchParams:{...n.searchParams,search:void 0,filters:{folder:Et.BIN},trashed:!0},currentFolder:{id:Et.BIN}}))}})),Lt=()=>lt(e=>e.searchParams),dm=()=>lt(e=>e.selectedNodesIds),yi=()=>lt(e=>e.treeData),e_=()=>lt(e=>e.selectedFolders),jS=()=>lt(e=>e.selectedResources),t_=()=>lt(e=>e.searchConfig),va=()=>lt(e=>e.folderIds),ya=()=>lt(e=>e.resourceIds),Cc=()=>lt(e=>e.selectedResources.map(t=>t.assetId)),Ec=()=>lt(e=>e.selectedResources.filter(t=>t.assetId===t.id)),wi=()=>lt(e=>e.currentFolder),Ye=()=>lt(e=>e.updaters),xi=()=>{const e=wi();return(e==null?void 0:e.id)===Et.BIN},OS=()=>lt(e=>e.resourceIsTrash),n_=()=>lt(e=>e.resourceActionDisable),r_=()=>{const e=wi();return(e==null?void 0:e.id)==="default"},s_=()=>dm().length>1,i_=()=>lt(e=>e.status),RS=()=>{const e=Lt(),[t,n]=S.useState(""),r=t_(),s=i_(),i=S.useRef(null),{setSearchParams:o}=Ye(),l=c=>{const f=c.target.value;n(f.toString())},a=c=>{(c.key==="Enter"||c.key==="Return")&&(c.preventDefault(),o({search:t||void 0}))},u=c=>{c.preventDefault(),o({search:t||void 0})};return S.useEffect(()=>{const f=t.length==0||t.length>=r.minLength?{search:t||void 0}:{};o({...e,...f})},[t,r.minLength]),S.useEffect(()=>{s==="select"&&n("")},[s]),S.useEffect(()=>{n(()=>{var c;return((c=e.search)==null?void 0:c.toString())??""})},[e]),{formRef:i,inputSearch:t,handleInputSearchChange:l,handleKeyPress:a,handleSearchSubmit:u}};function o_(){const{appCode:e}=Ne(),t=dm(),n=xi(),r=wi(),{t:s}=se(["common",e]),{gotoPreviousFolder:i}=Ye(),{inputSearch:o}=RS(),l=s("explorer.tree.trash"),a=s("explorer.tree.search"),u=s("explorer.filters.mine",{ns:e}),c=(r==null?void 0:r.name)||u;return d.jsx("div",{className:"py-16",children:t.length>1&&!n?d.jsxs("div",{className:"d-flex align-items-center gap-8",children:[d.jsx(Xn,{icon:d.jsx(fT,{}),variant:"ghost",color:"tertiary","aria-label":s("back"),className:"ms-n16",onClick:i}),d.jsx("p",{className:"body py-8 text-truncate",children:d.jsx("strong",{children:c})})]}):d.jsx("h2",{className:"body py-8 fw-bold",children:o.length!==0?a:n?l:u})})}function a_(e,{parentId:t,newFolder:n}){return ga(e,r=>{var s;if(r.id===t){const i=[...((s=r.folder)==null?void 0:s.ancestors)||[]],o=cm([...i,r.id]);return{...r,children:[...r.children||[],new Sc({...n,ancestors:o})]}}else return r})}function l_(e,{folders:t}){return ga(e,n=>{if(!t.includes(n.id))return n})}function u_(e,{destinationId:t,folders:n}){return ga(e,(r,s)=>{var i,o;if(t===r.id){const l=[...((i=r.folder)==null?void 0:i.ancestors)||[]],a=cm([...l,r.id]),u=[...r.children||[]],c=((o=r.children)==null?void 0:o.map(p=>p.id))||[];for(const p of n)if(!c.includes(p)){const h=Ko(p,e);h&&u.push({...h,folder:{...h==null?void 0:h.folder,ancestors:a}})}return{...r,children:u}}else return n.includes(r.id)&&t!==(s==null?void 0:s.id)?void 0:r})}function c_(e,{folderId:t,newFolder:n}){return ga(e,r=>r.id===t?new Sc(n):r)}const{actions:R0,app:d_}=bc(),NS=()=>sh({queryKey:["actions"],queryFn:async()=>{const e=R0.map(n=>n.workflow);return await q8(e)},select:e=>R0.map(t=>({...t,available:e[t.workflow]}))}),f_=()=>{const e=at(),{appCode:t}=Ne(),{t:n}=se(),r=_t(),s=Lt(),i=wi(),o=yi(),{setTreeData:l,setSearchParams:a,setSearchConfig:u}=Ye(),{filters:c,trashed:f,search:p}=s,h=["context",{folderId:c.folder,filters:c,trashed:f,search:p}];return q3({queryKey:h,queryFn:async({pageParam:v=0})=>await ES({...s,pagination:{...s.pagination,startIdx:v}}),onError(v){typeof v=="string"&&e.error(n(v))},onSuccess:async v=>{var b,g,m;await r.cancelQueries({queryKey:h});const w=[...((b=v==null?void 0:v.pages[0])==null?void 0:b.folders)??[]];(g=v==null?void 0:v.pages[0])!=null&&g.searchConfig&&u(v.pages[0].searchConfig),s.search||((i==null?void 0:i.id)==="default"?l({id:Et.DEFAULT,section:!0,children:w.map(y=>new Sc(y)),name:n("explorer.filters.mine",{ns:t})}):l(PS(o,w,s.filters.folder||Et.DEFAULT))),a({...s,pagination:(m=v==null?void 0:v.pages[(v==null?void 0:v.pages.length)-1])==null?void 0:m.pagination})},retry:!1,getNextPageParam:v=>v.pagination.startIdx+v.pagination.pageSize})},r6=()=>{const e=at(),t=_t(),n=Lt(),r=yi(),s=va(),i=Cc(),o=ya(),l=Ec().length>0,a=l?i:o,{clearSelectedItems:u,clearSelectedIds:c,setTreeData:f,setSearchParams:p}=Ye(),{filters:h,trashed:v}=n,w=["context",{folderId:h.folder,filters:h,trashed:v}];return Jn({mutationFn:async()=>await $8({searchParams:n,folderIds:s,resourceIds:a,useAssetIds:l}),onError(b){typeof b=="string"&&e.error(bt(b))},onSuccess:async b=>{if(await t.cancelQueries({queryKey:w}),t.getQueryData(w))return e.success(bt("explorer.trash.title")),t.setQueryData(w,m=>{var y;if(m){const x={...m,pages:m==null?void 0:m.pages.map(T=>{var E;return{...T,folders:T.folders.filter(j=>!s.includes(j.id)),pagination:{...T.pagination,maxIdx:((E=T==null?void 0:T.pagination)==null?void 0:E.maxIdx)-b.resources.length},resources:T.resources.filter(j=>l?!i.includes(j.assetId):!a.includes(j.id))}})},C=l_(r,{folders:s});return f(C),p({...n,pagination:{...n.pagination,maxIdx:((y=n.pagination)==null?void 0:y.maxIdx)-b.resources.length}}),x}})},onSettled:()=>{u(),c()}})},p_=()=>{const e=at(),t=_t(),n=Lt(),r=va(),s=Cc(),i=ya(),o=Ec().length>0,l=o?s:i,{setFolderIds:a,setResourceIds:u,setSelectedResources:c,setSelectedFolders:f}=Ye(),{filters:p,trashed:h}=n,v=["context",{folderId:p.folder,filters:p,trashed:h}];return Jn({mutationFn:async()=>await B8({searchParams:n,folderIds:r,resourceIds:l,useAssetIds:o}),onError(w){typeof w=="string"&&e.error(bt(w))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:v}),t.getQueryData(v))return e.success(bt("explorer.trash.toast")),t.setQueryData(v,b=>{if(b)return{...b,pages:b==null?void 0:b.pages.map(g=>({...g,folders:g.folders.filter(m=>!r.includes(m.id)),resources:g.resources.filter(m=>o?!s.includes(m.assetId):!l.includes(m.id))}))}})},onSettled:()=>{u([]),c([]),a([]),f([])}})},s6=()=>{const e=at(),t=_t(),n=Lt(),r=va(),s=Cc(),i=ya(),o=Ec().length>0,l=o?s:i,{clearSelectedItems:a,clearSelectedIds:u}=Ye(),{filters:c,trashed:f}=n,p=["context",{folderId:c.folder,filters:c,trashed:f}];return Jn({mutationFn:async()=>await z8({searchParams:n,folderIds:r,resourceIds:l,useAssetIds:o}),onError(h){typeof h=="string"&&e.error(bt(h))},onSuccess:async()=>{if(await t.cancelQueries({queryKey:p}),t.getQueryData(p))return e.success(bt("explorer.removed.from.trash")),t.setQueryData(p,v=>{if(v)return{...v,pages:v==null?void 0:v.pages.map(b=>({...b,folders:b.folders.filter(g=>!r.includes(g.id)),resources:b.resources.filter(g=>o?!s.includes(g.assetId):!l.includes(g.id))}))}})},onSettled:()=>{a(),u()}})},i6=()=>{const e=at(),t=_t(),n=Lt(),r=yi(),s=va(),i=Cc(),o=ya(),l=Ec().length>0,a=l?i:o,{clearSelectedIds:u,clearSelectedItems:c,setTreeData:f,setSearchParams:p}=Ye(),{filters:h,trashed:v}=n,w=["context",{folderId:h.folder,filters:h,trashed:v}];return Jn({mutationFn:async b=>await V8({searchParams:n,folderId:b,folderIds:s,resourceIds:a,useAssetIds:l}),onError(b){typeof b=="string"&&e.error(bt(b))},onSuccess:async(b,g)=>{if(t.getQueryData(w))return t.setQueryData(w,y=>{var x;if(y){const C=u_(r,{destinationId:g,folders:s}),T={...y,pages:y==null?void 0:y.pages.map(E=>{var j;return{...E,folders:E.folders.filter(P=>!s.includes(P.id)),pagination:{...E.pagination,maxIdx:((j=E.pagination)==null?void 0:j.maxIdx)-b.resources.length},resources:E.resources.filter(P=>l?!i.includes(P.assetId):!a.includes(P.id))}})};return f(C),p({...n,pagination:{...n.pagination,maxIdx:((x=n.pagination)==null?void 0:x.maxIdx)-b.resources.length}}),T}})},onSettled:()=>{c(),u()}})},o6=()=>{const e=at(),t=_t(),n=Lt(),r=yi(),{setTreeData:s}=Ye(),{filters:i,trashed:o}=n,l=["context",{folderId:i.folder,filters:i,trashed:o}];return Jn({mutationFn:async({name:a,parentId:u})=>await D8({searchParams:n,name:a,parentId:u}),onError(a){typeof a=="string"&&e.error(bt(a))},onSuccess:async(a,u)=>{await t.cancelQueries({queryKey:l});const c=t.getQueryData(l),f={...a,parentId:u.parentId,children:[],rights:[`creator:${a==null?void 0:a.creator_id}`]};if(c)return t.setQueryData(l,p=>{if(p){const h={...p,pages:p==null?void 0:p.pages.map(w=>({...w,folders:[...w.folders,f]}))},v=a_(r,{parentId:u.parentId,newFolder:f});return s(v),h}})}})},a6=()=>{const e=at(),t=_t(),n=Lt(),r=yi(),{setFolderIds:s,setSelectedFolders:i,setTreeData:o}=Ye(),{filters:l,trashed:a}=n,u=["context",{folderId:l.folder,filters:l,trashed:a}];return Jn({mutationFn:async({folderId:c,name:f,parentId:p})=>await F8({searchParams:n,folderId:c,parentId:p,name:f}),onError(c){typeof c=="string"&&e.error(bt(c))},onSuccess:async(c,f)=>{if(await t.cancelQueries({queryKey:u}),t.getQueryData(u))return t.setQueryData(u,h=>{if(h){const v={...h,pages:h==null?void 0:h.pages.map(b=>({...b,folders:b.folders.map(g=>g.id===c.id?{...c,parentId:f.parentId,rights:g.rights}:g)}))},w=c_(r,{folderId:f.folderId,newFolder:c});return o(w),v}})},onSettled:()=>{s([]),i([])}})},h_=()=>{const e=at(),t=_t(),n=Lt(),{setResourceIds:r,setSelectedResources:s}=Ye(),{filters:i,trashed:o,app:l}=n,a=["context",{folderId:i.folder,filters:i,trashed:o}];return Jn({mutationFn:async({resourceId:u,rights:c})=>await U8({app:l,resourceId:u,rights:c}),onError(u){typeof u=="string"&&e.error(bt("explorer.shared.status.error"))},onSuccess:async(u,c)=>{if(await t.cancelQueries({queryKey:a}),t.getQueryData(a))return e.success(bt("explorer.shared.status.saved")),t.setQueryData(a,p=>{if(p)return{...p,pages:p==null?void 0:p.pages.map(h=>({...h,resources:h.resources.map(v=>{if(v.assetId===(c==null?void 0:c.resourceId)){let w=[`creator:${v.creatorId}`];return(c==null?void 0:c.rights.length)>=1&&(w=[...w,...c.rights.flatMap(b=>b.actions.map(g=>`${b.type}:${b.id}:${g.id}`))]),{...v,rights:w}}else return v})}))}})},onSettled:()=>{r([]),s([])}})},m_=()=>{const e=at(),t=_t(),n=Lt(),{filters:r,trashed:s,app:i}=n,o=["context",{folderId:r.folder,filters:r,trashed:s}];return Jn({mutationFn:async l=>await H8({app:i,params:l}),onError(l){typeof l=="string"&&e.error(bt(l))},onSuccess:async(l,a)=>{if(await t.cancelQueries({queryKey:o}),t.getQueryData(o))return t.setQueryData(o,c=>{if(c)return{...c,pages:c==null?void 0:c.pages.map(f=>({...f,resources:f.resources.map(p=>{if(p.assetId===(a==null?void 0:a.entId)){const{name:h,thumbnail:v,public:w,description:b,slug:g,...m}=a;return{...p,...m,name:h,thumbnail:typeof v=="string"?v:URL.createObjectURL(v),public:w,description:b,slug:g}}else return p})}))}})}})},l6=()=>{const e=at(),t=_t(),n=Lt(),{user:r}=ha(),s=["context",{folderId:n.filters.folder,filters:n.filters,trashed:n.trashed}];return Jn({mutationFn:async i=>await Q8({searchParams:n,params:i}),onError(i){typeof i=="string"&&e.error(bt(i))},onSuccess:async(i,o)=>{var c,f,p;await t.cancelQueries({queryKey:s});const l=t.getQueryData(s),{thumbnail:a}=o,u={...o,thumbnail:a?URL.createObjectURL(a):"",application:d_,assetId:i._id||i.entId||"",id:i._id||i.entId||"",creatorId:r==null?void 0:r.userId,creatorName:r==null?void 0:r.username,createdAt:Date.now(),slug:o.slug||"",modifiedAt:((c=i.modified)==null?void 0:c.$date)||"",modifierId:((f=i.author)==null?void 0:f.userId)||"",modifierName:((p=i.author)==null?void 0:p.username)||"",updatedAt:Date.now(),trashed:!1,rights:[`creator:${r==null?void 0:r.userId}`]};if(l)return t.setQueryData(s,h=>{if(h)return{...h,pages:h==null?void 0:h.pages.map(v=>({...v,resources:[u,...v.resources]}))}})}})},{trashActions:g_}=bc();function AS(){const[e,t]=S.useState(!1),[n,r]=S.useState("void"),[s,i]=S.useState(),o=wi(),l=ya(),a=jS(),u=e_(),c=va(),f=xi(),p=p_(),h=OS(),{openResource:v,printSelectedResource:w,openFolder:b,clearSelectedItems:g,clearSelectedIds:m}=Ye(),{data:y}=NS();S.useEffect(()=>{if(l.length===0&&c.length===0){t(!1);return}if(h){t(!1);return}t(!0)},[l,c]);async function x(ne){var ue;switch((ue=document.getElementById("root"))==null||ue.setAttribute("aria-hidden","true"),i(ne),ne.id){case ct.OPEN:return l.length>0?v(a[0]):b({folder:u[0],folderId:u[0].id});case ct.MOVE:return r("move");case ct.PRINT:return w();case ct.DELETE:return r("delete");case ct.RESTORE:return await E();case ct.PUBLISH:return r("publish");case ct.UPD_PROPS:case"edit":return Z();case ct.SHARE:return r("share");default:throw Error(`Unknown action: ${ne.id}`)}}function C(ne){const ue=l.length+c.length,fe=l.length===1||c.length===1,we=ue===1,je=c.length===0;switch(ne.id){case ct.OPEN:return we;case ct.MANAGE:return fe;case ct.PUBLISH:return fe&&je;case ct.UPD_PROPS:return fe&&je;case ct.SHARE:return je&&fe;case ct.PRINT:return fe&&je;case"edit":return we;default:return!0}}const T=()=>!0;async function E(){try{if(f)await p.mutate();else throw new Error("Cannot restore untrashed resources");j()}catch(ne){console.error(ne)}}function j(){var ne;r("void"),s!=null&&s.id&&((ne=document.getElementById(s==null?void 0:s.id))==null||ne.focus())}const P=ne=>()=>{n===ne&&(j(),g(),m())},M=P("move"),N=P("move"),R=P("delete"),I=P("delete"),L=P("publish"),k=P("publish"),A=P("edit_folder"),$=P("edit_folder"),_=P("edit_resource"),F=P("edit_resource"),B=P("share"),J=P("share");function Z(){l&&l.length>0?r("edit_resource"):r("edit_folder")}function le(ne){return ne.id==="edit"&&c.length>0?"explorer.rename":`explorer.actions.${ne.id}`}return{onRestore:E,actions:f?g_:y,selectedElement:[...a,...u],currentFolderId:o==null?void 0:o.id,overrideLabel:le,handleClick:x,isActivable:f?T:C,isActionBarOpen:e,isMoveModalOpen:n==="move",onMoveCancel:M,onMoveSuccess:N,isDeleteModalOpen:n==="delete",onDeleteCancel:I,onDeleteSuccess:R,isPublishModalOpen:n==="publish",onPublishCancel:k,onPublishSuccess:L,isEditFolderOpen:n==="edit_folder",onEditFolderCancel:$,onEditFolderSuccess:A,isEditResourceOpen:n==="edit_resource",onEditResourceCancel:F,onEditResourceSuccess:_,isShareResourceOpen:n==="share",onShareResourceCancel:J,onShareResourceSuccess:B,onClearActionBar:j}}function v_({roles:e,rights:t,action:n}){const[r,s]=S.useState(!1),{user:i}=ha(),o=xi();S.useEffect(()=>{u()},[e,t]);const l=async function(c){const f=c instanceof Array?c:[c];if(e instanceof Array){const p=await re.rights().sessionHasAtLeastOneResourceRight(e,f);s(p)}else{const p=await re.rights().sessionHasResourceRight(e,f);s(p)}},a=async function(c){if(e instanceof Array){const f=await re.rights().sessionHasAtLeastOneResourceRightForEachList(e,c);s(f)}else{const f=await re.rights().sessionHasResourceRightForEachList(e,c);s(f)}},u=async function(){var c,f,p;if(e===void 0){s(!0);return}if(o&&((f=(c=t[0])==null?void 0:c.trashedBy)!=null&&f.includes(i==null?void 0:i.userId))&&n==="restore"&&!((p=t[0])!=null&&p.trashed)){s(!0);return}if(t instanceof Array)if(t.length>0)if(typeof t[0]=="string")await l(t);else{const h=t.map(v=>v.rights);await a(h)}else s(!1);else typeof t=="string"?await l(t):await l(t.rights)};return{visible:r,refreshState:u}}function y_({resourceRights:e,roleExpected:t,action:n,children:r,renderWhenForbidden:s}){const{t:i}=se(),{overrideLabel:o}=AS(),{visible:l}=v_({roles:t,rights:e,action:n==null?void 0:n.id}),{setResourceActionDisable:a}=Ye(),u=xi();return l?d.jsx(d.Fragment,{children:r}):s?s():u&&!l?d.jsx(Pe,{type:"button",color:"primary",variant:"filled",onClick:()=>{a(!0)},children:i(o(n))}):d.jsx(d.Fragment,{})}const w_=S.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>wc),void 0)).ShareModal})),x_=S.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>wc),void 0)).PublishModal})),b_=S.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>wc),void 0)).ResourceModal})),S_=S.lazy(async()=>await $e(()=>import("./DeleteModal.js"),[])),C_=S.lazy(async()=>await $e(()=>import("./MoveModal.js"),[])),E_=S.lazy(async()=>await $e(()=>import("./EditFolderModal.js"),[]));function T_(){const{t:e}=se(),{actions:t,selectedElement:n,isMoveModalOpen:r,isDeleteModalOpen:s,isPublishModalOpen:i,isActionBarOpen:o,isEditFolderOpen:l,overrideLabel:a,onEditFolderCancel:u,onEditFolderSuccess:c,isEditResourceOpen:f,onEditResourceCancel:p,onEditResourceSuccess:h,isShareResourceOpen:v,onShareResourceCancel:w,onShareResourceSuccess:b,onMoveCancel:g,onMoveSuccess:m,onDeleteCancel:y,onDeleteSuccess:x,onPublishCancel:C,onPublishSuccess:T,isActivable:E,handleClick:j}=AS(),P=jS(),M=h_(),N=m_(),R=Rh(o,{from:{opacity:0,transform:"translateY(100%)"},enter:{opacity:1,transform:"translateY(0)"},leave:{opacity:0,transform:"translateY(100%)"}});return d.jsxs(d.Fragment,{children:[R((I,L)=>L&&d.jsx(vu.div,{className:"position-fixed bottom-0 start-0 end-0 z-3",style:I,children:d.jsx(Fb,{children:t==null?void 0:t.filter(k=>k.available&&k.target==="actionbar").map(k=>E(k)&&d.jsx(y_,{resourceRights:n,roleExpected:k.right,action:k,children:d.jsx(Pe,{id:k.id,type:"button",color:"primary",variant:"filled",onClick:()=>{j(k)},children:e(a(k))},k.id)},k.id))})})),d.jsxs(S.Suspense,{fallback:d.jsx(et,{}),children:[r&&d.jsx(C_,{isOpen:r,onCancel:g,onSuccess:m}),s&&d.jsx(S_,{isOpen:s,onCancel:y,onSuccess:x}),i&&d.jsx(x_,{isOpen:i,resource:P[0],onCancel:C,onSuccess:T}),l&&d.jsx(E_,{edit:!0,isOpen:l,onCancel:u,onSuccess:c}),f&&d.jsx(b_,{mode:"update",actions:t,isOpen:f,selectedResource:P[0],updateResource:N,onCancel:p,onSuccess:h}),v&&d.jsx(w_,{isOpen:v,resource:P[0],updateResource:N,shareResource:M,onCancel:w,onSuccess:b})]})]})}const k_={blog:"Blog",mindmap:"MindMap",scrapbook:"ScrapBook",collaborativewall:"CollaborativeWall",timelinegenerator:"TimelineGenerator",wiki:"Wiki",exercizer:"Exercizer"},P_=()=>{var a;const{user:e,appCode:t}=Ne(),n=k_[t],r=(a=e.apps.find(u=>u.isExternal&&u.address.includes("library")&&u.name.includes("library")))==null?void 0:a.address.split("?");let s=r==null?void 0:r[0];s!=null&&s.endsWith("/")||(s=`${s}/`);const i=r==null?void 0:r[1],o=`application%5B0%5D=${n}&page=1&sort_field=views&sort_order=desc`;return{libraryUrl:`${s}search/?${i}&${o}`}},j_=S.lazy(async()=>await $e(()=>import("./EmptyScreenApp.js"),[])),O_=S.lazy(async()=>await $e(()=>import("./EmptyScreenSearch.js"),[])),R_=S.lazy(async()=>await $e(()=>import("./EmptyScreenError.js"),[])),N_=S.lazy(async()=>await $e(()=>import("./EmptyScreenNoContentInFolder.js"),[])),A_=S.lazy(async()=>await $e(()=>import("./EmptyScreenTrash.js"),[])),I_=S.lazy(async()=>await $e(()=>import("./FoldersList.js"),[])),__=S.lazy(async()=>await $e(()=>import("./ResourcesList.js"),[])),M_=()=>{const e=r_(),t=xi(),n=s_(),r=Lt(),{data:s,isError:i,isLoading:o,isFetching:l,fetchNextPage:a}=f_(),u=(s==null?void 0:s.pages[0].folders.length)===0,c=(s==null?void 0:s.pages[0].resources.length)===0,f=u&&c;return i?d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(R_,{})}):r.search&&f?d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(O_,{})}):!f&&!o?d.jsxs(S.Suspense,{fallback:d.jsx(et,{}),children:[d.jsx(I_,{data:s,isFetching:l}),d.jsx(__,{data:s,isFetching:l,fetchNextPage:a})]}):e&&f?d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(j_,{})}):n&&f&&!t?d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(N_,{})}):t&&(s==null?void 0:s.pages[0].resources.length)===0?d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(A_,{})}):null};function L_({isOpen:e,onCancel:t=()=>({})}){const{t:n}=se();return Nn.createPortal(d.jsxs(me,{isOpen:e,onModalClose:t,id:"trash_action_disable_resource",children:[d.jsx(me.Header,{onModalClose:()=>t(),children:n("explorer.trash.action.modal.title")}),d.jsx(me.Body,{children:d.jsx("p",{className:"body",children:n("explorer.trash.action.modal.text")})}),d.jsx(me.Footer,{children:d.jsx(Pe,{color:"primary",onClick:t,type:"button",variant:"outline",children:n("close")})})]}),document.getElementById("portal"))}const D_=()=>{const{appCode:e,currentApp:t}=Ne(),{t:n}=se(),[r,s]=S.useState(""),i=c=>{if(c==="0"){s("");return}s(c)},o=wi(),l=Lt(),{setSearchParams:a}=Ye();S.useEffect(()=>{const c=()=>r.includes("1")?!0:void 0,f=()=>r.includes("2")?!0:void 0,p=()=>r.includes("7")?!0:void 0;a({...l,filters:{owner:c(),public:p(),shared:f(),folder:o?o.id:"default"}})},[o,a,r]);const u=[{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)==zs.EXERCIZER?[{label:"Exercices interactifs",value:"3"}]:[],...(t==null?void 0:t.displayName)==zs.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)==zs.BLOG?[{label:n("explorer.filter.public",{ns:e}),value:"7"}]:[]];return{selectedFilters:r,options:u,handleOnSelectFilter:i}},F_=()=>{const{appCode:e}=Ne(),{t}=se(),{selectedFilters:n,options:r,handleOnSelectFilter:s}=D_(),{formRef:i,inputSearch:o,handleInputSearchChange:l,handleKeyPress:a,handleSearchSubmit:u}=RS(),c=n.length>0?n.length:void 0;return d.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",ref:i,children:[d.jsxs(Ue,{id:"search",className:"input-group",children:[d.jsx(Ar,{type:"search",placeholder:t("explorer.label.search",{ns:e}),size:"lg",noValidationIcon:!0,value:o,onChange:l,onKeyDown:a}),d.jsx(rm,{type:"submit","aria-label":t("explorer.label.search",{ns:e}),onClick:u})]}),d.jsxs(be,{placement:"bottom-end",children:[d.jsx(be.Trigger,{label:t("explorer.filters"),icon:d.jsx(OT,{width:20}),variant:"ghost",badgeContent:c}),d.jsx(be.Menu,{children:r.map(f=>f.value==="0"?d.jsxs(S.Fragment,{children:[d.jsx(be.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label}),d.jsx(be.Separator,{})]},"0"):d.jsx(be.RadioItem,{value:f.value,model:n,onChange:()=>s(f.value),children:f.label},f.value))})]})]})},$_=({id:e,selected:t,onSelect:n})=>{const{t:r}=se();return d.jsx("div",{className:"treeview",children:d.jsx("ul",{role:"tree",className:"m-0 p-0",children:d.jsx("li",{id:e,role:"treeitem","aria-selected":t,children:d.jsx("div",{children:d.jsx("div",{className:"action-container",children:d.jsx("div",{onClick:n,role:"button",tabIndex:0,children:d.jsxs("div",{className:"d-flex align-items-center gap-8 py-8 ps-24",children:[d.jsx($w,{width:"20",height:"20"}),d.jsx("span",{children:r("explorer.tree.trash")})]})})})})})})})},z_=S.lazy(async()=>await $e(()=>import("./EditFolderModal.js"),[])),B_=()=>{const e=_t(),{t}=se(),[n,r]=tm(),s=yi(),i=xi(),o=dm(),{goToTrash:l,selectTreeItem:a,unfoldTreeItem:u,foldTreeItem:c,clearSelectedItems:f,clearSelectedIds:p}=Ye(),h=async w=>{await u(w,e)},v=()=>{f(),p(),r()};return s?d.jsxs(d.Fragment,{children:[d.jsx(uS,{data:s,selectedNodesIds:o,onTreeItemSelect:a,onTreeItemFold:c,onTreeItemUnfold:h}),d.jsx($_,{id:Et.BIN,selected:i,onSelect:l}),d.jsx("div",{className:"d-grid my-16",children:d.jsx(Pe,{disabled:i,type:"button",color:"primary",variant:"outline",leftIcon:d.jsx(zT,{}),onClick:v,children:t("explorer.folder.new")})}),d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:n&&d.jsx(z_,{edit:!1,isOpen:n,onSuccess:r,onCancel:r})})]}):null},V_=()=>{const e=n_(),{clearSelectedIds:t,setResourceActionDisable:n,clearSelectedItems:r}=Ye();return{isActionDisableModalOpen:e,onActionDisableCancel:()=>{t(),r(),n(!1)}}},U_=()=>{const e=OS(),{clearSelectedIds:t,setResourceIsTrash:n,clearSelectedItems:r}=Ye();return{isTrashedModalOpen:e,onTrashedCancel:()=>{t(),r(),n(!1)}}},H_=({workflow:e,actions:t})=>{const n=t==null?void 0:t.filter(r=>r.id===e&&r.available);return n&&n.length>0};const q_=S.lazy(async()=>({default:(await $e(()=>Promise.resolve().then(()=>wc),void 0)).OnboardingModal})),W_=S.lazy(async()=>await $e(()=>import("./AppAction.js"),[])),Q_=S.lazy(async()=>await $e(()=>import("./Library.js"),[])),G_=S.lazy(async()=>await $e(()=>import("./TrashedResourceModal.js"),[]));function K_(){const{currentApp:e}=Ne(),{data:t}=NS(),{isTrashedModalOpen:n,onTrashedCancel:r}=U_(),{isActionDisableModalOpen:s,onActionDisableCancel:i}=V_(),{libraryUrl:o}=P_();n2();const l=t==null?void 0:t.find(a=>a.id==="publish");return d.jsxs(d.Fragment,{children:[d.jsx(Bb,{render:()=>H_({workflow:"create",actions:t})?d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(W_,{})}):null,children:d.jsx(m2,{app:e})}),d.jsxs(Ys,{className:"flex-grow-1",children:[d.jsxs(Ys.Col,{sm:"3",lg:"2",xl:"3",className:"border-end pt-16 pe-16 d-none d-lg-block",as:"aside",children:[d.jsx(B_,{}),(l==null?void 0:l.available)&&o&&d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(Q_,{url:o})})]}),d.jsxs(Ys.Col,{sm:"4",md:"8",lg:"6",xl:"9",children:[d.jsx(F_,{}),d.jsx(o_,{}),d.jsx(M_,{})]}),d.jsx(T_,{}),d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(q_,{id:"showOnboardingTrash",items:[{src:"onboarding/illu-trash-menu.svg",alt:"explorer.modal.onboarding.trash.screen1.alt",text:"explorer.modal.onboarding.trash.screen1.title"},{src:"onboarding/illu-trash-notif.svg",alt:"explorer.modal.onboarding.trash.screen2.alt",text:"explorer.modal.onboarding.trash.screen2.alt"},{src:"onboarding/illu-trash-delete.svg",alt:"explorer.modal.onboarding.trash.screen3.alt",text:"explorer.modal.onboarding.trash.screen3.title"}],modalOptions:{title:"explorer.modal.onboarding.trash.title",prevText:"explorer.modal.onboarding.trash.prev",nextText:"explorer.modal.onboarding.trash.next",closeText:"explorer.modal.onboarding.trash.close"}})}),n&&d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(G_,{isOpen:n,onCancel:r})}),s&&d.jsx(S.Suspense,{fallback:d.jsx(et,{}),children:d.jsx(L_,{isOpen:s,onCancel:i})})]})]})}function X_(){const{init:e}=Ne();return e?e?d.jsx(wS,{children:d.jsx(K_,{})}):null:d.jsx(et,{position:!1})}const Y_=document.getElementById("root"),J_=new mE({queryCache:new o1({onError:e=>{e==="0090"&&window.location.replace("/auth/login")}}),defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});bS(Y_).render(d.jsx(S.StrictMode,{children:d.jsxs(A3,{client:J_,children:[d.jsx(Ub,{params:bc(),children:d.jsx(Hb,{children:d.jsx(X_,{})})}),d.jsx(b8,{initialIsOpen:!1})]})}));export{n6 as A,Pe as B,Jb as C,vu as D,gI as E,Ue as F,jI as G,tt as H,Ar as I,Xo as J,Lt as K,et as L,me as M,ya as N,K as O,VI as P,wc as Q,Y as R,zT as S,uS as T,$e as _,Ne as a,se as b,Ye as c,NS as d,wi as e,l6 as f,pc as g,vI as h,ms as i,d as j,Nn as k,s6 as l,r6 as m,xi as n,i6 as o,e_ as p,jS as q,S as r,_t as s,yi as t,tm as u,o6 as v,a6 as w,Lw as x,es as y,va as z};
|