@ukpc-lib/react 0.4.3 → 0.4.4
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/components/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/{index.module-88a5ea58.cjs → index.module-2dd750b7.cjs} +1 -1
- package/dist/{index.module-82b361d2.js → index.module-c9025b11.js} +6 -6
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/dist/share/interceptor/index.d.ts +1 -0
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-19e3c363.js → index-f07fb4a6.js} +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("react"),m=require("../index.module-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("react"),m=require("../index.module-2dd750b7.cjs"),K=require("moment"),N=require("@mui/material");require("@r2wc/react-to-web-component");require("axios");const on=require("react-router-dom");require("react-query");function Jn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const F=Jn(j),Qn=e=>{var n,o;const{tabs:t}=e,r=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),s.jsxs(s.Fragment,{children:[s.jsx("style",{children:`
|
|
2
2
|
.tab-title {
|
|
3
3
|
min-width: 90px;
|
|
4
4
|
padding: 5px 16px;
|
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as N, Fragment as Ie, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import * as L from "react";
|
|
3
3
|
import ge, { useState as G, useContext as _e, useEffect as Q, useRef as xe, useCallback as xt, forwardRef as Oo, createElement as rr, PureComponent as No } from "react";
|
|
4
|
-
import { c as Te, a as Rt, C as ke, p as To, u as ko, S as $o, b as Io, L as Ao, d as Pr, e as Mo, Q as $n, f as pt, g as Po, s as gt, _ as z, h as we, P as k, i as he, j as Ro, o as Do, k as zo, l as Fo, m as Rr, n as In, q as _t, r as Dr, I as Lo, t as jo, v as zr, D as Vo, w as An, x as Mn, y as Bo, z as Ho, A as Ne, B as Wo, E as yt } from "../index.module-
|
|
5
|
-
import { G as Rc, F as Dc, H as zc } from "../index.module-
|
|
4
|
+
import { c as Te, a as Rt, C as ke, p as To, u as ko, S as $o, b as Io, L as Ao, d as Pr, e as Mo, Q as $n, f as pt, g as Po, s as gt, _ as z, h as we, P as k, i as he, j as Ro, o as Do, k as zo, l as Fo, m as Rr, n as In, q as _t, r as Dr, I as Lo, t as jo, v as zr, D as Vo, w as An, x as Mn, y as Bo, z as Ho, A as Ne, B as Wo, E as yt } from "../index.module-c9025b11.js";
|
|
5
|
+
import { G as Rc, F as Dc, H as zc } from "../index.module-c9025b11.js";
|
|
6
6
|
import Z from "moment";
|
|
7
7
|
import { Stack as te, Dialog as Uo, DialogTitle as qo, Typography as ye, DialogContent as Yo, DialogActions as Go, Button as kt, Box as Ko, ClickAwayListener as Zo, TextField as Pn, IconButton as Xo, CircularProgress as Jo, Fade as Qo, Paper as ei, Checkbox as ti } from "@mui/material";
|
|
8
8
|
import "@r2wc/react-to-web-component";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var o2=require("./index.css");const ct=require("react/jsx-runtime"),_e=require("react"),AT=require("axios"),OT=require("moment"),Yf=require("@mui/material"),Jc=require("react-query");require("@r2wc/react-to-web-component");const Wy=require("react-router-dom"),Uy=require("react-dom");function DT(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}function IT(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const kn=DT(_e),MT=`.modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:hsla(0,0%,0%,.254);--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#ffffff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#C5C5C5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#BE1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}
|
|
2
2
|
`;function Vy({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function r(i){var s;((s=i.target)==null?void 0:s.id)==="modal-wrapper"&&e()}return ct.jsxs(ct.Fragment,{children:[ct.jsx("style",{type:"text/css",children:MT}),ct.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:ct.jsxs("div",{className:"modal-container",children:[ct.jsx("h3",{className:"modal-title",children:"Log out"}),ct.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),ct.jsxs("div",{className:"modal-footer",children:[ct.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:"Cancel"}),ct.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const vo={primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};function Uo(t){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uo(t)}function zo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function LT(t,e){if(Uo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zy(t){var e=LT(t,"string");return Uo(e)=="symbol"?e:String(e)}function em(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,zy(r.key),r)}}function $o(t,e,n){return e&&em(t.prototype,e),n&&em(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qs(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gf(t,e){return Gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gf(t,e)}function pd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gf(t,e)}function uf(t,e){if(e&&(Uo(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qs(t)}function ds(t){return ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ds(t)}function hs(t,e,n){return e=zy(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $y(t){if(Array.isArray(t))return t}function FT(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tm(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Yy(t,e){if(t){if(typeof t=="string")return tm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tm(t,e)}}function Gy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jT(t){return $y(t)||FT(t)||Yy(t)||Gy()}function nm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var NT={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},BT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};zo(this,t),this.init(e,n)}return $o(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||NT,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,s){return s&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,rm(rm({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),cs=new BT,Vl=function(){function t(){zo(this,t),this.observers={}}return $o(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(s){i.observers[s]=i.observers[s]||[],i.observers[s].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];if(this.observers[n]){var u=[].concat(this.observers[n]);u.forEach(function(p){p.apply(void 0,i)})}if(this.observers["*"]){var g=[].concat(this.observers["*"]);g.forEach(function(p){p.apply(p,[n].concat(i))})}}}]),t}();function Hc(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function im(t){return t==null?"":""+t}function HT(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function wp(t,e,n){function r(g){return g&&g.indexOf("###")>-1?g.replace(/###/g,"."):g}function i(){return!t||typeof t=="string"}for(var s=typeof e!="string"?[].concat(e):e.split(".");s.length>1;){if(i())return{};var u=r(s.shift());!t[u]&&n&&(t[u]=new n),Object.prototype.hasOwnProperty.call(t,u)?t=t[u]:t={}}return i()?{}:{obj:t,k:r(s.shift())}}function om(t,e,n){var r=wp(t,e,Object),i=r.obj,s=r.k;i[s]=n}function WT(t,e,n,r){var i=wp(t,e,Object),s=i.obj,u=i.k;s[u]=s[u]||[],r&&(s[u]=s[u].concat(n)),r||s[u].push(n)}function qf(t,e){var n=wp(t,e),r=n.obj,i=n.k;if(r)return r[i]}function UT(t,e,n){var r=qf(t,n);return r!==void 0?r:qf(e,n)}function qy(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):qy(t[r],e[r],n):t[r]=e[r]);return t}function gc(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var VT={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function zT(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return VT[e]}):t}var gd=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$T=[" ",",","?","!",";"];function YT(t,e,n){e=e||"",n=n||"";var r=$T.filter(function(g){return e.indexOf(g)<0&&n.indexOf(g)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(g){return g==="?"?"\\?":g}).join("|"),")")),s=!i.test(t);if(!s){var u=t.indexOf(n);u>0&&!i.test(t.substring(0,u))&&(s=!0)}return s}function Xf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,s=0;s<r.length;++s){if(!i||typeof i[r[s]]=="string"&&s+1<r.length)return;if(i[r[s]]===void 0){for(var u=2,g=r.slice(s,s+u).join(n),p=i[g];p===void 0&&r.length>s+u;)u++,g=r.slice(s,s+u).join(n),p=i[g];if(p===void 0)return;if(p===null)return null;if(e.endsWith(g)){if(typeof p=="string")return p;if(g&&typeof p[g]=="string")return p[g]}var y=r.slice(s+u).join(n);return y?Xf(p,y,n):void 0}i=i[r[s]]}return i}}function am(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _f(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?am(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):am(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function GT(t){var e=qT();return function(){var r=ds(t),i;if(e){var s=ds(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return uf(this,i)}}function qT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var XT=function(t){pd(n,t);var e=GT(n);function n(r){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return zo(this,n),i=e.call(this),gd&&Vl.call(Qs(i)),i.data=r||{},i.options=s,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return $o(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var s=this.options.ns.indexOf(i);s>-1&&this.options.ns.splice(s,1)}},{key:"getResource",value:function(i,s,u){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator,y=g.ignoreJSONStructure!==void 0?g.ignoreJSONStructure:this.options.ignoreJSONStructure,T=[i,s];u&&typeof u!="string"&&(T=T.concat(u)),u&&typeof u=="string"&&(T=T.concat(p?u.split(p):u)),i.indexOf(".")>-1&&(T=i.split("."));var x=qf(this.data,T);return x||!y||typeof u!="string"?x:Xf(this.data&&this.data[i]&&this.data[i][s],u,p)}},{key:"addResource",value:function(i,s,u,g){var p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},y=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator,T=[i,s];u&&(T=T.concat(y?u.split(y):u)),i.indexOf(".")>-1&&(T=i.split("."),g=s,s=T[1]),this.addNamespaces(s),om(this.data,T,g),p.silent||this.emit("added",i,s,u,g)}},{key:"addResources",value:function(i,s,u){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var p in u)(typeof u[p]=="string"||Object.prototype.toString.apply(u[p])==="[object Array]")&&this.addResource(i,s,p,u[p],{silent:!0});g.silent||this.emit("added",i,s,u)}},{key:"addResourceBundle",value:function(i,s,u,g,p){var y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},T=[i,s];i.indexOf(".")>-1&&(T=i.split("."),g=u,u=s,s=T[1]),this.addNamespaces(s);var x=qf(this.data,T)||{};g?qy(x,u,p):x=_f(_f({},x),u),om(this.data,T,x),y.silent||this.emit("added",i,s,u)}},{key:"removeResourceBundle",value:function(i,s){this.hasResourceBundle(i,s)&&delete this.data[i][s],this.removeNamespaces(s),this.emit("removed",i,s)}},{key:"hasResourceBundle",value:function(i,s){return this.getResource(i,s)!==void 0}},{key:"getResourceBundle",value:function(i,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?_f(_f({},{}),this.getResource(i,s)):this.getResource(i,s)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var s=this.getDataByLanguage(i),u=s&&Object.keys(s)||[];return!!u.find(function(g){return s[g]&&Object.keys(s[g]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Vl),Xy={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,s){var u=this;return e.forEach(function(g){u.processors[g]&&(n=u.processors[g].process(n,r,i,s))}),n}};function sm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ki(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function KT(t){var e=ZT();return function(){var r=ds(t),i;if(e){var s=ds(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return uf(this,i)}}function ZT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var lm={},um=function(t){pd(n,t);var e=KT(n);function n(r){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return zo(this,n),i=e.call(this),gd&&Vl.call(Qs(i)),HT(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Qs(i)),i.options=s,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=cs.create("translator"),i}return $o(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var u=this.resolve(i,s);return u&&u.res!==void 0}},{key:"extractFromKey",value:function(i,s){var u=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");var g=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,p=s.ns||this.options.defaultNS||[],y=u&&i.indexOf(u)>-1,T=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!YT(i,u,g);if(y&&!T){var x=i.match(this.interpolator.nestingRegexp);if(x&&x.length>0)return{key:i,namespaces:p};var A=i.split(u);(u!==g||u===g&&this.options.ns.indexOf(A[0])>-1)&&(p=A.shift()),i=A.join(g)}return typeof p=="string"&&(p=[p]),{key:i,namespaces:p}}},{key:"translate",value:function(i,s,u){var g=this;if(Uo(s)!=="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),Uo(s)==="object"&&(s=ki({},s)),s||(s={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var p=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,y=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,T=this.extractFromKey(i[i.length-1],s),x=T.key,A=T.namespaces,j=A[A.length-1],Y=s.lng||this.language,z=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(Y&&Y.toLowerCase()==="cimode"){if(z){var $=s.nsSeparator||this.options.nsSeparator;return p?{res:"".concat(j).concat($).concat(x),usedKey:x,exactUsedKey:x,usedLng:Y,usedNS:j}:"".concat(j).concat($).concat(x)}return p?{res:x,usedKey:x,exactUsedKey:x,usedLng:Y,usedNS:j}:x}var L=this.resolve(i,s),ne=L&&L.res,te=L&&L.usedKey||x,he=L&&L.exactUsedKey||x,ie=Object.prototype.toString.apply(ne),xe=["[object Number]","[object Function]","[object RegExp]"],b=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,ke=!this.i18nFormat||this.i18nFormat.handleAsObject,me=typeof ne!="string"&&typeof ne!="boolean"&&typeof ne!="number";if(ke&&ne&&me&&xe.indexOf(ie)<0&&!(typeof b=="string"&&ie==="[object Array]")){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Qe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(te,ne,ki(ki({},s),{},{ns:A})):"key '".concat(x," (").concat(this.language,")' returned an object instead of string.");return p?(L.res=Qe,L):Qe}if(y){var xt=ie==="[object Array]",tt=xt?[]:{},nt=xt?he:te;for(var ft in ne)if(Object.prototype.hasOwnProperty.call(ne,ft)){var ve="".concat(nt).concat(y).concat(ft);tt[ft]=this.translate(ve,ki(ki({},s),{joinArrays:!1,ns:A})),tt[ft]===ve&&(tt[ft]=ne[ft])}ne=tt}}else if(ke&&typeof b=="string"&&ie==="[object Array]")ne=ne.join(b),ne&&(ne=this.extendTranslation(ne,i,s,u));else{var Me=!1,Ve=!1,Ye=s.count!==void 0&&typeof s.count!="string",rt=n.hasDefaultValue(s),Re=Ye?this.pluralResolver.getSuffix(Y,s.count,s):"",Ae=s["defaultValue".concat(Re)]||s.defaultValue;!this.isValidLookup(ne)&&rt&&(Me=!0,ne=Ae),this.isValidLookup(ne)||(Ve=!0,ne=x);var Ge=s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ze=Ge&&Ve?void 0:ne,et=rt&&Ae!==ne&&this.options.updateMissing;if(Ve||Me||et){if(this.logger.log(et?"updateKey":"missingKey",Y,j,x,et?Ae:ne),y){var Je=this.resolve(x,ki(ki({},s),{},{keySeparator:!1}));Je&&Je.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.")}var Ke=[],ht=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ht&&ht[0])for(var bt=0;bt<ht.length;bt++)Ke.push(ht[bt]);else this.options.saveMissingTo==="all"?Ke=this.languageUtils.toResolveHierarchy(s.lng||this.language):Ke.push(s.lng||this.language);var wt=function(Tt,Xe,Nt){var Ht=rt&&Nt!==ne?Nt:Ze;g.options.missingKeyHandler?g.options.missingKeyHandler(Tt,j,Xe,Ht,et,s):g.backendConnector&&g.backendConnector.saveMissing&&g.backendConnector.saveMissing(Tt,j,Xe,Ht,et,s),g.emit("missingKey",Tt,j,Xe,ne)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ye?Ke.forEach(function(pt){g.pluralResolver.getSuffixes(pt,s).forEach(function(Tt){wt([pt],x+Tt,s["defaultValue".concat(Tt)]||Ae)})}):wt(Ke,x,Ae))}ne=this.extendTranslation(ne,i,s,L,u),Ve&&ne===x&&this.options.appendNamespaceToMissingKey&&(ne="".concat(j,":").concat(x)),(Ve||Me)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?ne=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(j,":").concat(x):x,Me?ne:void 0):ne=this.options.parseMissingKeyHandler(ne))}return p?(L.res=ne,L):ne}},{key:"extendTranslation",value:function(i,s,u,g,p){var y=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,ki(ki({},this.options.interpolation.defaultVariables),u),g.usedLng,g.usedNS,g.usedKey,{resolved:g});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init(ki(ki({},u),{interpolation:ki(ki({},this.options.interpolation),u.interpolation)}));var T=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),x;if(T){var A=i.match(this.interpolator.nestingRegexp);x=A&&A.length}var j=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(j=ki(ki({},this.options.interpolation.defaultVariables),j)),i=this.interpolator.interpolate(i,j,u.lng||this.language,u),T){var Y=i.match(this.interpolator.nestingRegexp),z=Y&&Y.length;x<z&&(u.nest=!1)}!u.lng&&this.options.compatibilityAPI!=="v1"&&g&&g.res&&(u.lng=g.usedLng),u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var ne=arguments.length,te=new Array(ne),he=0;he<ne;he++)te[he]=arguments[he];return p&&p[0]===te[0]&&!u.context?(y.logger.warn("It seems you are nesting recursively key: ".concat(te[0]," in key: ").concat(s[0])),null):y.translate.apply(y,te.concat([s]))},u)),u.interpolation&&this.interpolator.reset()}var $=u.postProcess||this.options.postProcess,L=typeof $=="string"?[$]:$;return i!=null&&L&&L.length&&u.applyPostProcessor!==!1&&(i=Xy.handle(L,i,s,this.options&&this.options.postProcessPassResolved?ki({i18nResolved:g},u):u,this)),i}},{key:"resolve",value:function(i){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g,p,y,T,x;return typeof i=="string"&&(i=[i]),i.forEach(function(A){if(!s.isValidLookup(g)){var j=s.extractFromKey(A,u),Y=j.key;p=Y;var z=j.namespaces;s.options.fallbackNS&&(z=z.concat(s.options.fallbackNS));var $=u.count!==void 0&&typeof u.count!="string",L=$&&!u.ordinal&&u.count===0&&s.pluralResolver.shouldUseIntlApi(),ne=u.context!==void 0&&(typeof u.context=="string"||typeof u.context=="number")&&u.context!=="",te=u.lngs?u.lngs:s.languageUtils.toResolveHierarchy(u.lng||s.language,u.fallbackLng);z.forEach(function(he){s.isValidLookup(g)||(x=he,!lm["".concat(te[0],"-").concat(he)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(x)&&(lm["".concat(te[0],"-").concat(he)]=!0,s.logger.warn('key "'.concat(p,'" for languages "').concat(te.join(", "),`" won't get resolved as namespace "`).concat(x,'" 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!!!")),te.forEach(function(ie){if(!s.isValidLookup(g)){T=ie;var xe=[Y];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(xe,Y,ie,he,u);else{var b;$&&(b=s.pluralResolver.getSuffix(ie,u.count,u));var ke="".concat(s.options.pluralSeparator,"zero");if($&&(xe.push(Y+b),L&&xe.push(Y+ke)),ne){var me="".concat(Y).concat(s.options.contextSeparator).concat(u.context);xe.push(me),$&&(xe.push(me+b),L&&xe.push(me+ke))}}for(var Qe;Qe=xe.pop();)s.isValidLookup(g)||(y=Qe,g=s.getResource(ie,he,Qe,u))}}))})}}),{res:g,usedKey:p,exactUsedKey:y,usedLng:T,usedNS:x}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,s,u){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,s,u,g):this.resourceStore.getResource(i,s,u,g)}}],[{key:"hasDefaultValue",value:function(i){var s="defaultValue";for(var u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&s===u.substring(0,s.length)&&i[u]!==void 0)return!0;return!1}}]),n}(Vl);function th(t){return t.charAt(0).toUpperCase()+t.slice(1)}var cm=function(){function t(e){zo(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=cs.create("languageUtils")}return $o(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(s){return s.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=th(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=th(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=th(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(s){if(!i){var u=r.formatLanguageCode(s);(!r.options.supportedLngs||r.isSupportedCode(u))&&(i=u)}}),!i&&this.options.supportedLngs&&n.forEach(function(s){if(!i){var u=r.getLanguagePartFromCode(s);if(r.isSupportedCode(u))return i=u;i=r.options.supportedLngs.find(function(g){if(g===u)return g;if(!(g.indexOf("-")<0&&u.indexOf("-")<0)&&g.indexOf(u)===0)return g})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,s=this.getFallbackCodes(r||this.options.fallbackLng||[],n),u=[],g=function(y){y&&(i.isSupportedCode(y)?u.push(y):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(y)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&g(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&g(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&g(this.getLanguagePartFromCode(n))):typeof n=="string"&&g(this.formatLanguageCode(n)),s.forEach(function(p){u.indexOf(p)<0&&g(i.formatLanguageCode(p))}),u}}]),t}(),JT=[{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}],QT={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}},eE=["v1","v2","v3"],fm={zero:0,one:1,two:2,few:3,many:4,other:5};function tE(){var t={};return JT.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:QT[e.fc]}})}),t}var nE=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};zo(this,t),this.languageUtils=e,this.options=n,this.logger=cs.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(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=tE()}return $o(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(s){return"".concat(r).concat(s)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(n,i);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort(function(u,g){return fm[u]-fm[g]}).map(function(u){return"".concat(r.options.prepend).concat(u)}):s.numbers.map(function(u){return r.getSuffix(n,u,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=this.getRule(n,i);return s?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(s.select(r)):this.getSuffixRetroCompatible(s,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,s=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),u=n.numbers[s];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(u===2?u="plural":u===1&&(u=""));var g=function(){return i.options.prepend&&u.toString()?i.options.prepend+u.toString():u.toString()};return this.options.compatibilityJSON==="v1"?u===1?"":typeof u=="number"?"_plural_".concat(u.toString()):g():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?g():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}},{key:"shouldUseIntlApi",value:function(){return!eE.includes(this.options.compatibilityJSON)}}]),t}();function dm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hm(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=UT(t,e,n);return!s&&i&&typeof n=="string"&&(s=Xf(t,n,r),s===void 0&&(s=Xf(e,n,r))),s}var rE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zo(this,t),this.logger=cs.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return $o(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:zT,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?gc(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?gc(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?gc(r.nestingPrefix):r.nestingPrefixEscaped||gc("$t("),this.nestingSuffix=r.nestingSuffix?gc(r.nestingSuffix):r.nestingSuffixEscaped||gc(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,s){var u=this,g,p,y,T=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function x($){return $.replace(/\$/g,"$$$$")}var A=function(L){if(L.indexOf(u.formatSeparator)<0){var ne=hm(r,T,L,u.options.keySeparator,u.options.ignoreJSONStructure);return u.alwaysFormat?u.format(ne,void 0,i,Fa(Fa(Fa({},s),r),{},{interpolationkey:L})):ne}var te=L.split(u.formatSeparator),he=te.shift().trim(),ie=te.join(u.formatSeparator).trim();return u.format(hm(r,T,he,u.options.keySeparator,u.options.ignoreJSONStructure),ie,i,Fa(Fa(Fa({},s),r),{},{interpolationkey:he}))};this.resetRegExp();var j=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,Y=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,z=[{regex:this.regexpUnescape,safeValue:function(L){return x(L)}},{regex:this.regexp,safeValue:function(L){return u.escapeValue?x(u.escape(L)):x(L)}}];return z.forEach(function($){for(y=0;g=$.regex.exec(n);){var L=g[1].trim();if(p=A(L),p===void 0)if(typeof j=="function"){var ne=j(n,g,s);p=typeof ne=="string"?ne:""}else if(s&&Object.prototype.hasOwnProperty.call(s,L))p="";else if(Y){p=g[0];continue}else u.logger.warn("missed to pass in variable ".concat(L," for interpolating ").concat(n)),p="";else typeof p!="string"&&!u.useRawValueToEscape&&(p=im(p));var te=$.safeValue(p);if(n=n.replace(g[0],te),Y?($.regex.lastIndex+=p.length,$.regex.lastIndex-=g[0].length):$.regex.lastIndex=0,y++,y>=u.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,g,p;function y(j,Y){var z=this.nestingOptionsSeparator;if(j.indexOf(z)<0)return j;var $=j.split(new RegExp("".concat(z,"[ ]*{"))),L="{".concat($[1]);j=$[0],L=this.interpolate(L,p);var ne=L.match(/'/g),te=L.match(/"/g);(ne&&ne.length%2===0&&!te||te.length%2!==0)&&(L=L.replace(/'/g,'"'));try{p=JSON.parse(L),Y&&(p=Fa(Fa({},Y),p))}catch(he){return this.logger.warn("failed parsing options string in nesting for key ".concat(j),he),"".concat(j).concat(z).concat(L)}return delete p.defaultValue,j}for(;u=this.nestingRegexp.exec(n);){var T=[];p=Fa({},s),p=p.replace&&typeof p.replace!="string"?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;var x=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){var A=u[1].split(this.formatSeparator).map(function(j){return j.trim()});u[1]=A.shift(),T=A,x=!0}if(g=r(y.call(this,u[1].trim(),p),p),g&&u[0]===n&&typeof g!="string")return g;typeof g!="string"&&(g=im(g)),g||(this.logger.warn("missed to resolve ".concat(u[1]," for nesting ").concat(n)),g=""),x&&(g=T.reduce(function(j,Y){return i.format(j,Y,s.lng,Fa(Fa({},s),{},{interpolationkey:u[1].trim()}))},g.trim())),n=n.replace(u[0],g),this.regexp.lastIndex=0}return n}}]),t}();function pm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Xs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function iE(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var s=i.split(";");s.forEach(function(u){if(u){var g=u.split(":"),p=jT(g),y=p[0],T=p.slice(1),x=T.join(":").trim().replace(/^'+|'+$/g,"");n[y.trim()]||(n[y.trim()]=x),x==="false"&&(n[y.trim()]=!1),x==="true"&&(n[y.trim()]=!0),isNaN(x)||(n[y.trim()]=parseInt(x,10))}})}}return{formatName:e,formatOptions:n}}function mc(t){var e={};return function(r,i,s){var u=i+JSON.stringify(s),g=e[u];return g||(g=t(i,s),e[u]=g),g(r)}}var oE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zo(this,t),this.logger=cs.create("formatter"),this.options=e,this.formats={number:mc(function(n,r){var i=new Intl.NumberFormat(n,Xs({},r));return function(s){return i.format(s)}}),currency:mc(function(n,r){var i=new Intl.NumberFormat(n,Xs(Xs({},r),{},{style:"currency"}));return function(s){return i.format(s)}}),datetime:mc(function(n,r){var i=new Intl.DateTimeFormat(n,Xs({},r));return function(s){return i.format(s)}}),relativetime:mc(function(n,r){var i=new Intl.RelativeTimeFormat(n,Xs({},r));return function(s){return i.format(s,r.range||"day")}}),list:mc(function(n,r){var i=new Intl.ListFormat(n,Xs({},r));return function(s){return i.format(s)}})},this.init(e)}return $o(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=mc(r)}},{key:"format",value:function(n,r,i){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=r.split(this.formatSeparator),p=g.reduce(function(y,T){var x=iE(T),A=x.formatName,j=x.formatOptions;if(s.formats[A]){var Y=y;try{var z=u&&u.formatParams&&u.formatParams[u.interpolationkey]||{},$=z.locale||z.lng||u.locale||u.lng||i;Y=s.formats[A](y,$,Xs(Xs(Xs({},j),u),z))}catch(L){s.logger.warn(L)}return Y}else s.logger.warn("there was no format function for ".concat(A));return y},n);return p}}]),t}();function gm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function mm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function aE(t){var e=sE();return function(){var r=ds(t),i;if(e){var s=ds(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return uf(this,i)}}function sE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lE(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var uE=function(t){pd(n,t);var e=aE(n);function n(r,i,s){var u,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return zo(this,n),u=e.call(this),gd&&Vl.call(Qs(u)),u.backend=r,u.store=i,u.services=s,u.languageUtils=s.languageUtils,u.options=g,u.logger=cs.create("backendConnector"),u.waitingReads=[],u.maxParallelReads=g.maxParallelReads||10,u.readingCalls=0,u.maxRetries=g.maxRetries>=0?g.maxRetries:5,u.retryTimeout=g.retryTimeout>=1?g.retryTimeout:350,u.state={},u.queue=[],u.backend&&u.backend.init&&u.backend.init(s,g.backend,g),u}return $o(n,[{key:"queueLoad",value:function(i,s,u,g){var p=this,y={},T={},x={},A={};return i.forEach(function(j){var Y=!0;s.forEach(function(z){var $="".concat(j,"|").concat(z);!u.reload&&p.store.hasResourceBundle(j,z)?p.state[$]=2:p.state[$]<0||(p.state[$]===1?T[$]===void 0&&(T[$]=!0):(p.state[$]=1,Y=!1,T[$]===void 0&&(T[$]=!0),y[$]===void 0&&(y[$]=!0),A[z]===void 0&&(A[z]=!0)))}),Y||(x[j]=!0)}),(Object.keys(y).length||Object.keys(T).length)&&this.queue.push({pending:T,pendingCount:Object.keys(T).length,loaded:{},errors:[],callback:g}),{toLoad:Object.keys(y),pending:Object.keys(T),toLoadLanguages:Object.keys(x),toLoadNamespaces:Object.keys(A)}}},{key:"loaded",value:function(i,s,u){var g=i.split("|"),p=g[0],y=g[1];s&&this.emit("failedLoading",p,y,s),u&&this.store.addResourceBundle(p,y,u),this.state[i]=s?-1:2;var T={};this.queue.forEach(function(x){WT(x.loaded,[p],y),lE(x,i),s&&x.errors.push(s),x.pendingCount===0&&!x.done&&(Object.keys(x.loaded).forEach(function(A){T[A]||(T[A]={});var j=x.loaded[A];j.length&&j.forEach(function(Y){T[A][Y]===void 0&&(T[A][Y]=!0)})}),x.done=!0,x.errors.length?x.callback(x.errors):x.callback())}),this.emit("loaded",T),this.queue=this.queue.filter(function(x){return!x.done})}},{key:"read",value:function(i,s,u){var g=this,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,T=arguments.length>5?arguments[5]:void 0;if(!i.length)return T(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:s,fcName:u,tried:p,wait:y,callback:T});return}this.readingCalls++;var x=function(z,$){if(g.readingCalls--,g.waitingReads.length>0){var L=g.waitingReads.shift();g.read(L.lng,L.ns,L.fcName,L.tried,L.wait,L.callback)}if(z&&$&&p<g.maxRetries){setTimeout(function(){g.read.call(g,i,s,u,p+1,y*2,T)},y);return}T(z,$)},A=this.backend[u].bind(this.backend);if(A.length===2){try{var j=A(i,s);j&&typeof j.then=="function"?j.then(function(Y){return x(null,Y)}).catch(x):x(null,j)}catch(Y){x(Y)}return}return A(i,s,x)}},{key:"prepareLoading",value:function(i,s){var u=this,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=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."),p&&p();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof s=="string"&&(s=[s]);var y=this.queueLoad(i,s,g,p);if(!y.toLoad.length)return y.pending.length||p(),null;y.toLoad.forEach(function(T){u.loadOne(T)})}},{key:"load",value:function(i,s,u){this.prepareLoading(i,s,{},u)}},{key:"reload",value:function(i,s,u){this.prepareLoading(i,s,{reload:!0},u)}},{key:"loadOne",value:function(i){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",g=i.split("|"),p=g[0],y=g[1];this.read(p,y,"read",void 0,void 0,function(T,x){T&&s.logger.warn("".concat(u,"loading namespace ").concat(y," for language ").concat(p," failed"),T),!T&&x&&s.logger.log("".concat(u,"loaded namespace ").concat(y," for language ").concat(p),x),s.loaded(i,T,x)})}},{key:"saveMissing",value:function(i,s,u,g,p){var y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},T=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(s)){this.logger.warn('did not save key "'.concat(u,'" as the namespace "').concat(s,'" 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(!(u==null||u==="")){if(this.backend&&this.backend.create){var x=mm(mm({},y),{},{isUpdate:p}),A=this.backend.create.bind(this.backend);if(A.length<6)try{var j;A.length===5?j=A(i,s,u,g,x):j=A(i,s,u,g),j&&typeof j.then=="function"?j.then(function(Y){return T(null,Y)}).catch(T):T(null,j)}catch(Y){T(Y)}else A(i,s,u,g,T,x)}!i||!i[0]||this.store.addResource(i[0],s,u,g)}}}]),n}(Vl);function vm(){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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Uo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Uo(e[2])==="object"||Uo(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ym(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function bm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ls(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cE(t){var e=fE();return function(){var r=ds(t),i;if(e){var s=ds(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return uf(this,i)}}function fE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rf(){}function dE(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var Kf=function(t){pd(n,t);var e=cE(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(zo(this,n),r=e.call(this),gd&&Vl.call(Qs(r)),r.options=ym(i),r.services={},r.logger=cs,r.modules={external:[]},dE(Qs(r)),s&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,s),uf(r,Qs(r));setTimeout(function(){r.init(i,s)},0)}return r}return $o(n,[{key:"init",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof s=="function"&&(u=s,s={}),!s.defaultNS&&s.defaultNS!==!1&&s.ns&&(typeof s.ns=="string"?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));var g=vm();this.options=ls(ls(ls({},g),this.options),ym(s)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ls(ls({},g.interpolation),this.options.interpolation)),s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator);function p(L){return L?typeof L=="function"?new L:L:null}if(!this.options.isClone){this.modules.logger?cs.init(p(this.modules.logger),this.options):cs.init(null,this.options);var y;this.modules.formatter?y=this.modules.formatter:typeof Intl<"u"&&(y=oE);var T=new cm(this.options);this.store=new XT(this.options.resources,this.options);var x=this.services;x.logger=cs,x.resourceStore=this.store,x.languageUtils=T,x.pluralResolver=new nE(T,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),y&&(!this.options.interpolation.format||this.options.interpolation.format===g.interpolation.format)&&(x.formatter=p(y),x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new rE(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new uE(p(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",function(L){for(var ne=arguments.length,te=new Array(ne>1?ne-1:0),he=1;he<ne;he++)te[he-1]=arguments[he];i.emit.apply(i,[L].concat(te))}),this.modules.languageDetector&&(x.languageDetector=p(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=p(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new um(this.services,this.options),this.translator.on("*",function(L){for(var ne=arguments.length,te=new Array(ne>1?ne-1:0),he=1;he<ne;he++)te[he-1]=arguments[he];i.emit.apply(i,[L].concat(te))}),this.modules.external.forEach(function(L){L.init&&L.init(i)})}if(this.format=this.options.interpolation.format,u||(u=Rf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var A=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);A.length>0&&A[0]!=="dev"&&(this.options.lng=A[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var j=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];j.forEach(function(L){i[L]=function(){var ne;return(ne=i.store)[L].apply(ne,arguments)}});var Y=["addResource","addResources","addResourceBundle","removeResourceBundle"];Y.forEach(function(L){i[L]=function(){var ne;return(ne=i.store)[L].apply(ne,arguments),i}});var z=Hc(),$=function(){var ne=function(he,ie){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),z.resolve(ie),u(he,ie)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return ne(null,i.t.bind(i));i.changeLanguage(i.options.lng,ne)};return this.options.resources||!this.options.initImmediate?$():setTimeout($,0),z}},{key:"loadResources",value:function(i){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rf,g=u,p=typeof i=="string"?i:this.language;if(typeof i=="function"&&(g=i),!this.options.resources||this.options.partialBundledLanguages){if(p&&p.toLowerCase()==="cimode")return g();var y=[],T=function(j){if(j){var Y=s.services.languageUtils.toResolveHierarchy(j);Y.forEach(function(z){y.indexOf(z)<0&&y.push(z)})}};if(p)T(p);else{var x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.forEach(function(A){return T(A)})}this.options.preload&&this.options.preload.forEach(function(A){return T(A)}),this.services.backendConnector.load(y,this.options.ns,function(A){!A&&!s.resolvedLanguage&&s.language&&s.setResolvedLanguage(s.language),g(A)})}else g(null)}},{key:"reloadResources",value:function(i,s,u){var g=Hc();return i||(i=this.languages),s||(s=this.options.ns),u||(u=Rf),this.services.backendConnector.reload(i,s,function(p){g.resolve(),u(p)}),g}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Xy.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var s=0;s<this.languages.length;s++){var u=this.languages[s];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}},{key:"changeLanguage",value:function(i,s){var u=this;this.isLanguageChangingTo=i;var g=Hc();this.emit("languageChanging",i);var p=function(A){u.language=A,u.languages=u.services.languageUtils.toResolveHierarchy(A),u.resolvedLanguage=void 0,u.setResolvedLanguage(A)},y=function(A,j){j?(p(j),u.translator.changeLanguage(j),u.isLanguageChangingTo=void 0,u.emit("languageChanged",j),u.logger.log("languageChanged",j)):u.isLanguageChangingTo=void 0,g.resolve(function(){return u.t.apply(u,arguments)}),s&&s(A,function(){return u.t.apply(u,arguments)})},T=function(A){!i&&!A&&u.services.languageDetector&&(A=[]);var j=typeof A=="string"?A:u.services.languageUtils.getBestMatchFromCodes(A);j&&(u.language||p(j),u.translator.language||u.translator.changeLanguage(j),u.services.languageDetector&&u.services.languageDetector.cacheUserLanguage&&u.services.languageDetector.cacheUserLanguage(j)),u.loadResources(j,function(Y){y(Y,j)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?T(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(T):this.services.languageDetector.detect(T):T(i),g}},{key:"getFixedT",value:function(i,s,u){var g=this,p=function y(T,x){var A;if(Uo(x)!=="object"){for(var j=arguments.length,Y=new Array(j>2?j-2:0),z=2;z<j;z++)Y[z-2]=arguments[z];A=g.options.overloadTranslationOptionHandler([T,x].concat(Y))}else A=ls({},x);A.lng=A.lng||y.lng,A.lngs=A.lngs||y.lngs,A.ns=A.ns||y.ns,A.keyPrefix=A.keyPrefix||u||y.keyPrefix;var $=g.options.keySeparator||".",L;return A.keyPrefix&&Array.isArray(T)?L=T.map(function(ne){return"".concat(A.keyPrefix).concat($).concat(ne)}):L=A.keyPrefix?"".concat(A.keyPrefix).concat($).concat(T):T,g.t(L,A)};return typeof i=="string"?p.lng=i:p.lngs=i,p.ns=s,p.keyPrefix=u,p}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var s=this,u=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;var g=u.lng||this.resolvedLanguage||this.languages[0],p=this.options?this.options.fallbackLng:!1,y=this.languages[this.languages.length-1];if(g.toLowerCase()==="cimode")return!0;var T=function(j,Y){var z=s.services.backendConnector.state["".concat(j,"|").concat(Y)];return z===-1||z===2};if(u.precheck){var x=u.precheck(this,T);if(x!==void 0)return x}return!!(this.hasResourceBundle(g,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||T(g,i)&&(!p||T(y,i)))}},{key:"loadNamespaces",value:function(i,s){var u=this,g=Hc();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(p){u.options.ns.indexOf(p)<0&&u.options.ns.push(p)}),this.loadResources(function(p){g.resolve(),s&&s(p)}),g):(s&&s(),Promise.resolve())}},{key:"loadLanguages",value:function(i,s){var u=Hc();typeof i=="string"&&(i=[i]);var g=this.options.preload||[],p=i.filter(function(y){return g.indexOf(y)<0});return p.length?(this.options.preload=g.concat(p),this.loadResources(function(y){u.resolve(),s&&s(y)}),u):(s&&s(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var s=["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"],u=this.services&&this.services.languageUtils||new cm(vm());return s.indexOf(u.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rf,g=ls(ls(ls({},this.options),s),{isClone:!0}),p=new n(g);(s.debug!==void 0||s.prefix!==void 0)&&(p.logger=p.logger.clone(s));var y=["store","services","language"];return y.forEach(function(T){p[T]=i[T]}),p.services=ls({},this.services),p.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},p.translator=new um(p.services,p.options),p.translator.on("*",function(T){for(var x=arguments.length,A=new Array(x>1?x-1:0),j=1;j<x;j++)A[j-1]=arguments[j];p.emit.apply(p,[T].concat(A))}),p.init(g,u),p.translator.options=p.options,p.translator.backendConnector.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},p}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Vl);hs(Kf,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Kf(t,e)});var ni=Kf.createInstance();ni.createInstance=Kf.createInstance;ni.createInstance;ni.dir;ni.init;ni.loadResources;ni.reloadResources;ni.use;ni.changeLanguage;ni.getFixedT;var Ky=ni.t;ni.exists;ni.setDefaultNamespace;ni.hasLoadedNamespace;ni.loadNamespaces;ni.loadLanguages;const Zy={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},Jy=t=>{window.location.href=`${t}/authentication/login?callbackUrl=${window.location.href}`},Qy=t=>{window.location.href=`${t}/authentication/logout?callbackUrl=${window.location.href}`},Nl=AT.create({withCredentials:!0});let nh=!1,Hh=[];const wm=t=>{Hh.forEach(e=>{t?e.reject(t):e.resolve()}),Hh=[]};function eb(t,e){var s,u,g,p,y,T;const n=t.config,r=(u=(s=t.response)==null?void 0:s.data)==null?void 0:u.errorMessage,i=r===Zy.TOKEN_EXPIRED;return((g=t.response)==null?void 0:g.status)===401&&i&&!n._retry?nh?new Promise((x,A)=>{Hh.push({resolve:x,reject:A})}).then(()=>Nl(n)).catch(x=>Promise.reject(x)):(n._retry=!0,nh=!0,Nl.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(wm(null),Nl(n))).catch(x=>(wm(x),Promise.reject(x))).finally(()=>{nh=!1})):((p=t.response)==null?void 0:p.status)===401&&!i?Jy(window.env.AUTHEN_DOMAIN):(((y=t.response)==null?void 0:y.status)===403?(T=e==null?void 0:e.handle403)==null||T.call(e,t):!(e!=null&&e.disabledPushNotify)&&Ep(Ky(`${r||"Something went wrong!"}`)),r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t))}Nl.interceptors.response.use(t=>t,async t=>eb(t));const tb=_e.createContext({}),hE=({children:t})=>{const[e,n]=_e.useState(!0),[r,i]=_e.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),s=()=>{n(!e)},u=()=>{n(!0)};return ct.jsx(tb.Provider,{value:{isOpen:e,toggleOpen:s,setShowModalFalse:u,notidata:r,setNotiData:i},children:t})};var nb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xm=_e.createContext&&_e.createContext(nb),pE=["attr","size","title"];function gE(t,e){if(t==null)return{};var n=mE(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function mE(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Zf(){return Zf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Zf.apply(this,arguments)}function Sm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Jf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Sm(Object(n),!0).forEach(function(r){vE(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vE(t,e,n){return e=yE(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yE(t){var e=bE(t,"string");return typeof e=="symbol"?e:String(e)}function bE(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rb(t){return t&&t.map((e,n)=>_e.createElement(e.tag,Jf({key:n},e.attr),rb(e.child)))}function ib(t){return e=>_e.createElement(wE,Zf({attr:Jf({},t.attr)},e),rb(t.child))}function wE(t){var e=n=>{var{attr:r,size:i,title:s}=t,u=gE(t,pE),g=i||n.size||"1em",p;return n.className&&(p=n.className),t.className&&(p=(p?p+" ":"")+t.className),_e.createElement("svg",Zf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,u,{className:p,style:Jf(Jf({color:t.color||n.color},n.style),t.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),s&&_e.createElement("title",null,s),t.children)};return xm!==void 0?_e.createElement(xm.Consumer,null,n=>e(n)):e(nb)}function xE(t){return ib({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function SE(t){return ib({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const ob=t=>{const e={...t.colors};return Yf.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:{fontFamily:"TT Firs Neue Trl",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}},components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.primary200,"&:hover":{backgroundColor:e.primary200}}}}},MuiPaginationItem:{defaultProps:{components:{previous:xE,next:SE}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:`${e.primary300}1a !important`},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"10px",lineHeight:"12px",fontWeight:400,"& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function CE(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(i=>{n[i.key]=i.color.trim()})}),n}function TE(t){var u,g;const{data:e,isFetching:n}=Jc.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(p=>p.json()):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0}),r=CE(vo,(u=e==null?void 0:e.theme)==null?void 0:u.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const i=ob({colors:r}),s=(g=e==null?void 0:e.theme)==null?void 0:g.image;return{colors:r,theme:i,logo:s,isFetching:n}}const ab=_e.createContext({}),EE=()=>_e.useContext(ab),kE=t=>{var s;const{children:e,brandTheme:n}=t,r=TE(n),i=((s=t.customTheme)==null?void 0:s.call(t,r.colors))||r.theme;return ct.jsx(ab.Provider,{value:r,children:ct.jsx(Yf.ThemeProvider,{theme:i,children:e})})},_E=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jT(t){return $y(t)||FT(t)||Yy(t)||Gy()}function nm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var NT={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},BT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};zo(this,t),this.init(e,n)}return $o(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||NT,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,s){return s&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,rm(rm({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),cs=new BT,Vl=function(){function t(){zo(this,t),this.observers={}}return $o(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(s){i.observers[s]=i.observers[s]||[],i.observers[s].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];if(this.observers[n]){var u=[].concat(this.observers[n]);u.forEach(function(p){p.apply(void 0,i)})}if(this.observers["*"]){var g=[].concat(this.observers["*"]);g.forEach(function(p){p.apply(p,[n].concat(i))})}}}]),t}();function Hc(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function im(t){return t==null?"":""+t}function HT(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function wp(t,e,n){function r(g){return g&&g.indexOf("###")>-1?g.replace(/###/g,"."):g}function i(){return!t||typeof t=="string"}for(var s=typeof e!="string"?[].concat(e):e.split(".");s.length>1;){if(i())return{};var u=r(s.shift());!t[u]&&n&&(t[u]=new n),Object.prototype.hasOwnProperty.call(t,u)?t=t[u]:t={}}return i()?{}:{obj:t,k:r(s.shift())}}function om(t,e,n){var r=wp(t,e,Object),i=r.obj,s=r.k;i[s]=n}function WT(t,e,n,r){var i=wp(t,e,Object),s=i.obj,u=i.k;s[u]=s[u]||[],r&&(s[u]=s[u].concat(n)),r||s[u].push(n)}function qf(t,e){var n=wp(t,e),r=n.obj,i=n.k;if(r)return r[i]}function UT(t,e,n){var r=qf(t,n);return r!==void 0?r:qf(e,n)}function qy(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):qy(t[r],e[r],n):t[r]=e[r]);return t}function gc(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var VT={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function zT(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return VT[e]}):t}var gd=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,$T=[" ",",","?","!",";"];function YT(t,e,n){e=e||"",n=n||"";var r=$T.filter(function(g){return e.indexOf(g)<0&&n.indexOf(g)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(g){return g==="?"?"\\?":g}).join("|"),")")),s=!i.test(t);if(!s){var u=t.indexOf(n);u>0&&!i.test(t.substring(0,u))&&(s=!0)}return s}function Xf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,s=0;s<r.length;++s){if(!i||typeof i[r[s]]=="string"&&s+1<r.length)return;if(i[r[s]]===void 0){for(var u=2,g=r.slice(s,s+u).join(n),p=i[g];p===void 0&&r.length>s+u;)u++,g=r.slice(s,s+u).join(n),p=i[g];if(p===void 0)return;if(p===null)return null;if(e.endsWith(g)){if(typeof p=="string")return p;if(g&&typeof p[g]=="string")return p[g]}var y=r.slice(s+u).join(n);return y?Xf(p,y,n):void 0}i=i[r[s]]}return i}}function am(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function _f(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?am(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):am(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function GT(t){var e=qT();return function(){var r=ds(t),i;if(e){var s=ds(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return uf(this,i)}}function qT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var XT=function(t){pd(n,t);var e=GT(n);function n(r){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return zo(this,n),i=e.call(this),gd&&Vl.call(Qs(i)),i.data=r||{},i.options=s,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return $o(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var s=this.options.ns.indexOf(i);s>-1&&this.options.ns.splice(s,1)}},{key:"getResource",value:function(i,s,u){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator,y=g.ignoreJSONStructure!==void 0?g.ignoreJSONStructure:this.options.ignoreJSONStructure,T=[i,s];u&&typeof u!="string"&&(T=T.concat(u)),u&&typeof u=="string"&&(T=T.concat(p?u.split(p):u)),i.indexOf(".")>-1&&(T=i.split("."));var x=qf(this.data,T);return x||!y||typeof u!="string"?x:Xf(this.data&&this.data[i]&&this.data[i][s],u,p)}},{key:"addResource",value:function(i,s,u,g){var p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},y=p.keySeparator!==void 0?p.keySeparator:this.options.keySeparator,T=[i,s];u&&(T=T.concat(y?u.split(y):u)),i.indexOf(".")>-1&&(T=i.split("."),g=s,s=T[1]),this.addNamespaces(s),om(this.data,T,g),p.silent||this.emit("added",i,s,u,g)}},{key:"addResources",value:function(i,s,u){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var p in u)(typeof u[p]=="string"||Object.prototype.toString.apply(u[p])==="[object Array]")&&this.addResource(i,s,p,u[p],{silent:!0});g.silent||this.emit("added",i,s,u)}},{key:"addResourceBundle",value:function(i,s,u,g,p){var y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},T=[i,s];i.indexOf(".")>-1&&(T=i.split("."),g=u,u=s,s=T[1]),this.addNamespaces(s);var x=qf(this.data,T)||{};g?qy(x,u,p):x=_f(_f({},x),u),om(this.data,T,x),y.silent||this.emit("added",i,s,u)}},{key:"removeResourceBundle",value:function(i,s){this.hasResourceBundle(i,s)&&delete this.data[i][s],this.removeNamespaces(s),this.emit("removed",i,s)}},{key:"hasResourceBundle",value:function(i,s){return this.getResource(i,s)!==void 0}},{key:"getResourceBundle",value:function(i,s){return s||(s=this.options.defaultNS),this.options.compatibilityAPI==="v1"?_f(_f({},{}),this.getResource(i,s)):this.getResource(i,s)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var s=this.getDataByLanguage(i),u=s&&Object.keys(s)||[];return!!u.find(function(g){return s[g]&&Object.keys(s[g]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Vl),Xy={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,s){var u=this;return e.forEach(function(g){u.processors[g]&&(n=u.processors[g].process(n,r,i,s))}),n}};function sm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ki(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function KT(t){var e=ZT();return function(){var r=ds(t),i;if(e){var s=ds(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return uf(this,i)}}function ZT(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var lm={},um=function(t){pd(n,t);var e=KT(n);function n(r){var i,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return zo(this,n),i=e.call(this),gd&&Vl.call(Qs(i)),HT(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Qs(i)),i.options=s,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=cs.create("translator"),i}return $o(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var u=this.resolve(i,s);return u&&u.res!==void 0}},{key:"extractFromKey",value:function(i,s){var u=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");var g=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,p=s.ns||this.options.defaultNS||[],y=u&&i.indexOf(u)>-1,T=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!YT(i,u,g);if(y&&!T){var x=i.match(this.interpolator.nestingRegexp);if(x&&x.length>0)return{key:i,namespaces:p};var A=i.split(u);(u!==g||u===g&&this.options.ns.indexOf(A[0])>-1)&&(p=A.shift()),i=A.join(g)}return typeof p=="string"&&(p=[p]),{key:i,namespaces:p}}},{key:"translate",value:function(i,s,u){var g=this;if(Uo(s)!=="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),Uo(s)==="object"&&(s=ki({},s)),s||(s={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var p=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,y=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,T=this.extractFromKey(i[i.length-1],s),x=T.key,A=T.namespaces,j=A[A.length-1],Y=s.lng||this.language,z=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(Y&&Y.toLowerCase()==="cimode"){if(z){var $=s.nsSeparator||this.options.nsSeparator;return p?{res:"".concat(j).concat($).concat(x),usedKey:x,exactUsedKey:x,usedLng:Y,usedNS:j}:"".concat(j).concat($).concat(x)}return p?{res:x,usedKey:x,exactUsedKey:x,usedLng:Y,usedNS:j}:x}var L=this.resolve(i,s),ne=L&&L.res,te=L&&L.usedKey||x,he=L&&L.exactUsedKey||x,ie=Object.prototype.toString.apply(ne),xe=["[object Number]","[object Function]","[object RegExp]"],b=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,ke=!this.i18nFormat||this.i18nFormat.handleAsObject,me=typeof ne!="string"&&typeof ne!="boolean"&&typeof ne!="number";if(ke&&ne&&me&&xe.indexOf(ie)<0&&!(typeof b=="string"&&ie==="[object Array]")){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Qe=this.options.returnedObjectHandler?this.options.returnedObjectHandler(te,ne,ki(ki({},s),{},{ns:A})):"key '".concat(x," (").concat(this.language,")' returned an object instead of string.");return p?(L.res=Qe,L):Qe}if(y){var xt=ie==="[object Array]",tt=xt?[]:{},nt=xt?he:te;for(var ft in ne)if(Object.prototype.hasOwnProperty.call(ne,ft)){var ve="".concat(nt).concat(y).concat(ft);tt[ft]=this.translate(ve,ki(ki({},s),{joinArrays:!1,ns:A})),tt[ft]===ve&&(tt[ft]=ne[ft])}ne=tt}}else if(ke&&typeof b=="string"&&ie==="[object Array]")ne=ne.join(b),ne&&(ne=this.extendTranslation(ne,i,s,u));else{var Me=!1,Ve=!1,Ye=s.count!==void 0&&typeof s.count!="string",rt=n.hasDefaultValue(s),Re=Ye?this.pluralResolver.getSuffix(Y,s.count,s):"",Ae=s["defaultValue".concat(Re)]||s.defaultValue;!this.isValidLookup(ne)&&rt&&(Me=!0,ne=Ae),this.isValidLookup(ne)||(Ve=!0,ne=x);var Ge=s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ze=Ge&&Ve?void 0:ne,et=rt&&Ae!==ne&&this.options.updateMissing;if(Ve||Me||et){if(this.logger.log(et?"updateKey":"missingKey",Y,j,x,et?Ae:ne),y){var Je=this.resolve(x,ki(ki({},s),{},{keySeparator:!1}));Je&&Je.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.")}var Ke=[],ht=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ht&&ht[0])for(var bt=0;bt<ht.length;bt++)Ke.push(ht[bt]);else this.options.saveMissingTo==="all"?Ke=this.languageUtils.toResolveHierarchy(s.lng||this.language):Ke.push(s.lng||this.language);var wt=function(Tt,Xe,Nt){var Ht=rt&&Nt!==ne?Nt:Ze;g.options.missingKeyHandler?g.options.missingKeyHandler(Tt,j,Xe,Ht,et,s):g.backendConnector&&g.backendConnector.saveMissing&&g.backendConnector.saveMissing(Tt,j,Xe,Ht,et,s),g.emit("missingKey",Tt,j,Xe,ne)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ye?Ke.forEach(function(pt){g.pluralResolver.getSuffixes(pt,s).forEach(function(Tt){wt([pt],x+Tt,s["defaultValue".concat(Tt)]||Ae)})}):wt(Ke,x,Ae))}ne=this.extendTranslation(ne,i,s,L,u),Ve&&ne===x&&this.options.appendNamespaceToMissingKey&&(ne="".concat(j,":").concat(x)),(Ve||Me)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?ne=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(j,":").concat(x):x,Me?ne:void 0):ne=this.options.parseMissingKeyHandler(ne))}return p?(L.res=ne,L):ne}},{key:"extendTranslation",value:function(i,s,u,g,p){var y=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,ki(ki({},this.options.interpolation.defaultVariables),u),g.usedLng,g.usedNS,g.usedKey,{resolved:g});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init(ki(ki({},u),{interpolation:ki(ki({},this.options.interpolation),u.interpolation)}));var T=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),x;if(T){var A=i.match(this.interpolator.nestingRegexp);x=A&&A.length}var j=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(j=ki(ki({},this.options.interpolation.defaultVariables),j)),i=this.interpolator.interpolate(i,j,u.lng||this.language,u),T){var Y=i.match(this.interpolator.nestingRegexp),z=Y&&Y.length;x<z&&(u.nest=!1)}!u.lng&&this.options.compatibilityAPI!=="v1"&&g&&g.res&&(u.lng=g.usedLng),u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var ne=arguments.length,te=new Array(ne),he=0;he<ne;he++)te[he]=arguments[he];return p&&p[0]===te[0]&&!u.context?(y.logger.warn("It seems you are nesting recursively key: ".concat(te[0]," in key: ").concat(s[0])),null):y.translate.apply(y,te.concat([s]))},u)),u.interpolation&&this.interpolator.reset()}var $=u.postProcess||this.options.postProcess,L=typeof $=="string"?[$]:$;return i!=null&&L&&L.length&&u.applyPostProcessor!==!1&&(i=Xy.handle(L,i,s,this.options&&this.options.postProcessPassResolved?ki({i18nResolved:g},u):u,this)),i}},{key:"resolve",value:function(i){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g,p,y,T,x;return typeof i=="string"&&(i=[i]),i.forEach(function(A){if(!s.isValidLookup(g)){var j=s.extractFromKey(A,u),Y=j.key;p=Y;var z=j.namespaces;s.options.fallbackNS&&(z=z.concat(s.options.fallbackNS));var $=u.count!==void 0&&typeof u.count!="string",L=$&&!u.ordinal&&u.count===0&&s.pluralResolver.shouldUseIntlApi(),ne=u.context!==void 0&&(typeof u.context=="string"||typeof u.context=="number")&&u.context!=="",te=u.lngs?u.lngs:s.languageUtils.toResolveHierarchy(u.lng||s.language,u.fallbackLng);z.forEach(function(he){s.isValidLookup(g)||(x=he,!lm["".concat(te[0],"-").concat(he)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(x)&&(lm["".concat(te[0],"-").concat(he)]=!0,s.logger.warn('key "'.concat(p,'" for languages "').concat(te.join(", "),`" won't get resolved as namespace "`).concat(x,'" 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!!!")),te.forEach(function(ie){if(!s.isValidLookup(g)){T=ie;var xe=[Y];if(s.i18nFormat&&s.i18nFormat.addLookupKeys)s.i18nFormat.addLookupKeys(xe,Y,ie,he,u);else{var b;$&&(b=s.pluralResolver.getSuffix(ie,u.count,u));var ke="".concat(s.options.pluralSeparator,"zero");if($&&(xe.push(Y+b),L&&xe.push(Y+ke)),ne){var me="".concat(Y).concat(s.options.contextSeparator).concat(u.context);xe.push(me),$&&(xe.push(me+b),L&&xe.push(me+ke))}}for(var Qe;Qe=xe.pop();)s.isValidLookup(g)||(y=Qe,g=s.getResource(ie,he,Qe,u))}}))})}}),{res:g,usedKey:p,exactUsedKey:y,usedLng:T,usedNS:x}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,s,u){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,s,u,g):this.resourceStore.getResource(i,s,u,g)}}],[{key:"hasDefaultValue",value:function(i){var s="defaultValue";for(var u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&s===u.substring(0,s.length)&&i[u]!==void 0)return!0;return!1}}]),n}(Vl);function th(t){return t.charAt(0).toUpperCase()+t.slice(1)}var cm=function(){function t(e){zo(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=cs.create("languageUtils")}return $o(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(s){return s.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=th(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=th(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=th(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(s){if(!i){var u=r.formatLanguageCode(s);(!r.options.supportedLngs||r.isSupportedCode(u))&&(i=u)}}),!i&&this.options.supportedLngs&&n.forEach(function(s){if(!i){var u=r.getLanguagePartFromCode(s);if(r.isSupportedCode(u))return i=u;i=r.options.supportedLngs.find(function(g){if(g===u)return g;if(!(g.indexOf("-")<0&&u.indexOf("-")<0)&&g.indexOf(u)===0)return g})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,s=this.getFallbackCodes(r||this.options.fallbackLng||[],n),u=[],g=function(y){y&&(i.isSupportedCode(y)?u.push(y):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(y)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&g(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&g(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&g(this.getLanguagePartFromCode(n))):typeof n=="string"&&g(this.formatLanguageCode(n)),s.forEach(function(p){u.indexOf(p)<0&&g(i.formatLanguageCode(p))}),u}}]),t}(),JT=[{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}],QT={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}},eE=["v1","v2","v3"],fm={zero:0,one:1,two:2,few:3,many:4,other:5};function tE(){var t={};return JT.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:QT[e.fc]}})}),t}var nE=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};zo(this,t),this.languageUtils=e,this.options=n,this.logger=cs.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(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=tE()}return $o(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(s){return"".concat(r).concat(s)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.getRule(n,i);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort(function(u,g){return fm[u]-fm[g]}).map(function(u){return"".concat(r.options.prepend).concat(u)}):s.numbers.map(function(u){return r.getSuffix(n,u,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=this.getRule(n,i);return s?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(s.select(r)):this.getSuffixRetroCompatible(s,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,s=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),u=n.numbers[s];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(u===2?u="plural":u===1&&(u=""));var g=function(){return i.options.prepend&&u.toString()?i.options.prepend+u.toString():u.toString()};return this.options.compatibilityJSON==="v1"?u===1?"":typeof u=="number"?"_plural_".concat(u.toString()):g():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?g():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}},{key:"shouldUseIntlApi",value:function(){return!eE.includes(this.options.compatibilityJSON)}}]),t}();function dm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Fa(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function hm(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=UT(t,e,n);return!s&&i&&typeof n=="string"&&(s=Xf(t,n,r),s===void 0&&(s=Xf(e,n,r))),s}var rE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zo(this,t),this.logger=cs.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return $o(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:zT,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?gc(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?gc(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?gc(r.nestingPrefix):r.nestingPrefixEscaped||gc("$t("),this.nestingSuffix=r.nestingSuffix?gc(r.nestingSuffix):r.nestingSuffixEscaped||gc(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,s){var u=this,g,p,y,T=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function x($){return $.replace(/\$/g,"$$$$")}var A=function(L){if(L.indexOf(u.formatSeparator)<0){var ne=hm(r,T,L,u.options.keySeparator,u.options.ignoreJSONStructure);return u.alwaysFormat?u.format(ne,void 0,i,Fa(Fa(Fa({},s),r),{},{interpolationkey:L})):ne}var te=L.split(u.formatSeparator),he=te.shift().trim(),ie=te.join(u.formatSeparator).trim();return u.format(hm(r,T,he,u.options.keySeparator,u.options.ignoreJSONStructure),ie,i,Fa(Fa(Fa({},s),r),{},{interpolationkey:he}))};this.resetRegExp();var j=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,Y=s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,z=[{regex:this.regexpUnescape,safeValue:function(L){return x(L)}},{regex:this.regexp,safeValue:function(L){return u.escapeValue?x(u.escape(L)):x(L)}}];return z.forEach(function($){for(y=0;g=$.regex.exec(n);){var L=g[1].trim();if(p=A(L),p===void 0)if(typeof j=="function"){var ne=j(n,g,s);p=typeof ne=="string"?ne:""}else if(s&&Object.prototype.hasOwnProperty.call(s,L))p="";else if(Y){p=g[0];continue}else u.logger.warn("missed to pass in variable ".concat(L," for interpolating ").concat(n)),p="";else typeof p!="string"&&!u.useRawValueToEscape&&(p=im(p));var te=$.safeValue(p);if(n=n.replace(g[0],te),Y?($.regex.lastIndex+=p.length,$.regex.lastIndex-=g[0].length):$.regex.lastIndex=0,y++,y>=u.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,g,p;function y(j,Y){var z=this.nestingOptionsSeparator;if(j.indexOf(z)<0)return j;var $=j.split(new RegExp("".concat(z,"[ ]*{"))),L="{".concat($[1]);j=$[0],L=this.interpolate(L,p);var ne=L.match(/'/g),te=L.match(/"/g);(ne&&ne.length%2===0&&!te||te.length%2!==0)&&(L=L.replace(/'/g,'"'));try{p=JSON.parse(L),Y&&(p=Fa(Fa({},Y),p))}catch(he){return this.logger.warn("failed parsing options string in nesting for key ".concat(j),he),"".concat(j).concat(z).concat(L)}return delete p.defaultValue,j}for(;u=this.nestingRegexp.exec(n);){var T=[];p=Fa({},s),p=p.replace&&typeof p.replace!="string"?p.replace:p,p.applyPostProcessor=!1,delete p.defaultValue;var x=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){var A=u[1].split(this.formatSeparator).map(function(j){return j.trim()});u[1]=A.shift(),T=A,x=!0}if(g=r(y.call(this,u[1].trim(),p),p),g&&u[0]===n&&typeof g!="string")return g;typeof g!="string"&&(g=im(g)),g||(this.logger.warn("missed to resolve ".concat(u[1]," for nesting ").concat(n)),g=""),x&&(g=T.reduce(function(j,Y){return i.format(j,Y,s.lng,Fa(Fa({},s),{},{interpolationkey:u[1].trim()}))},g.trim())),n=n.replace(u[0],g),this.regexp.lastIndex=0}return n}}]),t}();function pm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Xs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function iE(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var s=i.split(";");s.forEach(function(u){if(u){var g=u.split(":"),p=jT(g),y=p[0],T=p.slice(1),x=T.join(":").trim().replace(/^'+|'+$/g,"");n[y.trim()]||(n[y.trim()]=x),x==="false"&&(n[y.trim()]=!1),x==="true"&&(n[y.trim()]=!0),isNaN(x)||(n[y.trim()]=parseInt(x,10))}})}}return{formatName:e,formatOptions:n}}function mc(t){var e={};return function(r,i,s){var u=i+JSON.stringify(s),g=e[u];return g||(g=t(i,s),e[u]=g),g(r)}}var oE=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zo(this,t),this.logger=cs.create("formatter"),this.options=e,this.formats={number:mc(function(n,r){var i=new Intl.NumberFormat(n,Xs({},r));return function(s){return i.format(s)}}),currency:mc(function(n,r){var i=new Intl.NumberFormat(n,Xs(Xs({},r),{},{style:"currency"}));return function(s){return i.format(s)}}),datetime:mc(function(n,r){var i=new Intl.DateTimeFormat(n,Xs({},r));return function(s){return i.format(s)}}),relativetime:mc(function(n,r){var i=new Intl.RelativeTimeFormat(n,Xs({},r));return function(s){return i.format(s,r.range||"day")}}),list:mc(function(n,r){var i=new Intl.ListFormat(n,Xs({},r));return function(s){return i.format(s)}})},this.init(e)}return $o(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=mc(r)}},{key:"format",value:function(n,r,i){var s=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=r.split(this.formatSeparator),p=g.reduce(function(y,T){var x=iE(T),A=x.formatName,j=x.formatOptions;if(s.formats[A]){var Y=y;try{var z=u&&u.formatParams&&u.formatParams[u.interpolationkey]||{},$=z.locale||z.lng||u.locale||u.lng||i;Y=s.formats[A](y,$,Xs(Xs(Xs({},j),u),z))}catch(L){s.logger.warn(L)}return Y}else s.logger.warn("there was no format function for ".concat(A));return y},n);return p}}]),t}();function gm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function mm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function aE(t){var e=sE();return function(){var r=ds(t),i;if(e){var s=ds(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return uf(this,i)}}function sE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lE(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var uE=function(t){pd(n,t);var e=aE(n);function n(r,i,s){var u,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return zo(this,n),u=e.call(this),gd&&Vl.call(Qs(u)),u.backend=r,u.store=i,u.services=s,u.languageUtils=s.languageUtils,u.options=g,u.logger=cs.create("backendConnector"),u.waitingReads=[],u.maxParallelReads=g.maxParallelReads||10,u.readingCalls=0,u.maxRetries=g.maxRetries>=0?g.maxRetries:5,u.retryTimeout=g.retryTimeout>=1?g.retryTimeout:350,u.state={},u.queue=[],u.backend&&u.backend.init&&u.backend.init(s,g.backend,g),u}return $o(n,[{key:"queueLoad",value:function(i,s,u,g){var p=this,y={},T={},x={},A={};return i.forEach(function(j){var Y=!0;s.forEach(function(z){var $="".concat(j,"|").concat(z);!u.reload&&p.store.hasResourceBundle(j,z)?p.state[$]=2:p.state[$]<0||(p.state[$]===1?T[$]===void 0&&(T[$]=!0):(p.state[$]=1,Y=!1,T[$]===void 0&&(T[$]=!0),y[$]===void 0&&(y[$]=!0),A[z]===void 0&&(A[z]=!0)))}),Y||(x[j]=!0)}),(Object.keys(y).length||Object.keys(T).length)&&this.queue.push({pending:T,pendingCount:Object.keys(T).length,loaded:{},errors:[],callback:g}),{toLoad:Object.keys(y),pending:Object.keys(T),toLoadLanguages:Object.keys(x),toLoadNamespaces:Object.keys(A)}}},{key:"loaded",value:function(i,s,u){var g=i.split("|"),p=g[0],y=g[1];s&&this.emit("failedLoading",p,y,s),u&&this.store.addResourceBundle(p,y,u),this.state[i]=s?-1:2;var T={};this.queue.forEach(function(x){WT(x.loaded,[p],y),lE(x,i),s&&x.errors.push(s),x.pendingCount===0&&!x.done&&(Object.keys(x.loaded).forEach(function(A){T[A]||(T[A]={});var j=x.loaded[A];j.length&&j.forEach(function(Y){T[A][Y]===void 0&&(T[A][Y]=!0)})}),x.done=!0,x.errors.length?x.callback(x.errors):x.callback())}),this.emit("loaded",T),this.queue=this.queue.filter(function(x){return!x.done})}},{key:"read",value:function(i,s,u){var g=this,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,y=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,T=arguments.length>5?arguments[5]:void 0;if(!i.length)return T(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:s,fcName:u,tried:p,wait:y,callback:T});return}this.readingCalls++;var x=function(z,$){if(g.readingCalls--,g.waitingReads.length>0){var L=g.waitingReads.shift();g.read(L.lng,L.ns,L.fcName,L.tried,L.wait,L.callback)}if(z&&$&&p<g.maxRetries){setTimeout(function(){g.read.call(g,i,s,u,p+1,y*2,T)},y);return}T(z,$)},A=this.backend[u].bind(this.backend);if(A.length===2){try{var j=A(i,s);j&&typeof j.then=="function"?j.then(function(Y){return x(null,Y)}).catch(x):x(null,j)}catch(Y){x(Y)}return}return A(i,s,x)}},{key:"prepareLoading",value:function(i,s){var u=this,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=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."),p&&p();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof s=="string"&&(s=[s]);var y=this.queueLoad(i,s,g,p);if(!y.toLoad.length)return y.pending.length||p(),null;y.toLoad.forEach(function(T){u.loadOne(T)})}},{key:"load",value:function(i,s,u){this.prepareLoading(i,s,{},u)}},{key:"reload",value:function(i,s,u){this.prepareLoading(i,s,{reload:!0},u)}},{key:"loadOne",value:function(i){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",g=i.split("|"),p=g[0],y=g[1];this.read(p,y,"read",void 0,void 0,function(T,x){T&&s.logger.warn("".concat(u,"loading namespace ").concat(y," for language ").concat(p," failed"),T),!T&&x&&s.logger.log("".concat(u,"loaded namespace ").concat(y," for language ").concat(p),x),s.loaded(i,T,x)})}},{key:"saveMissing",value:function(i,s,u,g,p){var y=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},T=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(s)){this.logger.warn('did not save key "'.concat(u,'" as the namespace "').concat(s,'" 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(!(u==null||u==="")){if(this.backend&&this.backend.create){var x=mm(mm({},y),{},{isUpdate:p}),A=this.backend.create.bind(this.backend);if(A.length<6)try{var j;A.length===5?j=A(i,s,u,g,x):j=A(i,s,u,g),j&&typeof j.then=="function"?j.then(function(Y){return T(null,Y)}).catch(T):T(null,j)}catch(Y){T(Y)}else A(i,s,u,g,T,x)}!i||!i[0]||this.store.addResource(i[0],s,u,g)}}}]),n}(Vl);function vm(){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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Uo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Uo(e[2])==="object"||Uo(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function ym(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function bm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ls(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?bm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function cE(t){var e=fE();return function(){var r=ds(t),i;if(e){var s=ds(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return uf(this,i)}}function fE(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rf(){}function dE(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var Kf=function(t){pd(n,t);var e=cE(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;if(zo(this,n),r=e.call(this),gd&&Vl.call(Qs(r)),r.options=ym(i),r.services={},r.logger=cs,r.modules={external:[]},dE(Qs(r)),s&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,s),uf(r,Qs(r));setTimeout(function(){r.init(i,s)},0)}return r}return $o(n,[{key:"init",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof s=="function"&&(u=s,s={}),!s.defaultNS&&s.defaultNS!==!1&&s.ns&&(typeof s.ns=="string"?s.defaultNS=s.ns:s.ns.indexOf("translation")<0&&(s.defaultNS=s.ns[0]));var g=vm();this.options=ls(ls(ls({},g),this.options),ym(s)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ls(ls({},g.interpolation),this.options.interpolation)),s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator);function p(L){return L?typeof L=="function"?new L:L:null}if(!this.options.isClone){this.modules.logger?cs.init(p(this.modules.logger),this.options):cs.init(null,this.options);var y;this.modules.formatter?y=this.modules.formatter:typeof Intl<"u"&&(y=oE);var T=new cm(this.options);this.store=new XT(this.options.resources,this.options);var x=this.services;x.logger=cs,x.resourceStore=this.store,x.languageUtils=T,x.pluralResolver=new nE(T,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),y&&(!this.options.interpolation.format||this.options.interpolation.format===g.interpolation.format)&&(x.formatter=p(y),x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new rE(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new uE(p(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",function(L){for(var ne=arguments.length,te=new Array(ne>1?ne-1:0),he=1;he<ne;he++)te[he-1]=arguments[he];i.emit.apply(i,[L].concat(te))}),this.modules.languageDetector&&(x.languageDetector=p(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=p(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new um(this.services,this.options),this.translator.on("*",function(L){for(var ne=arguments.length,te=new Array(ne>1?ne-1:0),he=1;he<ne;he++)te[he-1]=arguments[he];i.emit.apply(i,[L].concat(te))}),this.modules.external.forEach(function(L){L.init&&L.init(i)})}if(this.format=this.options.interpolation.format,u||(u=Rf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var A=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);A.length>0&&A[0]!=="dev"&&(this.options.lng=A[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var j=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];j.forEach(function(L){i[L]=function(){var ne;return(ne=i.store)[L].apply(ne,arguments)}});var Y=["addResource","addResources","addResourceBundle","removeResourceBundle"];Y.forEach(function(L){i[L]=function(){var ne;return(ne=i.store)[L].apply(ne,arguments),i}});var z=Hc(),$=function(){var ne=function(he,ie){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),z.resolve(ie),u(he,ie)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return ne(null,i.t.bind(i));i.changeLanguage(i.options.lng,ne)};return this.options.resources||!this.options.initImmediate?$():setTimeout($,0),z}},{key:"loadResources",value:function(i){var s=this,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rf,g=u,p=typeof i=="string"?i:this.language;if(typeof i=="function"&&(g=i),!this.options.resources||this.options.partialBundledLanguages){if(p&&p.toLowerCase()==="cimode")return g();var y=[],T=function(j){if(j){var Y=s.services.languageUtils.toResolveHierarchy(j);Y.forEach(function(z){y.indexOf(z)<0&&y.push(z)})}};if(p)T(p);else{var x=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);x.forEach(function(A){return T(A)})}this.options.preload&&this.options.preload.forEach(function(A){return T(A)}),this.services.backendConnector.load(y,this.options.ns,function(A){!A&&!s.resolvedLanguage&&s.language&&s.setResolvedLanguage(s.language),g(A)})}else g(null)}},{key:"reloadResources",value:function(i,s,u){var g=Hc();return i||(i=this.languages),s||(s=this.options.ns),u||(u=Rf),this.services.backendConnector.reload(i,s,function(p){g.resolve(),u(p)}),g}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Xy.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var s=0;s<this.languages.length;s++){var u=this.languages[s];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}},{key:"changeLanguage",value:function(i,s){var u=this;this.isLanguageChangingTo=i;var g=Hc();this.emit("languageChanging",i);var p=function(A){u.language=A,u.languages=u.services.languageUtils.toResolveHierarchy(A),u.resolvedLanguage=void 0,u.setResolvedLanguage(A)},y=function(A,j){j?(p(j),u.translator.changeLanguage(j),u.isLanguageChangingTo=void 0,u.emit("languageChanged",j),u.logger.log("languageChanged",j)):u.isLanguageChangingTo=void 0,g.resolve(function(){return u.t.apply(u,arguments)}),s&&s(A,function(){return u.t.apply(u,arguments)})},T=function(A){!i&&!A&&u.services.languageDetector&&(A=[]);var j=typeof A=="string"?A:u.services.languageUtils.getBestMatchFromCodes(A);j&&(u.language||p(j),u.translator.language||u.translator.changeLanguage(j),u.services.languageDetector&&u.services.languageDetector.cacheUserLanguage&&u.services.languageDetector.cacheUserLanguage(j)),u.loadResources(j,function(Y){y(Y,j)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?T(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(T):this.services.languageDetector.detect(T):T(i),g}},{key:"getFixedT",value:function(i,s,u){var g=this,p=function y(T,x){var A;if(Uo(x)!=="object"){for(var j=arguments.length,Y=new Array(j>2?j-2:0),z=2;z<j;z++)Y[z-2]=arguments[z];A=g.options.overloadTranslationOptionHandler([T,x].concat(Y))}else A=ls({},x);A.lng=A.lng||y.lng,A.lngs=A.lngs||y.lngs,A.ns=A.ns||y.ns,A.keyPrefix=A.keyPrefix||u||y.keyPrefix;var $=g.options.keySeparator||".",L;return A.keyPrefix&&Array.isArray(T)?L=T.map(function(ne){return"".concat(A.keyPrefix).concat($).concat(ne)}):L=A.keyPrefix?"".concat(A.keyPrefix).concat($).concat(T):T,g.t(L,A)};return typeof i=="string"?p.lng=i:p.lngs=i,p.ns=s,p.keyPrefix=u,p}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var s=this,u=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;var g=u.lng||this.resolvedLanguage||this.languages[0],p=this.options?this.options.fallbackLng:!1,y=this.languages[this.languages.length-1];if(g.toLowerCase()==="cimode")return!0;var T=function(j,Y){var z=s.services.backendConnector.state["".concat(j,"|").concat(Y)];return z===-1||z===2};if(u.precheck){var x=u.precheck(this,T);if(x!==void 0)return x}return!!(this.hasResourceBundle(g,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||T(g,i)&&(!p||T(y,i)))}},{key:"loadNamespaces",value:function(i,s){var u=this,g=Hc();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(p){u.options.ns.indexOf(p)<0&&u.options.ns.push(p)}),this.loadResources(function(p){g.resolve(),s&&s(p)}),g):(s&&s(),Promise.resolve())}},{key:"loadLanguages",value:function(i,s){var u=Hc();typeof i=="string"&&(i=[i]);var g=this.options.preload||[],p=i.filter(function(y){return g.indexOf(y)<0});return p.length?(this.options.preload=g.concat(p),this.loadResources(function(y){u.resolve(),s&&s(y)}),u):(s&&s(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var s=["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"],u=this.services&&this.services.languageUtils||new cm(vm());return s.indexOf(u.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rf,g=ls(ls(ls({},this.options),s),{isClone:!0}),p=new n(g);(s.debug!==void 0||s.prefix!==void 0)&&(p.logger=p.logger.clone(s));var y=["store","services","language"];return y.forEach(function(T){p[T]=i[T]}),p.services=ls({},this.services),p.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},p.translator=new um(p.services,p.options),p.translator.on("*",function(T){for(var x=arguments.length,A=new Array(x>1?x-1:0),j=1;j<x;j++)A[j-1]=arguments[j];p.emit.apply(p,[T].concat(A))}),p.init(g,u),p.translator.options=p.options,p.translator.backendConnector.services.utils={hasLoadedNamespace:p.hasLoadedNamespace.bind(p)},p}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(Vl);hs(Kf,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Kf(t,e)});var ni=Kf.createInstance();ni.createInstance=Kf.createInstance;ni.createInstance;ni.dir;ni.init;ni.loadResources;ni.reloadResources;ni.use;ni.changeLanguage;ni.getFixedT;var Ky=ni.t;ni.exists;ni.setDefaultNamespace;ni.hasLoadedNamespace;ni.loadNamespaces;ni.loadLanguages;const Zy={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},Jy=t=>{window.location.href=`${t}/authentication/login?callbackUrl=${window.location.href}`},Qy=t=>{window.location.href=`${t}/authentication/logout?callbackUrl=${window.location.href}`},Nl=AT.create({withCredentials:!0});let nh=!1,Hh=[];const wm=t=>{Hh.forEach(e=>{t?e.reject(t):e.resolve()}),Hh=[]};function eb(t,e){var s,u,g,p,y,T,x;const n=t.config,r=(u=(s=t.response)==null?void 0:s.data)==null?void 0:u.errorMessage,i=r===Zy.TOKEN_EXPIRED;return((g=t.response)==null?void 0:g.status)===401&&i&&!n._retry?nh?new Promise((A,j)=>{Hh.push({resolve:A,reject:j})}).then(()=>Nl(n)).catch(A=>Promise.reject(A)):(n._retry=!0,nh=!0,Nl.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(wm(null),Nl(n))).catch(A=>(wm(A),Promise.reject(A))).finally(()=>{nh=!1})):((p=t.response)==null?void 0:p.status)===401&&!i?Jy(window.env.AUTHEN_DOMAIN):(((y=t.response)==null?void 0:y.status)===403?(T=e==null?void 0:e.handle403)==null||T.call(e,t):(!(e!=null&&e.disabledPushNotify)&&Ep(Ky(`${r||"Something went wrong!"}`)),(x=e==null?void 0:e.handleOtherError)==null||x.call(e,t)),r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t))}Nl.interceptors.response.use(t=>t,async t=>eb(t));const tb=_e.createContext({}),hE=({children:t})=>{const[e,n]=_e.useState(!0),[r,i]=_e.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),s=()=>{n(!e)},u=()=>{n(!0)};return ct.jsx(tb.Provider,{value:{isOpen:e,toggleOpen:s,setShowModalFalse:u,notidata:r,setNotiData:i},children:t})};var nb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xm=_e.createContext&&_e.createContext(nb),pE=["attr","size","title"];function gE(t,e){if(t==null)return{};var n=mE(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function mE(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Zf(){return Zf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Zf.apply(this,arguments)}function Sm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Jf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Sm(Object(n),!0).forEach(function(r){vE(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vE(t,e,n){return e=yE(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yE(t){var e=bE(t,"string");return typeof e=="symbol"?e:String(e)}function bE(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function rb(t){return t&&t.map((e,n)=>_e.createElement(e.tag,Jf({key:n},e.attr),rb(e.child)))}function ib(t){return e=>_e.createElement(wE,Zf({attr:Jf({},t.attr)},e),rb(t.child))}function wE(t){var e=n=>{var{attr:r,size:i,title:s}=t,u=gE(t,pE),g=i||n.size||"1em",p;return n.className&&(p=n.className),t.className&&(p=(p?p+" ":"")+t.className),_e.createElement("svg",Zf({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,u,{className:p,style:Jf(Jf({color:t.color||n.color},n.style),t.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),s&&_e.createElement("title",null,s),t.children)};return xm!==void 0?_e.createElement(xm.Consumer,null,n=>e(n)):e(nb)}function xE(t){return ib({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function SE(t){return ib({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const ob=t=>{const e={...t.colors};return Yf.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:{fontFamily:"TT Firs Neue Trl",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}},components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:e.primary200,"&:hover":{backgroundColor:e.primary200}}}}},MuiPaginationItem:{defaultProps:{components:{previous:xE,next:SE}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:`${e.primary300}1a !important`},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"10px",lineHeight:"12px",fontWeight:400,"& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function CE(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(i=>{n[i.key]=i.color.trim()})}),n}function TE(t){var u,g;const{data:e,isFetching:n}=Jc.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(p=>p.json()):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0}),r=CE(vo,(u=e==null?void 0:e.theme)==null?void 0:u.keyColor);console.log("🚀 ~ useThemeContext ~ isFetching:",n);const i=ob({colors:r}),s=(g=e==null?void 0:e.theme)==null?void 0:g.image;return{colors:r,theme:i,logo:s,isFetching:n}}const ab=_e.createContext({}),EE=()=>_e.useContext(ab),kE=t=>{var s;const{children:e,brandTheme:n}=t,r=TE(n),i=((s=t.customTheme)==null?void 0:s.call(t,r.colors))||r.theme;return ct.jsx(ab.Provider,{value:r,children:ct.jsx(Yf.ThemeProvider,{theme:i,children:e})})},_E=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}
|
|
4
4
|
`;function sb({children:t,styles:e=[],...n}){return ct.jsxs("div",{...n,children:[[_E,...e].map((r,i)=>ct.jsx("style",{type:"text/css",children:r},i)),t]})}var lb=[],RE=lb.forEach,PE=lb.slice;function AE(t){return RE.call(PE.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var Cm=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,OE=function(e,n,r){var i=r||{};i.path=i.path||"/";var s=encodeURIComponent(n),u="".concat(e,"=").concat(s);if(i.maxAge>0){var g=i.maxAge-0;if(Number.isNaN(g))throw new Error("maxAge should be a Number");u+="; Max-Age=".concat(Math.floor(g))}if(i.domain){if(!Cm.test(i.domain))throw new TypeError("option domain is invalid");u+="; Domain=".concat(i.domain)}if(i.path){if(!Cm.test(i.path))throw new TypeError("option path is invalid");u+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");u+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(u+="; HttpOnly"),i.secure&&(u+="; Secure"),i.sameSite){var p=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(p){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return u},Tm={create:function(e,n,r,i){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(s.expires=new Date,s.expires.setTime(s.expires.getTime()+r*60*1e3)),i&&(s.domain=i),document.cookie=OE(e,encodeURIComponent(n),s)},read:function(e){for(var n="".concat(e,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var s=r[i];s.charAt(0)===" ";)s=s.substring(1,s.length);if(s.indexOf(n)===0)return s.substring(n.length,s.length)}return null},remove:function(e){this.create(e,"",-1)}},DE={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var r=Tm.read(e.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&Tm.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},IE={name:"querystring",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),s=i.split("&"),u=0;u<s.length;u++){var g=s[u].indexOf("=");if(g>0){var p=s[u].substring(0,g);p===e.lookupQuerystring&&(n=s[u].substring(g+1))}}}return n}},Wc=null,Em=function(){if(Wc!==null)return Wc;try{Wc=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Wc=!1}return Wc},ME={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&Em()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&Em()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},Uc=null,km=function(){if(Uc!==null)return Uc;try{Uc=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Uc=!1}return Uc},LE={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&km()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&km()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},FE={name:"navigator",lookup:function(e){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},jE={name:"htmlTag",lookup:function(e){var n,r=e.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},NE={name:"path",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;n=r[e.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},BE={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};function HE(){return{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var ub=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};zo(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return $o(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=AE(r,this.options||{},HE()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(s){return s.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(DE),this.addDetector(IE),this.addDetector(ME),this.addDetector(LE),this.addDetector(FE),this.addDetector(jE),this.addDetector(NE),this.addDetector(BE)}},{key:"addDetector",value:function(n){this.detectors[n.name]=n}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(s){if(r.detectors[s]){var u=r.detectors[s].lookup(r.options);u&&typeof u=="string"&&(u=[u]),u&&(i=i.concat(u))}}),i=i.map(function(s){return r.options.convertDetectedLanguage(s)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(s){i.detectors[s]&&i.detectors[s].cacheUserLanguage(n,i.options)}))}}]),t}();ub.type="languageDetector";function xp(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}const WE=Object.freeze(Object.defineProperty({__proto__:null,default:xp},Symbol.toStringTag,{value:"Module"}));var Ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function UE(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}function VE(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var _m={};function Wh(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&_m[e[0]]||(typeof e[0]=="string"&&(_m[e[0]]=new Date),VE.apply(void 0,e))}var cb=function(e,n){return function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}}};function Rm(t,e,n){t.loadNamespaces(e,cb(t,n))}function Pm(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,cb(t,r))}function zE(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var u=function(p,y){var T=e.services.backendConnector.state["".concat(p,"|").concat(y)];return T===-1||T===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!u(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||u(r,t)&&(!i||u(s,t)))}function $E(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Wh("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{lng:n.lng,precheck:function(s,u){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!u(s.isLanguageChangingTo,t))return!1}}):zE(t,e,n)}var YE=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,GE={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},qE=function(e){return GE[e]},XE=function(e){return e.replace(YE,qE)};function Am(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Om(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Am(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var Uh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:XE};function KE(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Uh=Om(Om({},Uh),t)}function ZE(){return Uh}var fb;function JE(t){fb=t}function QE(){return fb}var ek={type:"3rdParty",init:function(e){KE(e.options.react),JE(e)}},db=_e.createContext(),tk=function(){function t(){zo(this,t),this.usedNamespaces={}}return $o(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function nk(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,s,u,g=[],p=!0,y=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;p=!1}else for(;!(p=(r=s.call(n)).done)&&(g.push(r.value),g.length!==e);p=!0);}catch(T){y=!0,i=T}finally{try{if(!p&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(y)throw i}}return g}}function rk(t,e){return $y(t)||nk(t,e)||Yy(t,e)||Gy()}function Dm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function rh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Dm(Object(n),!0).forEach(function(r){hs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Dm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var ik=function(e,n){var r=_e.useRef();return _e.useEffect(function(){r.current=n?r.current:e},[e,n]),r.current};function hb(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=_e.useContext(db)||{},i=r.i18n,s=r.defaultNS,u=n||i||QE();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new tk),!u){Wh("You will need to pass in an i18next instance by using initReactI18next");var g=function(me,Qe){return typeof Qe=="string"?Qe:Qe&&Uo(Qe)==="object"&&typeof Qe.defaultValue=="string"?Qe.defaultValue:Array.isArray(me)?me[me.length-1]:me},p=[g,{},!1];return p.t=g,p.i18n={},p.ready=!1,p}u.options.react&&u.options.react.wait!==void 0&&Wh("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var y=rh(rh(rh({},ZE()),u.options.react),e),T=y.useSuspense,x=y.keyPrefix,A=t||s||u.options&&u.options.defaultNS;A=typeof A=="string"?[A]:A||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(A);var j=(u.isInitialized||u.initializedStoreOnce)&&A.every(function(ke){return $E(ke,u,y)});function Y(){return u.getFixedT(e.lng||null,y.nsMode==="fallback"?A:A[0],x)}var z=_e.useState(Y),$=rk(z,2),L=$[0],ne=$[1],te=A.join();e.lng&&(te="".concat(e.lng).concat(te));var he=ik(te),ie=_e.useRef(!0);_e.useEffect(function(){var ke=y.bindI18n,me=y.bindI18nStore;ie.current=!0,!j&&!T&&(e.lng?Pm(u,e.lng,A,function(){ie.current&&ne(Y)}):Rm(u,A,function(){ie.current&&ne(Y)})),j&&he&&he!==te&&ie.current&&ne(Y);function Qe(){ie.current&&ne(Y)}return ke&&u&&u.on(ke,Qe),me&&u&&u.store.on(me,Qe),function(){ie.current=!1,ke&&u&&ke.split(" ").forEach(function(xt){return u.off(xt,Qe)}),me&&u&&me.split(" ").forEach(function(xt){return u.store.off(xt,Qe)})}},[u,te]);var xe=_e.useRef(!0);_e.useEffect(function(){ie.current&&!xe.current&&ne(Y),xe.current=!1},[u,x]);var b=[L,u,j];if(b.t=L,b.i18n=u,b.ready=j,j||!j&&!T)return b;throw new Promise(function(ke){e.lng?Pm(u,e.lng,A,function(){return ke()}):Rm(u,A,function(){return ke()})})}function ok(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=_e.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return _e.createElement(db.Provider,{value:i},r)}var pb=[],ak=pb.forEach,sk=pb.slice;function lk(t){return ak.call(sk.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function uk(t){return t?typeof t=="function"?new t:t:null}function ck(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function Im(t,e,n,r){var i=t.read.bind(t);if(i.length===2){try{var s=i(e,n);s&&typeof s.then=="function"?s.then(function(u){return r(null,u)}).catch(r):r(null,s)}catch(u){r(u)}return}i(e,n,r)}var gb=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};zo(this,t),this.backends=[],this.type="backend",this.allOptions=r,this.init(e,n)}return $o(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=lk(i,this.options||{},ck()),this.allOptions=s,this.options.backends&&this.options.backends.forEach(function(u,g){r.backends[g]=r.backends[g]||uk(u),r.backends[g].init(n,r.options.backendOptions&&r.options.backendOptions[g]||{},s)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var s=this,u=this.backends.length,g=function y(T){if(T>=u)return i(new Error("non of the backend loaded data",!0));var x=T===u-1,A=s.options.handleEmptyResourcesAsFailed&&!x?0:-1,j=s.backends[T];j.read?Im(j,n,r,function(Y,z,$){if(!Y&&z&&Object.keys(z).length>A){if(i(null,z,T),p(T-1,z),j.save&&s.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(s.options.cacheHitMode)>-1){if($&&s.options.refreshExpirationTime&&$+s.options.refreshExpirationTime>Date.now())return;var L=s.backends[T+1];L&&L.read&&Im(L,n,r,function(ne,te){ne||te&&(Object.keys(te).length<=A||(p(T,te),s.options.cacheHitMode==="refreshAndUpdateStore"&&s.services&&s.services.resourceStore&&s.services.resourceStore.addResourceBundle(n,r,te)))})}}else y(T+1)}):y(T+1)},p=function y(T,x){if(!(T<0)){var A=s.backends[T];A.save&&A.save(n,r,x),y(T-1,x)}};g(0)}},{key:"create",value:function(n,r,i,s){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},g=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(p){if(p.create){var y=p.create.bind(p);if(y.length<6){try{var T;y.length===5?T=y(n,r,i,s,g):T=y(n,r,i,s),T&&typeof T.then=="function"?T.then(function(x){return u(null,x)}).catch(u):u(null,T)}catch(x){u(x)}return}y(n,r,i,s,u,g)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,s=r.languageUtils,u=r.logger,g=i.language;if(!(g&&g.toLowerCase()==="cimode")){var p=[],y=function(x){var A=s.toResolveHierarchy(x);A.forEach(function(j){p.indexOf(j)<0&&p.push(j)})};y(g),this.allOptions.preload&&this.allOptions.preload.forEach(function(T){return y(T)}),p.forEach(function(T){n.allOptions.ns.forEach(function(x){i.read(T,x,"read",null,null,function(A,j){A&&u.warn("loading namespace ".concat(x," for language ").concat(T," failed"),A),!A&&j&&u.log("loaded namespace ".concat(x," for language ").concat(T),j),i.loaded("".concat(T,"|").concat(x),A,j)})})})}}}]),t}();gb.type="backend";function Vh(t){"@babel/helpers - typeof";return Vh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vh(t)}function mb(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Vh(XMLHttpRequest))==="object"}function fk(t){return!!t&&typeof t.then=="function"}function dk(t){return fk(t)?t:Promise.resolve(t)}function hk(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zh={exports:{}},Pf={exports:{}},Mm;function pk(){return Mm||(Mm=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ho<"u"&&Ho,r=function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s}();(function(s){(function(u){var g=typeof s<"u"&&s||typeof self<"u"&&self||typeof g<"u"&&g,p={searchParams:"URLSearchParams"in g,iterable:"Symbol"in g&&"iterator"in Symbol,blob:"FileReader"in g&&"Blob"in g&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in g,arrayBuffer:"ArrayBuffer"in g};function y(ve){return ve&&DataView.prototype.isPrototypeOf(ve)}if(p.arrayBuffer)var T=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],x=ArrayBuffer.isView||function(ve){return ve&&T.indexOf(Object.prototype.toString.call(ve))>-1};function A(ve){if(typeof ve!="string"&&(ve=String(ve)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(ve)||ve==="")throw new TypeError('Invalid character in header field name: "'+ve+'"');return ve.toLowerCase()}function j(ve){return typeof ve!="string"&&(ve=String(ve)),ve}function Y(ve){var Me={next:function(){var Ve=ve.shift();return{done:Ve===void 0,value:Ve}}};return p.iterable&&(Me[Symbol.iterator]=function(){return Me}),Me}function z(ve){this.map={},ve instanceof z?ve.forEach(function(Me,Ve){this.append(Ve,Me)},this):Array.isArray(ve)?ve.forEach(function(Me){this.append(Me[0],Me[1])},this):ve&&Object.getOwnPropertyNames(ve).forEach(function(Me){this.append(Me,ve[Me])},this)}z.prototype.append=function(ve,Me){ve=A(ve),Me=j(Me);var Ve=this.map[ve];this.map[ve]=Ve?Ve+", "+Me:Me},z.prototype.delete=function(ve){delete this.map[A(ve)]},z.prototype.get=function(ve){return ve=A(ve),this.has(ve)?this.map[ve]:null},z.prototype.has=function(ve){return this.map.hasOwnProperty(A(ve))},z.prototype.set=function(ve,Me){this.map[A(ve)]=j(Me)},z.prototype.forEach=function(ve,Me){for(var Ve in this.map)this.map.hasOwnProperty(Ve)&&ve.call(Me,this.map[Ve],Ve,this)},z.prototype.keys=function(){var ve=[];return this.forEach(function(Me,Ve){ve.push(Ve)}),Y(ve)},z.prototype.values=function(){var ve=[];return this.forEach(function(Me){ve.push(Me)}),Y(ve)},z.prototype.entries=function(){var ve=[];return this.forEach(function(Me,Ve){ve.push([Ve,Me])}),Y(ve)},p.iterable&&(z.prototype[Symbol.iterator]=z.prototype.entries);function $(ve){if(ve.bodyUsed)return Promise.reject(new TypeError("Already read"));ve.bodyUsed=!0}function L(ve){return new Promise(function(Me,Ve){ve.onload=function(){Me(ve.result)},ve.onerror=function(){Ve(ve.error)}})}function ne(ve){var Me=new FileReader,Ve=L(Me);return Me.readAsArrayBuffer(ve),Ve}function te(ve){var Me=new FileReader,Ve=L(Me);return Me.readAsText(ve),Ve}function he(ve){for(var Me=new Uint8Array(ve),Ve=new Array(Me.length),Ye=0;Ye<Me.length;Ye++)Ve[Ye]=String.fromCharCode(Me[Ye]);return Ve.join("")}function ie(ve){if(ve.slice)return ve.slice(0);var Me=new Uint8Array(ve.byteLength);return Me.set(new Uint8Array(ve)),Me.buffer}function xe(){return this.bodyUsed=!1,this._initBody=function(ve){this.bodyUsed=this.bodyUsed,this._bodyInit=ve,ve?typeof ve=="string"?this._bodyText=ve:p.blob&&Blob.prototype.isPrototypeOf(ve)?this._bodyBlob=ve:p.formData&&FormData.prototype.isPrototypeOf(ve)?this._bodyFormData=ve:p.searchParams&&URLSearchParams.prototype.isPrototypeOf(ve)?this._bodyText=ve.toString():p.arrayBuffer&&p.blob&&y(ve)?(this._bodyArrayBuffer=ie(ve.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ve)||x(ve))?this._bodyArrayBuffer=ie(ve):this._bodyText=ve=Object.prototype.toString.call(ve):this._bodyText="",this.headers.get("content-type")||(typeof ve=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):p.searchParams&&URLSearchParams.prototype.isPrototypeOf(ve)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p.blob&&(this.blob=function(){var ve=$(this);if(ve)return ve;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 ve=$(this);return ve||(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(ne)}),this.text=function(){var ve=$(this);if(ve)return ve;if(this._bodyBlob)return te(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(he(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p.formData&&(this.formData=function(){return this.text().then(Qe)}),this.json=function(){return this.text().then(JSON.parse)},this}var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ke(ve){var Me=ve.toUpperCase();return b.indexOf(Me)>-1?Me:ve}function me(ve,Me){if(!(this instanceof me))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Me=Me||{};var Ve=Me.body;if(ve instanceof me){if(ve.bodyUsed)throw new TypeError("Already read");this.url=ve.url,this.credentials=ve.credentials,Me.headers||(this.headers=new z(ve.headers)),this.method=ve.method,this.mode=ve.mode,this.signal=ve.signal,!Ve&&ve._bodyInit!=null&&(Ve=ve._bodyInit,ve.bodyUsed=!0)}else this.url=String(ve);if(this.credentials=Me.credentials||this.credentials||"same-origin",(Me.headers||!this.headers)&&(this.headers=new z(Me.headers)),this.method=ke(Me.method||this.method||"GET"),this.mode=Me.mode||this.mode||null,this.signal=Me.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Ve)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Ve),(this.method==="GET"||this.method==="HEAD")&&(Me.cache==="no-store"||Me.cache==="no-cache")){var Ye=/([?&])_=[^&]*/;if(Ye.test(this.url))this.url=this.url.replace(Ye,"$1_="+new Date().getTime());else{var rt=/\?/;this.url+=(rt.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}me.prototype.clone=function(){return new me(this,{body:this._bodyInit})};function Qe(ve){var Me=new FormData;return ve.trim().split("&").forEach(function(Ve){if(Ve){var Ye=Ve.split("="),rt=Ye.shift().replace(/\+/g," "),Re=Ye.join("=").replace(/\+/g," ");Me.append(decodeURIComponent(rt),decodeURIComponent(Re))}}),Me}function xt(ve){var Me=new z,Ve=ve.replace(/\r?\n[\t ]+/g," ");return Ve.split("\r").map(function(Ye){return Ye.indexOf(`
|
|
5
5
|
`)===0?Ye.substr(1,Ye.length):Ye}).forEach(function(Ye){var rt=Ye.split(":"),Re=rt.shift().trim();if(Re){var Ae=rt.join(":").trim();Me.append(Re,Ae)}}),Me}xe.call(me.prototype);function tt(ve,Me){if(!(this instanceof tt))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');Me||(Me={}),this.type="default",this.status=Me.status===void 0?200:Me.status,this.ok=this.status>=200&&this.status<300,this.statusText=Me.statusText===void 0?"":""+Me.statusText,this.headers=new z(Me.headers),this.url=Me.url||"",this._initBody(ve)}xe.call(tt.prototype),tt.prototype.clone=function(){return new tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new z(this.headers),url:this.url})},tt.error=function(){var ve=new tt(null,{status:0,statusText:""});return ve.type="error",ve};var nt=[301,302,303,307,308];tt.redirect=function(ve,Me){if(nt.indexOf(Me)===-1)throw new RangeError("Invalid status code");return new tt(null,{status:Me,headers:{location:ve}})},u.DOMException=g.DOMException;try{new u.DOMException}catch{u.DOMException=function(Me,Ve){this.message=Me,this.name=Ve;var Ye=Error(Me);this.stack=Ye.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function ft(ve,Me){return new Promise(function(Ve,Ye){var rt=new me(ve,Me);if(rt.signal&&rt.signal.aborted)return Ye(new u.DOMException("Aborted","AbortError"));var Re=new XMLHttpRequest;function Ae(){Re.abort()}Re.onload=function(){var Ze={status:Re.status,statusText:Re.statusText,headers:xt(Re.getAllResponseHeaders()||"")};Ze.url="responseURL"in Re?Re.responseURL:Ze.headers.get("X-Request-URL");var et="response"in Re?Re.response:Re.responseText;setTimeout(function(){Ve(new tt(et,Ze))},0)},Re.onerror=function(){setTimeout(function(){Ye(new TypeError("Network request failed"))},0)},Re.ontimeout=function(){setTimeout(function(){Ye(new TypeError("Network request failed"))},0)},Re.onabort=function(){setTimeout(function(){Ye(new u.DOMException("Aborted","AbortError"))},0)};function Ge(Ze){try{return Ze===""&&g.location.href?g.location.href:Ze}catch{return Ze}}Re.open(rt.method,Ge(rt.url),!0),rt.credentials==="include"?Re.withCredentials=!0:rt.credentials==="omit"&&(Re.withCredentials=!1),"responseType"in Re&&(p.blob?Re.responseType="blob":p.arrayBuffer&&rt.headers.get("Content-Type")&&rt.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(Re.responseType="arraybuffer")),Me&&typeof Me.headers=="object"&&!(Me.headers instanceof z)?Object.getOwnPropertyNames(Me.headers).forEach(function(Ze){Re.setRequestHeader(Ze,j(Me.headers[Ze]))}):rt.headers.forEach(function(Ze,et){Re.setRequestHeader(et,Ze)}),rt.signal&&(rt.signal.addEventListener("abort",Ae),Re.onreadystatechange=function(){Re.readyState===4&&rt.signal.removeEventListener("abort",Ae)}),Re.send(typeof rt._bodyInit>"u"?null:rt._bodyInit)})}return ft.polyfill=!0,g.fetch||(g.fetch=ft,g.Headers=z,g.Request=me,g.Response=tt),u.Headers=z,u.Request=me,u.Response=tt,u.fetch=ft,u})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(Pf,Pf.exports)),Pf.exports}(function(t,e){var n;if(typeof fetch=="function"&&(typeof Ho<"u"&&Ho.fetch?n=Ho.fetch:typeof window<"u"&&window.fetch?n=window.fetch:n=fetch),typeof hk<"u"&&(typeof window>"u"||typeof window.document>"u")){var r=n||pk();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(zh,zh.exports);var vb=zh.exports;const yb=cf(vb),Lm=IT({__proto__:null,default:yb},[vb]);function Fm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function jm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Fm(Object(n),!0).forEach(function(r){gk(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gk(t,e,n){return e=mk(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mk(t){var e=vk(t,"string");return Nu(e)=="symbol"?e:String(e)}function vk(t,e){if(Nu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Nu(t){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nu(t)}var el;typeof fetch=="function"&&(typeof global<"u"&&global.fetch?el=global.fetch:typeof window<"u"&&window.fetch?el=window.fetch:el=fetch);var Qc;mb()&&(typeof global<"u"&&global.XMLHttpRequest?Qc=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Qc=window.XMLHttpRequest));var Qf;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Qf=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Qf=window.ActiveXObject));!el&&Lm&&!Qc&&!Qf&&(el=yb||Lm);typeof el!="function"&&(el=void 0);var $h=function(e,n){if(n&&Nu(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},Nm=function(e,n,r,i){var s=function(p){if(!p.ok)return r(p.statusText||"Error",{status:p.status});p.text().then(function(y){r(null,{status:p.status,data:y})}).catch(r)};if(i){var u=i(e,n);if(u instanceof Promise){u.then(s).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(s).catch(r):el(e,n).then(s).catch(r)},Bm=!1,yk=function(e,n,r,i){e.queryStringParams&&(n=$h(n,e.queryStringParams));var s=jm({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(s["Content-Type"]="application/json");var u=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,g=jm({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:s},Bm?{}:u),p=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Nm(n,g,i,p)}catch(y){if(!u||Object.keys(u).length===0||!y.message||y.message.indexOf("not implemented")<0)return i(y);try{Object.keys(u).forEach(function(T){delete g[T]}),Nm(n,g,i,p),Bm=!0}catch(T){i(T)}}},bk=function(e,n,r,i){r&&Nu(r)==="object"&&(r=$h("",r).slice(1)),e.queryStringParams&&(n=$h(n,e.queryStringParams));try{var s;Qc?s=new Qc:s=new Qf("MSXML2.XMLHTTP.3.0"),s.open(r?"POST":"GET",n,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var u=e.customHeaders;if(u=typeof u=="function"?u():u,u)for(var g in u)s.setRequestHeader(g,u[g]);s.onreadystatechange=function(){s.readyState>3&&i(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(p){console&&console.log(p)}},wk=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},el&&n.indexOf("file:")!==0)return yk(e,n,r,i);if(mb()||typeof ActiveXObject=="function")return bk(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function ef(t){"@babel/helpers - typeof";return ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ef(t)}function Hm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ih(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Hm(Object(n),!0).forEach(function(r){bb(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hm(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xk(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,wb(r.key),r)}}function Sk(t,e,n){return e&&Wm(t.prototype,e),n&&Wm(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function bb(t,e,n){return e=wb(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wb(t){var e=Ck(t,"string");return ef(e)=="symbol"?e:String(e)}function Ck(t,e){if(ef(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tk=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,i){return bb({},r,i||"")},parseLoadPayload:function(n,r){},request:wk,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},xb=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};xk(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return Sk(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=ih(ih(ih({},Tk()),this.options||{}),i),this.allOptions=s,this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,s,u){var g=this,p=this.options.loadPath;typeof this.options.loadPath=="function"&&(p=this.options.loadPath(n,i)),p=dk(p),p.then(function(y){if(!y)return u(null,{});var T=g.services.interpolator.interpolate(y,{lng:n.join("+"),ns:i.join("+")});g.loadUrl(T,u,r,s)})}},{key:"loadUrl",value:function(n,r,i,s){var u=this,g=typeof i=="string"?[i]:i,p=typeof s=="string"?[s]:s,y=this.options.parseLoadPayload(g,p);this.options.request(this.options,n,y,function(T,x){if(x&&(x.status>=500&&x.status<600||!x.status))return r("failed loading "+n+"; status code: "+x.status,!0);if(x&&x.status>=400&&x.status<500)return r("failed loading "+n+"; status code: "+x.status,!1);if(!x&&T&&T.message&&T.message.indexOf("Failed to fetch")>-1)return r("failed loading "+n+": "+T.message,!0);if(T)return r(T,!1);var A,j;try{typeof x.data=="string"?A=u.options.parse(x.data,i,s):A=x.data}catch{j="failed parsing "+n+" to json"}if(j)return r(j,!1);r(null,A)})}},{key:"create",value:function(n,r,i,s,u){var g=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var p=this.options.parsePayload(r,i,s),y=0,T=[],x=[];n.forEach(function(A){var j=g.options.addPath;typeof g.options.addPath=="function"&&(j=g.options.addPath(A,r));var Y=g.services.interpolator.interpolate(j,{lng:A,ns:r});g.options.request(g.options,Y,p,function(z,$){y+=1,T.push(z),x.push($),y===n.length&&typeof u=="function"&&u(T,x)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,s=r.languageUtils,u=r.logger,g=i.language;if(!(g&&g.toLowerCase()==="cimode")){var p=[],y=function(x){var A=s.toResolveHierarchy(x);A.forEach(function(j){p.indexOf(j)<0&&p.push(j)})};y(g),this.allOptions.preload&&this.allOptions.preload.forEach(function(T){return y(T)}),p.forEach(function(T){n.allOptions.ns.forEach(function(x){i.read(T,x,"read",null,null,function(A,j){A&&u.warn("loading namespace ".concat(x," for language ").concat(T," failed"),A),!A&&j&&u.log("loaded namespace ".concat(x," for language ").concat(T),j),i.loaded("".concat(T,"|").concat(x),A,j)})})})}}}]),t}();xb.type="backend";var Sp=(t=>(t.en="en",t.de="de",t))(Sp||{});const Ek={en:"English",de:"German"};ni.use(gb).use(ek).use(ub).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(Ek),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[xb],backendOptions:[{loadPath:"https://ukpcsaprod.blob.core.windows.net/lib/translations/{{lng}}/{{ns}}.json",crossDomain:!0,cacheHitMode:"refresh"}]}});const kk=t=>{const e=Jc.useQueryClient(),n=_e.useMemo(()=>t.axiosInstance||Nl,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Jc.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account").then(i=>i.data)});return _e.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},_k=t=>{const e=Jc.useQueryClient(),n=_e.useMemo(()=>t.axiosInstance||Nl,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Jc.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return _e.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},Um=window.location.href,Cp=_e.createContext({}),Rk=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,s=kk({axiosInstance:r,baseUrl:n}),u=_k({axiosInstance:r,baseUrl:n});function g(){const T=document.cookie.split(";");for(let x=0;x<T.length;x++){const A=T[x],j=A.indexOf("="),Y=j>-1?A.substr(0,j):A;document.cookie=Y+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"}}function p(){window.location.href=`${i}/authentication/login?callbackUrl=${Um}`}function y(){g(),window.location.href=`${i}/authentication/logout?callbackUrl=${Um}`}return ct.jsx(Cp.Provider,{value:{user:s==null?void 0:s.data,login:p,logout:y,isFetching:s.isFetching,permissions:u==null?void 0:u.data},children:e})},Pk=()=>_e.useContext(Cp);function Ak(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}function Ok(){const[t,e]=_e.useState();return _e.useEffect(()=>{const n=localStorage.getItem("language");e(n||Sp.en)},[]),{language:t,setLanguage:e}}const Sb=_e.createContext({}),Dk=()=>_e.useContext(Sb),Ik=ni,Mk=Ky,Lk=()=>hb(),Fk=({children:t})=>{const e=Ok();return ct.jsx(Sb.Provider,{value:e,children:ct.jsx(ok,{i18n:ni,children:t})})};var jk=typeof global=="object"&&global&&global.Object===Object&&global;const Nk=jk;var Bk=typeof self=="object"&&self&&self.Object===Object&&self,Hk=Nk||Bk||Function("return this")();const Cb=Hk;var Wk=Cb.Symbol;const ed=Wk;var Tb=Object.prototype,Uk=Tb.hasOwnProperty,Vk=Tb.toString,Vc=ed?ed.toStringTag:void 0;function zk(t){var e=Uk.call(t,Vc),n=t[Vc];try{t[Vc]=void 0;var r=!0}catch{}var i=Vk.call(t);return r&&(e?t[Vc]=n:delete t[Vc]),i}var $k=Object.prototype,Yk=$k.toString;function Gk(t){return Yk.call(t)}var qk="[object Null]",Xk="[object Undefined]",Vm=ed?ed.toStringTag:void 0;function Kk(t){return t==null?t===void 0?Xk:qk:Vm&&Vm in Object(t)?zk(t):Gk(t)}function Zk(t){return t!=null&&typeof t=="object"}var Jk="[object Symbol]";function Qk(t){return typeof t=="symbol"||Zk(t)&&Kk(t)==Jk}var e_=/\s/;function t_(t){for(var e=t.length;e--&&e_.test(t.charAt(e)););return e}var n_=/^\s+/;function r_(t){return t&&t.slice(0,t_(t)+1).replace(n_,"")}function td(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var zm=0/0,i_=/^[-+]0x[0-9a-f]+$/i,o_=/^0b[01]+$/i,a_=/^0o[0-7]+$/i,s_=parseInt;function $m(t){if(typeof t=="number")return t;if(Qk(t))return zm;if(td(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=td(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=r_(t);var n=o_.test(t);return n||a_.test(t)?s_(t.slice(2),n?2:8):i_.test(t)?zm:+t}var l_=function(){return Cb.Date.now()};const oh=l_;var u_="Expected a function",c_=Math.max,f_=Math.min;function Uf(t,e,n){var r,i,s,u,g,p,y=0,T=!1,x=!1,A=!0;if(typeof t!="function")throw new TypeError(u_);e=$m(e)||0,td(n)&&(T=!!n.leading,x="maxWait"in n,s=x?c_($m(n.maxWait)||0,e):s,A="trailing"in n?!!n.trailing:A);function j(xe){var b=r,ke=i;return r=i=void 0,y=xe,u=t.apply(ke,b),u}function Y(xe){return y=xe,g=setTimeout(L,e),T?j(xe):u}function z(xe){var b=xe-p,ke=xe-y,me=e-b;return x?f_(me,s-ke):me}function $(xe){var b=xe-p,ke=xe-y;return p===void 0||b>=e||b<0||x&&ke>=s}function L(){var xe=oh();if($(xe))return ne(xe);g=setTimeout(L,z(xe))}function ne(xe){return g=void 0,A&&r?j(xe):(r=i=void 0,u)}function te(){g!==void 0&&clearTimeout(g),y=0,r=p=i=g=void 0}function he(){return g===void 0?u:ne(oh())}function ie(){var xe=oh(),b=$(xe);if(r=arguments,i=this,p=xe,b){if(g===void 0)return Y(p);if(x)return clearTimeout(g),g=setTimeout(L,e),j(p)}return g===void 0&&(g=setTimeout(L,e)),u}return ie.cancel=te,ie.flush=he,ie}var d_="Expected a function";function h_(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(d_);return td(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Uf(t,e,{leading:r,maxWait:e,trailing:i})}var p_=!!(typeof window<"u"&&window.document&&window.document.createElement),g_=p_;const Eb=cf(g_);var bc=function(){return bc=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},bc.apply(this,arguments)},vc=null,Ym=null;Eb&&window.addEventListener("resize",function(){Ym!==window.devicePixelRatio&&(Ym=window.devicePixelRatio,vc=null)});function Gm(){if(vc===null){if(typeof document>"u")return vc=0,vc;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),vc=n}return vc}function kb(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function _b(t){return!t||!t.ownerDocument?document:t.ownerDocument}var Rb=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var u=s[1].replace(/\W+(.)/g,function(g,p){return p.toUpperCase()});switch(i.value){case"true":r[u]=!0;break;case"false":r[u]=!1;break;case void 0:r[u]=!0;break;default:r[u]=i.value}}return r},e);return n};function Pb(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function Ab(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function Ob(t){return".".concat(t.split(" ").join("."))}var m_=Object.freeze({__proto__:null,getElementWindow:kb,getElementDocument:_b,getOptions:Rb,addClasses:Pb,removeClasses:Ab,classNamesToQuery:Ob}),Dl=kb,ah=_b,v_=Rb,Il=Pb,Ml=Ab,mo=Ob,Af=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=Dl(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,Il(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){Ml(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(Il(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){Ml(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var s,u;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(s=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(u=r.isWithinBounds(r.axis.y.track.rect)),(s||u)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),u&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var s,u,g,p,y,T,x,A,j,Y,z;if(!(!r.draggedAxis||!r.contentWrapperEl)){var $,L=r.axis[r.draggedAxis].track,ne=(u=(s=L.rect)===null||s===void 0?void 0:s[r.axis[r.draggedAxis].sizeAttr])!==null&&u!==void 0?u:0,te=r.axis[r.draggedAxis].scrollbar,he=(p=(g=r.contentWrapperEl)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&p!==void 0?p:0,ie=parseInt((T=(y=r.elStyles)===null||y===void 0?void 0:y[r.axis[r.draggedAxis].sizeAttr])!==null&&T!==void 0?T:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?$=i.pageY:$=i.pageX;var xe=$-((A=(x=L.rect)===null||x===void 0?void 0:x[r.axis[r.draggedAxis].offsetAttr])!==null&&A!==void 0?A:0)-r.axis[r.draggedAxis].dragOffset;xe=r.draggedAxis==="x"&&r.isRtl?((Y=(j=L.rect)===null||j===void 0?void 0:j[r.axis[r.draggedAxis].sizeAttr])!==null&&Y!==void 0?Y:0)-te.size-xe:xe;var b=xe/(ne-te.size),ke=b*(he-ie);r.draggedAxis==="x"&&r.isRtl&&(ke=!((z=t.getRtlHelpers())===null||z===void 0)&&z.isScrollingToNegative?-ke:ke),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ke}},this.onEndDrag=function(i){var s=ah(r.el),u=Dl(r.el);i.preventDefault(),i.stopPropagation(),Ml(r.el,r.classNames.dragging),s.removeEventListener("mousemove",r.drag,!0),s.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=u.setTimeout(function(){s.removeEventListener("click",r.preventClick,!0),s.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=bc(bc({},t.defaultOptions),n),this.classNames=bc(bc({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=h_(this._onMouseMove,64),this.onWindowResize=Uf(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Uf(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Uf(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),s=t.getOffset(r);n.scrollLeft=-999;var u=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.left!==u.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Gm()}catch{return Gm()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=ah(e),i=Dl(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Eb&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(mo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(mo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(mo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(mo(this.classNames.offset)),this.maskEl=this.el.querySelector(mo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,mo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(mo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(mo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(mo(this.classNames.track)).concat(mo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(mo(this.classNames.track)).concat(mo(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(mo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(mo(this.classNames.scrollbar)))||null,this.options.autoHide||(Il(this.axis.x.scrollbar.el,this.classNames.visible),Il(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=Dl(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,s=r.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=Dl(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,s=this.contentWrapperEl.offsetWidth,u=this.elStyles.overflowX,g=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var p=this.contentEl.scrollHeight,y=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||y,"px"):"auto",this.placeholderEl.style.height="".concat(p,"px");var T=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&y>n,this.axis.y.isOverflowing=p>T,this.axis.x.isOverflowing=u==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=g==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var x=this.axis.x.isOverflowing?this.scrollbarWidth:0,A=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&y>s-A,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&p>T-x,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],s=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,u=s/i,g;return g=Math.max(~~(u*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(g=Math.min(g,this.options.scrollbarMaxSize)),g},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var s=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var u=this.contentWrapperEl[this.axis[e].scrollSizeAttr],g=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,p=parseInt(this.elStyles[this.axis[e].sizeAttr],10),y=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];y=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-y:y,e==="x"&&this.isRtl&&(y=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?y:-y);var T=y/(u-p),x=~~((g-s.size)*T);x=e==="x"&&this.isRtl?-x+(g-s.size):x,s.el.style.transform=e==="x"?"translate3d(".concat(x,"px, 0, 0)"):"translate3d(0, ".concat(x,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(Il(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(Ml(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),Il(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?Il(n.scrollbar.el,this.classNames.hover):Ml(n.scrollbar.el,this.classNames.hover)):(Ml(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),Ml(this.axis[e].track.el,this.classNames.hover),Ml(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y");var i=ah(this.el),s=Dl(this.el),u=this.axis[n].scrollbar,g=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=g-(((r=u.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,Il(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,s,u,g;n===void 0&&(n="y");var p=this.axis[n];if(!(!this.options.clickOnTrack||!p.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var y=Dl(this.el);this.axis[n].scrollbar.rect=p.scrollbar.el.getBoundingClientRect();var T=this.axis[n].scrollbar,x=(s=(i=T.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&s!==void 0?s:0,A=parseInt((g=(u=this.elStyles)===null||u===void 0?void 0:u[this.axis[n].sizeAttr])!==null&&g!==void 0?g:"0px",10),j=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],Y=n==="y"?this.mouseY-x:this.mouseX-x,z=Y<0?-1:1,$=z===-1?j-A:j+A,L=40,ne=function(){r.contentWrapperEl&&(z===-1?j>$&&(j-=L,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=j,y.requestAnimationFrame(ne)):j<$&&(j+=L,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=j,y.requestAnimationFrame(ne)))};ne()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=Dl(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=v_,t.helpers=m_,t}(),Bo=function(){return Bo=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Bo.apply(this,arguments)};function y_(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Db=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,s=y_(t,["children","scrollableNodeProps"]),u=kn.useRef(),g=kn.useRef(),p=kn.useRef(),y={},T={};Object.keys(s).forEach(function(j){Object.prototype.hasOwnProperty.call(Af.defaultOptions,j)?y[j]=s[j]:T[j]=s[j]});var x=Bo(Bo({},Af.defaultOptions.classNames),y.classNames),A=Bo(Bo({},i),{className:"".concat(x.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:0,role:"region","aria-label":y.ariaLabel||Af.defaultOptions.ariaLabel});return kn.useEffect(function(){var j;return g.current=A.ref?A.ref.current:g.current,u.current&&(j=new Af(u.current,Bo(Bo(Bo({},y),g.current&&{scrollableNode:g.current}),p.current&&{contentNode:p.current})),typeof e=="function"?e(j):e&&(e.current=j)),function(){j==null||j.unMount(),j=null,typeof e=="function"&&e(null)}},[]),kn.createElement("div",Bo({"data-simplebar":"init",ref:u},T),kn.createElement("div",{className:x.wrapper},kn.createElement("div",{className:x.heightAutoObserverWrapperEl},kn.createElement("div",{className:x.heightAutoObserverEl})),kn.createElement("div",{className:x.mask},kn.createElement("div",{className:x.offset},typeof n=="function"?n({scrollableNodeRef:g,scrollableNodeProps:Bo(Bo({},A),{ref:g}),contentNodeRef:p,contentNodeProps:{className:x.contentEl,ref:p}}):kn.createElement("div",Bo({},A),kn.createElement("div",{className:x.contentEl},n)))),kn.createElement("div",{className:x.placeholder})),kn.createElement("div",{className:"".concat(x.track," simplebar-horizontal")},kn.createElement("div",{className:x.scrollbar})),kn.createElement("div",{className:"".concat(x.track," simplebar-vertical")},kn.createElement("div",{className:x.scrollbar})))});Db.displayName="SimpleBar";const b_=`[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
6
6
|
`;function Ib(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Ib(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Zs(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ib(t))&&(r&&(r+=" "),r+=e);return r}const tf=t=>typeof t=="number"&&!isNaN(t),ju=t=>typeof t=="string",Wo=t=>typeof t=="function",Vf=t=>ju(t)||Wo(t)?t:null,Yh=t=>_e.isValidElement(t)||ju(t)||Wo(t)||tf(t);function w_(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function md(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:s=300}=t;return function(u){let{children:g,position:p,preventExitTransition:y,done:T,nodeRef:x,isIn:A,playToast:j}=u;const Y=r?`${e}--${p}`:e,z=r?`${n}--${p}`:n,$=_e.useRef(0);return _e.useLayoutEffect(()=>{const L=x.current,ne=Y.split(" "),te=he=>{he.target===x.current&&(j(),L.removeEventListener("animationend",te),L.removeEventListener("animationcancel",te),$.current===0&&he.type!=="animationcancel"&&L.classList.remove(...ne))};L.classList.add(...ne),L.addEventListener("animationend",te),L.addEventListener("animationcancel",te)},[]),_e.useEffect(()=>{const L=x.current,ne=()=>{L.removeEventListener("animationend",ne),i?w_(L,T,s):T()};A||(y?ne():($.current=1,L.className+=` ${z}`,L.addEventListener("animationend",ne)))},[A]),_e.createElement(_e.Fragment,null,g)}}function qm(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const Ki=new Map;let nf=[];const Gh=new Set,x_=t=>Gh.forEach(e=>e(t)),Mb=()=>Ki.size>0;function Lb(t,e){var n;if(e)return!((n=Ki.get(e))==null||!n.isToastActive(t));let r=!1;return Ki.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function Fb(t,e){Yh(t)&&(Mb()||nf.push({content:t,options:e}),Ki.forEach(n=>{n.buildToast(t,e)}))}function Xm(t,e){Ki.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function S_(t){const{subscribe:e,getSnapshot:n,setProps:r}=_e.useRef(function(s){const u=s.containerId||1;return{subscribe(g){const p=function(T,x,A){let j=1,Y=0,z=[],$=[],L=[],ne=x;const te=new Map,he=new Set,ie=()=>{L=Array.from(te.values()),he.forEach(ke=>ke())},xe=ke=>{$=ke==null?[]:$.filter(me=>me!==ke),ie()},b=ke=>{const{toastId:me,onOpen:Qe,updateId:xt,children:tt}=ke.props,nt=xt==null;ke.staleId&&te.delete(ke.staleId),te.set(me,ke),$=[...$,ke.props.toastId].filter(ft=>ft!==ke.staleId),ie(),A(qm(ke,nt?"added":"updated")),nt&&Wo(Qe)&&Qe(_e.isValidElement(tt)&&tt.props)};return{id:T,props:ne,observe:ke=>(he.add(ke),()=>he.delete(ke)),toggle:(ke,me)=>{te.forEach(Qe=>{me!=null&&me!==Qe.props.toastId||Wo(Qe.toggle)&&Qe.toggle(ke)})},removeToast:xe,toasts:te,clearQueue:()=>{Y-=z.length,z=[]},buildToast:(ke,me)=>{if((Ge=>{let{containerId:Ze,toastId:et,updateId:Je}=Ge;const Ke=Ze?Ze!==T:T!==1,ht=te.has(et)&&Je==null;return Ke||ht})(me))return;const{toastId:Qe,updateId:xt,data:tt,staleId:nt,delay:ft}=me,ve=()=>{xe(Qe)},Me=xt==null;Me&&Y++;const Ve={...ne,style:ne.toastStyle,key:j++,...Object.fromEntries(Object.entries(me).filter(Ge=>{let[Ze,et]=Ge;return et!=null})),toastId:Qe,updateId:xt,data:tt,closeToast:ve,isIn:!1,className:Vf(me.className||ne.toastClassName),bodyClassName:Vf(me.bodyClassName||ne.bodyClassName),progressClassName:Vf(me.progressClassName||ne.progressClassName),autoClose:!me.isLoading&&(Ye=me.autoClose,rt=ne.autoClose,Ye===!1||tf(Ye)&&Ye>0?Ye:rt),deleteToast(){const Ge=te.get(Qe),{onClose:Ze,children:et}=Ge.props;Wo(Ze)&&Ze(_e.isValidElement(et)&&et.props),A(qm(Ge,"removed")),te.delete(Qe),Y--,Y<0&&(Y=0),z.length>0?b(z.shift()):ie()}};var Ye,rt;Ve.closeButton=ne.closeButton,me.closeButton===!1||Yh(me.closeButton)?Ve.closeButton=me.closeButton:me.closeButton===!0&&(Ve.closeButton=!Yh(ne.closeButton)||ne.closeButton);let Re=ke;_e.isValidElement(ke)&&!ju(ke.type)?Re=_e.cloneElement(ke,{closeToast:ve,toastProps:Ve,data:tt}):Wo(ke)&&(Re=ke({closeToast:ve,toastProps:Ve,data:tt}));const Ae={content:Re,props:Ve,staleId:nt};ne.limit&&ne.limit>0&&Y>ne.limit&&Me?z.push(Ae):tf(ft)?setTimeout(()=>{b(Ae)},ft):b(Ae)},setProps(ke){ne=ke},setToggle:(ke,me)=>{te.get(ke).toggle=me},isToastActive:ke=>$.some(me=>me===ke),getSnapshot:()=>ne.newestOnTop?L.reverse():L}}(u,s,x_);Ki.set(u,p);const y=p.observe(g);return nf.forEach(T=>Fb(T.content,T.options)),nf=[],()=>{y(),Ki.delete(u)}},setProps(g){var p;(p=Ki.get(u))==null||p.setProps(g)},getSnapshot(){var g;return(g=Ki.get(u))==null?void 0:g.getSnapshot()}}}(t)).current;r(t);const i=_e.useSyncExternalStore(e,n,n);return{getToastToRender:function(s){if(!i)return[];const u=new Map;return i.forEach(g=>{const{position:p}=g.props;u.has(p)||u.set(p,[]),u.get(p).push(g)}),Array.from(u,g=>s(g[0],g[1]))},isToastActive:Lb,count:i==null?void 0:i.length}}function C_(t){const[e,n]=_e.useState(!1),[r,i]=_e.useState(!1),s=_e.useRef(null),u=_e.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:g,pauseOnHover:p,closeToast:y,onClick:T,closeOnClick:x}=t;var A,j;function Y(){n(!0)}function z(){n(!1)}function $(te){const he=s.current;u.canDrag&&he&&(u.didMove=!0,e&&z(),u.delta=t.draggableDirection==="x"?te.clientX-u.start:te.clientY-u.start,u.start!==te.clientX&&(u.canCloseOnClick=!1),he.style.transform=`translate3d(${t.draggableDirection==="x"?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`},0)`,he.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function L(){document.removeEventListener("pointermove",$),document.removeEventListener("pointerup",L);const te=s.current;if(u.canDrag&&u.didMove&&te){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();te.style.transition="transform 0.2s, opacity 0.2s",te.style.removeProperty("transform"),te.style.removeProperty("opacity")}}(j=Ki.get((A={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||j.setToggle(A.id,A.fn),_e.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||z(),window.addEventListener("focus",Y),window.addEventListener("blur",z),()=>{window.removeEventListener("focus",Y),window.removeEventListener("blur",z)}},[t.pauseOnFocusLoss]);const ne={onPointerDown:function(te){if(t.draggable===!0||t.draggable===te.pointerType){u.didMove=!1,document.addEventListener("pointermove",$),document.addEventListener("pointerup",L);const he=s.current;u.canCloseOnClick=!0,u.canDrag=!0,he.style.transition="none",t.draggableDirection==="x"?(u.start=te.clientX,u.removalDistance=he.offsetWidth*(t.draggablePercent/100)):(u.start=te.clientY,u.removalDistance=he.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(te){const{top:he,bottom:ie,left:xe,right:b}=s.current.getBoundingClientRect();te.nativeEvent.type!=="touchend"&&t.pauseOnHover&&te.clientX>=xe&&te.clientX<=b&&te.clientY>=he&&te.clientY<=ie?z():Y()}};return g&&p&&(ne.onMouseEnter=z,t.stacked||(ne.onMouseLeave=Y)),x&&(ne.onClick=te=>{T&&T(te),u.canCloseOnClick&&y()}),{playToast:Y,pauseToast:z,isRunning:e,preventExitTransition:r,toastRef:s,eventHandlers:ne}}function T_(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:s,className:u,style:g,controlledProgress:p,progress:y,rtl:T,isIn:x,theme:A}=t;const j=s||p&&y===0,Y={...g,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};p&&(Y.transform=`scaleX(${y})`);const z=Zs("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${A}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":T}),$=Wo(u)?u({rtl:T,type:i,defaultClassName:z}):Zs(z,u),L={[p&&y>=1?"onTransitionEnd":"onAnimationEnd"]:p&&y<1?null:()=>{x&&r()}};return _e.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":j},_e.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${A} Toastify__progress-bar--${i}`}),_e.createElement("div",{role:"progressbar","aria-hidden":j?"true":"false","aria-label":"notification timer",className:$,style:Y,...L}))}let E_=1;const jb=()=>""+E_++;function k_(t){return t&&(ju(t.toastId)||tf(t.toastId))?t.toastId:jb()}function Gc(t,e){return Fb(t,e),e.toastId}function nd(t,e){return{...e,type:e&&e.type||t,toastId:k_(e)}}function Of(t){return(e,n)=>Gc(e,nd(t,n))}function wn(t,e){return Gc(t,nd("default",e))}wn.loading=(t,e)=>Gc(t,nd("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),wn.promise=function(t,e,n){let r,{pending:i,error:s,success:u}=e;i&&(r=ju(i)?wn.loading(i,n):wn.loading(i.render,{...n,...i}));const g={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},p=(T,x,A)=>{if(x==null)return void wn.dismiss(r);const j={type:T,...g,...n,data:A},Y=ju(x)?{render:x}:x;return r?wn.update(r,{...j,...Y}):wn(Y.render,{...j,...Y}),A},y=Wo(t)?t():t;return y.then(T=>p("success",u,T)).catch(T=>p("error",s,T)),y},wn.success=Of("success"),wn.info=Of("info"),wn.error=Of("error"),wn.warning=Of("warning"),wn.warn=wn.warning,wn.dark=(t,e)=>Gc(t,nd("default",{theme:"dark",...e})),wn.dismiss=function(t){(function(e){var n;if(Mb()){if(e==null||ju(n=e)||tf(n))Ki.forEach(i=>{i.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){var r;(r=Ki.get(e.containerId))!=null&&r.removeToast(e.id)||Ki.forEach(i=>{i.removeToast(e.id)})}}else nf=nf.filter(i=>e!=null&&i.options.toastId!==e)})(t)},wn.clearWaitingQueue=function(t){t===void 0&&(t={}),Ki.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},wn.isActive=Lb,wn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var s;let{containerId:u}=i;return(s=Ki.get(u||1))==null?void 0:s.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,s={delay:100,...r,...e,toastId:e.toastId||t,updateId:jb()};s.toastId!==t&&(s.staleId=t);const u=s.render||i;delete s.render,Gc(u,s)}},wn.done=t=>{wn.update(t,{progress:1})},wn.onChange=function(t){return Gh.add(t),()=>{Gh.delete(t)}},wn.play=t=>Xm(!0,t),wn.pause=t=>Xm(!1,t);const __=typeof window<"u"?_e.useLayoutEffect:_e.useEffect,Df=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return _e.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},sh={info:function(t){return _e.createElement(Df,{...t},_e.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return _e.createElement(Df,{...t},_e.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return _e.createElement(Df,{...t},_e.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return _e.createElement(Df,{...t},_e.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return _e.createElement("div",{className:"Toastify__spinner"})}},R_=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:s}=C_(t),{closeButton:u,children:g,autoClose:p,onClick:y,type:T,hideProgressBar:x,closeToast:A,transition:j,position:Y,className:z,style:$,bodyClassName:L,bodyStyle:ne,progressClassName:te,progressStyle:he,updateId:ie,role:xe,progress:b,rtl:ke,toastId:me,deleteToast:Qe,isIn:xt,isLoading:tt,closeOnClick:nt,theme:ft}=t,ve=Zs("Toastify__toast",`Toastify__toast-theme--${ft}`,`Toastify__toast--${T}`,{"Toastify__toast--rtl":ke},{"Toastify__toast--close-on-click":nt}),Me=Wo(z)?z({rtl:ke,position:Y,type:T,defaultClassName:ve}):Zs(ve,z),Ve=function(Ae){let{theme:Ge,type:Ze,isLoading:et,icon:Je}=Ae,Ke=null;const ht={theme:Ge,type:Ze};return Je===!1||(Wo(Je)?Ke=Je({...ht,isLoading:et}):_e.isValidElement(Je)?Ke=_e.cloneElement(Je,ht):et?Ke=sh.spinner():(bt=>bt in sh)(Ze)&&(Ke=sh[Ze](ht))),Ke}(t),Ye=!!b||!p,rt={closeToast:A,type:T,theme:ft};let Re=null;return u===!1||(Re=Wo(u)?u(rt):_e.isValidElement(u)?_e.cloneElement(u,rt):function(Ae){let{closeToast:Ge,theme:Ze,ariaLabel:et="close"}=Ae;return _e.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Ze}`,type:"button",onClick:Je=>{Je.stopPropagation(),Ge(Je)},"aria-label":et},_e.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},_e.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(rt)),_e.createElement(j,{isIn:xt,done:Qe,position:Y,preventExitTransition:n,nodeRef:r,playToast:s},_e.createElement("div",{id:me,onClick:y,"data-in":xt,className:Me,...i,style:$,ref:r},_e.createElement("div",{...xt&&{role:xe},className:Wo(L)?L({type:T}):Zs("Toastify__toast-body",L),style:ne},Ve!=null&&_e.createElement("div",{className:Zs("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!tt})},Ve),_e.createElement("div",null,g)),Re,_e.createElement(T_,{...ie&&!Ye?{key:`pb-${ie}`}:{},rtl:ke,theme:ft,delay:p,isRunning:e,isIn:xt,closeToast:A,hide:x,type:T,style:he,className:te,controlledProgress:Ye,progress:b||0})))},vd=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},P_=md(vd("bounce",!0));md(vd("slide",!0));md(vd("zoom"));md(vd("flip"));const A_={position:"top-right",transition:P_,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function O_(t){let e={...A_,...t};const n=t.stacked,[r,i]=_e.useState(!0),s=_e.useRef(null),{getToastToRender:u,isToastActive:g,count:p}=S_(e),{className:y,style:T,rtl:x,containerId:A}=e;function j(z){const $=Zs("Toastify__toast-container",`Toastify__toast-container--${z}`,{"Toastify__toast-container--rtl":x});return Wo(y)?y({position:z,rtl:x,defaultClassName:$}):Zs($,Vf(y))}function Y(){n&&(i(!0),wn.play())}return __(()=>{if(n){var z;const $=s.current.querySelectorAll('[data-in="true"]'),L=12,ne=(z=e.position)==null?void 0:z.includes("top");let te=0,he=0;Array.from($).reverse().forEach((ie,xe)=>{const b=ie;b.classList.add("Toastify__toast--stacked"),xe>0&&(b.dataset.collapsed=`${r}`),b.dataset.pos||(b.dataset.pos=ne?"top":"bot");const ke=te*(r?.2:1)+(r?0:L*xe);b.style.setProperty("--y",`${ne?ke:-1*ke}px`),b.style.setProperty("--g",`${L}`),b.style.setProperty("--s",""+(1-(r?he:0))),te+=b.offsetHeight,he+=.025})}},[r,p,n]),_e.createElement("div",{ref:s,className:"Toastify",id:A,onMouseEnter:()=>{n&&(i(!1),wn.pause())},onMouseLeave:Y},u((z,$)=>{const L=$.length?{...T}:{...T,pointerEvents:"none"};return _e.createElement("div",{className:j(z),style:L,key:`container-${z}`},$.map(ne=>{let{content:te,props:he}=ne;return _e.createElement(R_,{...he,stacked:n,collapseAll:Y,isIn:g(he.toastId,he.containerId),style:he.style,key:`toast-${he.key}`},te)}))}))}function D_(){return ct.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ct.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),ct.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),ct.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function I_(){return ct.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ct.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),ct.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function M_(){return ct.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[ct.jsx("path",{d:"M12 7.73684V13.4211M12 21C7.69215 21 5.53823 21 4.29308 20.0953C3.20701 19.3063 2.50676 18.0934 2.36643 16.7583C2.20555 15.2276 3.28252 13.3623 5.43644 9.63158C7.59036 5.90088 8.66732 4.03553 10.0734 3.40952C11.2998 2.86349 12.7002 2.86349 13.9266 3.40952C15.3327 4.03553 16.4096 5.90088 18.5636 9.63158C20.7175 13.3623 21.7944 15.2276 21.6336 16.7583C21.4932 18.0934 20.793 19.3063 19.7069 20.0953C18.4618 21 16.3078 21 12 21Z",stroke:"#FFB600","stroke-width":"1.5","stroke-linecap":"round"}),ct.jsx("path",{d:"M12.9473 16.263C12.9473 16.7863 12.5232 17.2104 12 17.2104C11.4768 17.2104 11.0526 16.7863 11.0526 16.263C11.0526 15.7398 11.4768 15.3157 12 15.3157C12.5232 15.3157 12.9473 15.7398 12.9473 16.263Z",fill:"#FFB600"})]})}const Tp={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},L_=({closeToast:t})=>ct.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:ct.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ct.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),F_=t=>{wn.success(t,{icon:ct.jsx(I_,{}),bodyStyle:{},position:"bottom-right",style:{...Tp,background:vo.successLight,borderColor:vo.success,color:vo.success}})},Ep=t=>{wn.error(t,{icon:ct.jsx(D_,{}),position:"bottom-right",style:{...Tp,background:vo.dangerLight,borderColor:vo.danger,color:vo.danger}})},j_=t=>{wn.error(t,{icon:ct.jsx(M_,{}),position:"bottom-right",style:{...Tp,background:vo.warningLight,borderColor:vo.warning,color:vo.warning}})},N_=t=>{wn(t,{closeButton:L_,toastId:"notify",position:"top-right",closeOnClick:!1,hideProgressBar:!0,containerId:"toastifyNotification",style:{width:"610px",minHeight:"72px",padding:"12px 24px 12px 0",color:vo.textPrimary}})},Nb=_e.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),yd=_e.createContext({}),kp=_e.createContext(null),bd=typeof document<"u",B_=bd?_e.useLayoutEffect:_e.useEffect,Bb=_e.createContext({strict:!1}),_p=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),H_="framerAppearId",Hb="data-"+_p(H_);function W_(t,e,n,r){const{visualElement:i}=_e.useContext(yd),s=_e.useContext(Bb),u=_e.useContext(kp),g=_e.useContext(Nb).reducedMotion,p=_e.useRef();r=r||s.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:i,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:g}));const y=p.current;_e.useInsertionEffect(()=>{y&&y.update(n,u)});const T=_e.useRef(!!(n[Hb]&&!window.HandoffComplete));return B_(()=>{y&&(y.render(),T.current&&y.animationState&&y.animationState.animateChanges())}),_e.useEffect(()=>{y&&(y.updateFeatures(),!T.current&&y.animationState&&y.animationState.animateChanges(),T.current&&(T.current=!1,window.HandoffComplete=!0))}),y}function wc(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function U_(t,e,n){return _e.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):wc(n)&&(n.current=r))},[e])}function rf(t){return typeof t=="string"||Array.isArray(t)}function wd(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Rp=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Pp=["initial",...Rp];function xd(t){return wd(t.animate)||Pp.some(e=>rf(t[e]))}function Wb(t){return!!(xd(t)||t.variants)}function V_(t,e){if(xd(t)){const{initial:n,animate:r}=t;return{initial:n===!1||rf(n)?n:void 0,animate:rf(r)?r:void 0}}return t.inherit!==!1?e:{}}function z_(t){const{initial:e,animate:n}=V_(t,_e.useContext(yd));return _e.useMemo(()=>({initial:e,animate:n}),[Km(e),Km(n)])}function Km(t){return Array.isArray(t)?t.join(" "):t}const Zm={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},of={};for(const t in Zm)of[t]={isEnabled:e=>Zm[t].some(n=>!!e[n])};function $_(t){for(const e in t)of[e]={...of[e],...t[e]}}const Ub=_e.createContext({}),Vb=_e.createContext({}),Y_=Symbol.for("motionComponentSymbol");function G_({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&$_(t);function s(g,p){let y;const T={..._e.useContext(Nb),...g,layoutId:q_(g)},{isStatic:x}=T,A=z_(g),j=r(g,x);if(!x&&bd){A.visualElement=W_(i,j,T,e);const Y=_e.useContext(Vb),z=_e.useContext(Bb).strict;A.visualElement&&(y=A.visualElement.loadFeatures(T,z,t,Y))}return kn.createElement(yd.Provider,{value:A},y&&A.visualElement?kn.createElement(y,{visualElement:A.visualElement,...T}):null,n(i,g,U_(j,A.visualElement,p),j,x,A.visualElement))}const u=_e.forwardRef(s);return u[Y_]=i,u}function q_({layoutId:t}){const e=_e.useContext(Ub).id;return e&&t!==void 0?e+"-"+t:t}function X_(t){function e(r,i={}){return G_(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const K_=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ap(t){return typeof t!="string"||t.includes("-")?!1:!!(K_.indexOf(t)>-1||/[A-Z]/.test(t))}const rd={};function Z_(t){Object.assign(rd,t)}const ff=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$u=new Set(ff);function zb(t,{layout:e,layoutId:n}){return $u.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!rd[t]||t==="opacity")}const yo=t=>!!(t&&t.getVelocity),J_={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Q_=ff.length;function eR(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let s="";for(let u=0;u<Q_;u++){const g=ff[u];if(t[g]!==void 0){const p=J_[g]||g;s+=`${p}(${t[g]}) `}}return e&&!t.z&&(s+="translateZ(0)"),s=s.trim(),i?s=i(t,r?"":s):n&&r&&(s="none"),s}const $b=t=>e=>typeof e=="string"&&e.startsWith(t),Yb=$b("--"),qh=$b("var(--"),tR=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,nR=(t,e)=>e&&typeof t=="number"?e.transform(t):t,zl=(t,e,n)=>Math.min(Math.max(n,t),e),Yu={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},qc={...Yu,transform:t=>zl(0,1,t)},If={...Yu,default:1},Xc=t=>Math.round(t*1e5)/1e5,Sd=/(-)?([\d]*\.?[\d])+/g,Gb=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,rR=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function df(t){return typeof t=="string"}const hf=t=>({test:e=>df(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ll=hf("deg"),fs=hf("%"),jt=hf("px"),iR=hf("vh"),oR=hf("vw"),Jm={...fs,parse:t=>fs.parse(t)/100,transform:t=>fs.transform(t*100)},Qm={...Yu,transform:Math.round},qb={borderWidth:jt,borderTopWidth:jt,borderRightWidth:jt,borderBottomWidth:jt,borderLeftWidth:jt,borderRadius:jt,radius:jt,borderTopLeftRadius:jt,borderTopRightRadius:jt,borderBottomRightRadius:jt,borderBottomLeftRadius:jt,width:jt,maxWidth:jt,height:jt,maxHeight:jt,size:jt,top:jt,right:jt,bottom:jt,left:jt,padding:jt,paddingTop:jt,paddingRight:jt,paddingBottom:jt,paddingLeft:jt,margin:jt,marginTop:jt,marginRight:jt,marginBottom:jt,marginLeft:jt,rotate:Ll,rotateX:Ll,rotateY:Ll,rotateZ:Ll,scale:If,scaleX:If,scaleY:If,scaleZ:If,skew:Ll,skewX:Ll,skewY:Ll,distance:jt,translateX:jt,translateY:jt,translateZ:jt,x:jt,y:jt,z:jt,perspective:jt,transformPerspective:jt,opacity:qc,originX:Jm,originY:Jm,originZ:jt,zIndex:Qm,fillOpacity:qc,strokeOpacity:qc,numOctaves:Qm};function Op(t,e,n,r){const{style:i,vars:s,transform:u,transformOrigin:g}=t;let p=!1,y=!1,T=!0;for(const x in e){const A=e[x];if(Yb(x)){s[x]=A;continue}const j=qb[x],Y=nR(A,j);if($u.has(x)){if(p=!0,u[x]=Y,!T)continue;A!==(j.default||0)&&(T=!1)}else x.startsWith("origin")?(y=!0,g[x]=Y):i[x]=Y}if(e.transform||(p||r?i.transform=eR(t.transform,n,T,r):i.transform&&(i.transform="none")),y){const{originX:x="50%",originY:A="50%",originZ:j=0}=g;i.transformOrigin=`${x} ${A} ${j}`}}const Dp=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Xb(t,e,n){for(const r in e)!yo(e[r])&&!zb(r,n)&&(t[r]=e[r])}function aR({transformTemplate:t},e,n){return _e.useMemo(()=>{const r=Dp();return Op(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function sR(t,e,n){const r=t.style||{},i={};return Xb(i,r,t),Object.assign(i,aR(t,e,n)),t.transformValues?t.transformValues(i):i}function lR(t,e,n){const r={},i=sR(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const uR=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function id(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||uR.has(t)}let Kb=t=>!id(t);function cR(t){t&&(Kb=e=>e.startsWith("on")?!id(e):t(e))}try{cR(require("@emotion/is-prop-valid").default)}catch{}function fR(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(Kb(i)||n===!0&&id(i)||!e&&!id(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function ev(t,e,n){return typeof t=="string"?t:jt.transform(e+n*t)}function dR(t,e,n){const r=ev(e,t.x,t.width),i=ev(n,t.y,t.height);return`${r} ${i}`}const hR={offset:"stroke-dashoffset",array:"stroke-dasharray"},pR={offset:"strokeDashoffset",array:"strokeDasharray"};function gR(t,e,n=1,r=0,i=!0){t.pathLength=1;const s=i?hR:pR;t[s.offset]=jt.transform(-r);const u=jt.transform(e),g=jt.transform(n);t[s.array]=`${u} ${g}`}function Ip(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:s,pathLength:u,pathSpacing:g=1,pathOffset:p=0,...y},T,x,A){if(Op(t,y,T,A),x){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:j,style:Y,dimensions:z}=t;j.transform&&(z&&(Y.transform=j.transform),delete j.transform),z&&(i!==void 0||s!==void 0||Y.transform)&&(Y.transformOrigin=dR(z,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(j.x=e),n!==void 0&&(j.y=n),r!==void 0&&(j.scale=r),u!==void 0&&gR(j,u,g,p,!1)}const Zb=()=>({...Dp(),attrs:{}}),Mp=t=>typeof t=="string"&&t.toLowerCase()==="svg";function mR(t,e,n,r){const i=_e.useMemo(()=>{const s=Zb();return Ip(s,e,{enableHardwareAcceleration:!1},Mp(r),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};Xb(s,t.style,t),i.style={...s,...i.style}}return i}function vR(t=!1){return(n,r,i,{latestValues:s},u)=>{const p=(Ap(n)?mR:lR)(r,s,u,n),T={...fR(r,typeof n=="string",t),...p,ref:i},{children:x}=r,A=_e.useMemo(()=>yo(x)?x.get():x,[x]);return _e.createElement(n,{...T,children:A})}}function Jb(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const s in n)t.style.setProperty(s,n[s])}const Qb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function e0(t,e,n,r){Jb(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Qb.has(i)?i:_p(i),e.attrs[i])}function Lp(t,e){const{style:n}=t,r={};for(const i in n)(yo(n[i])||e.style&&yo(e.style[i])||zb(i,t))&&(r[i]=n[i]);return r}function t0(t,e){const n=Lp(t,e);for(const r in t)if(yo(t[r])||yo(e[r])){const i=ff.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Fp(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function yR(t){const e=_e.useRef(null);return e.current===null&&(e.current=t()),e.current}const od=t=>Array.isArray(t),bR=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),wR=t=>od(t)?t[t.length-1]||0:t;function zf(t){const e=yo(t)?t.get():t;return bR(e)?e.toValue():e}function xR({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,s){const u={latestValues:SR(r,i,s,t),renderState:e()};return n&&(u.mount=g=>n(r,g,u)),u}const n0=t=>(e,n)=>{const r=_e.useContext(yd),i=_e.useContext(kp),s=()=>xR(t,e,r,i);return n?s():yR(s)};function SR(t,e,n,r){const i={},s=r(t,{});for(const A in s)i[A]=zf(s[A]);let{initial:u,animate:g}=t;const p=xd(t),y=Wb(t);e&&y&&!p&&t.inherit!==!1&&(u===void 0&&(u=e.initial),g===void 0&&(g=e.animate));let T=n?n.initial===!1:!1;T=T||u===!1;const x=T?g:u;return x&&typeof x!="boolean"&&!wd(x)&&(Array.isArray(x)?x:[x]).forEach(j=>{const Y=Fp(t,j);if(!Y)return;const{transitionEnd:z,transition:$,...L}=Y;for(const ne in L){let te=L[ne];if(Array.isArray(te)){const he=T?te.length-1:0;te=te[he]}te!==null&&(i[ne]=te)}for(const ne in z)i[ne]=z[ne]}),i}const ir=t=>t;class tv{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function CR(t){let e=new tv,n=new tv,r=0,i=!1,s=!1;const u=new WeakSet,g={schedule:(p,y=!1,T=!1)=>{const x=T&&i,A=x?e:n;return y&&u.add(p),A.add(p)&&x&&i&&(r=e.order.length),p},cancel:p=>{n.remove(p),u.delete(p)},process:p=>{if(i){s=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let y=0;y<r;y++){const T=e.order[y];T(p),u.has(T)&&(g.schedule(T),t())}i=!1,s&&(s=!1,g.process(p))}};return g}const Mf=["prepare","read","update","preRender","render","postRender"],TR=40;function ER(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=Mf.reduce((x,A)=>(x[A]=CR(()=>n=!0),x),{}),u=x=>s[x].process(i),g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,TR),1),i.timestamp=x,i.isProcessing=!0,Mf.forEach(u),i.isProcessing=!1,n&&e&&(r=!1,t(g))},p=()=>{n=!0,r=!0,i.isProcessing||t(g)};return{schedule:Mf.reduce((x,A)=>{const j=s[A];return x[A]=(Y,z=!1,$=!1)=>(n||p(),j.schedule(Y,z,$)),x},{}),cancel:x=>Mf.forEach(A=>s[A].cancel(x)),state:i,steps:s}}const{schedule:jn,cancel:il,state:_i,steps:lh}=ER(typeof requestAnimationFrame<"u"?requestAnimationFrame:ir,!0),kR={useVisualState:n0({scrapeMotionValuesFromProps:t0,createRenderState:Zb,onMount:(t,e,{renderState:n,latestValues:r})=>{jn.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),jn.render(()=>{Ip(n,r,{enableHardwareAcceleration:!1},Mp(e.tagName),t.transformTemplate),e0(e,n)})}})},_R={useVisualState:n0({scrapeMotionValuesFromProps:Lp,createRenderState:Dp})};function RR(t,{forwardMotionProps:e=!1},n,r){return{...Ap(t)?kR:_R,preloadedFeatures:n,useRender:vR(e),createVisualElement:r,Component:t}}function Js(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const r0=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Cd(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const PR=t=>e=>r0(e)&&t(e,Cd(e));function tl(t,e,n,r){return Js(t,e,PR(n),r)}const AR=(t,e)=>n=>e(t(n)),Bl=(...t)=>t.reduce(AR);function i0(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const nv=i0("dragHorizontal"),rv=i0("dragVertical");function o0(t){let e=!1;if(t==="y")e=rv();else if(t==="x")e=nv();else{const n=nv(),r=rv();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function a0(){const t=o0(!0);return t?(t(),!1):!0}class Gl{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iv(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(s,u)=>{if(s.pointerType==="touch"||a0())return;const g=t.getProps();t.animationState&&g.whileHover&&t.animationState.setActive("whileHover",e),g[r]&&jn.update(()=>g[r](s,u))};return tl(t.current,n,i,{passive:!t.getProps()[r]})}class OR extends Gl{mount(){this.unmount=Bl(iv(this.node,!0),iv(this.node,!1))}unmount(){}}class DR extends Gl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Bl(Js(this.node.current,"focus",()=>this.onFocus()),Js(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const s0=(t,e)=>e?t===e?!0:s0(t,e.parentElement):!1;function uh(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Cd(n))}class IR extends Gl{constructor(){super(...arguments),this.removeStartListeners=ir,this.removeEndListeners=ir,this.removeAccessibleListeners=ir,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=tl(window,"pointerup",(g,p)=>{if(!this.checkPressEnd())return;const{onTap:y,onTapCancel:T,globalTapTarget:x}=this.node.getProps();jn.update(()=>{!x&&!s0(this.node.current,g.target)?T&&T(g,p):y&&y(g,p)})},{passive:!(r.onTap||r.onPointerUp)}),u=tl(window,"pointercancel",(g,p)=>this.cancelPress(g,p),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Bl(s,u),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const u=g=>{g.key!=="Enter"||!this.checkPressEnd()||uh("up",(p,y)=>{const{onTap:T}=this.node.getProps();T&&jn.update(()=>T(p,y))})};this.removeEndListeners(),this.removeEndListeners=Js(this.node.current,"keyup",u),uh("down",(g,p)=>{this.startPress(g,p)})},n=Js(this.node.current,"keydown",e),r=()=>{this.isPressing&&uh("cancel",(s,u)=>this.cancelPress(s,u))},i=Js(this.node.current,"blur",r);this.removeAccessibleListeners=Bl(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&jn.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!a0()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&jn.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=tl(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=Js(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Bl(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Xh=new WeakMap,ch=new WeakMap,MR=t=>{const e=Xh.get(t.target);e&&e(t)},LR=t=>{t.forEach(MR)};function FR({root:t,...e}){const n=t||document;ch.has(n)||ch.set(n,{});const r=ch.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(LR,{root:t,...e})),r[i]}function jR(t,e,n){const r=FR(e);return Xh.set(t,n),r.observe(t),()=>{Xh.delete(t),r.unobserve(t)}}const NR={some:0,all:1};class BR extends Gl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=e,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:NR[i]},g=p=>{const{isIntersecting:y}=p;if(this.isInView===y||(this.isInView=y,s&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:T,onViewportLeave:x}=this.node.getProps(),A=y?T:x;A&&A(p)};return jR(this.node.current,u,g)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(HR(e,n))&&this.startObserver()}unmount(){}}function HR({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const WR={inView:{Feature:BR},tap:{Feature:IR},focus:{Feature:DR},hover:{Feature:OR}};function l0(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function UR(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function VR(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Td(t,e,n){const r=t.getProps();return Fp(r,e,n!==void 0?n:r.custom,UR(t),VR(t))}let pf=ir,ja=ir;process.env.NODE_ENV!=="production"&&(pf=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},ja=(t,e)=>{if(!t)throw new Error(e)});const Hl=t=>t*1e3,nl=t=>t/1e3,zR={current:!1},u0=t=>Array.isArray(t)&&typeof t[0]=="number";function c0(t){return!!(!t||typeof t=="string"&&f0[t]||u0(t)||Array.isArray(t)&&t.every(c0))}const Yc=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,f0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Yc([0,.65,.55,1]),circOut:Yc([.55,0,1,.45]),backIn:Yc([.31,.01,.66,-.59]),backOut:Yc([.33,1.53,.69,.99])};function d0(t){if(t)return u0(t)?Yc(t):Array.isArray(t)?t.map(d0):f0[t]}function $R(t,e,n,{delay:r=0,duration:i,repeat:s=0,repeatType:u="loop",ease:g,times:p}={}){const y={[e]:n};p&&(y.offset=p);const T=d0(g);return Array.isArray(T)&&(y.easing=T),t.animate(y,{delay:r,duration:i,easing:Array.isArray(T)?"linear":T,fill:"both",iterations:s+1,direction:u==="reverse"?"alternate":"normal"})}function YR(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const h0=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,GR=1e-7,qR=12;function XR(t,e,n,r,i){let s,u,g=0;do u=e+(n-e)/2,s=h0(u,r,i)-t,s>0?n=u:e=u;while(Math.abs(s)>GR&&++g<qR);return u}function gf(t,e,n,r){if(t===e&&n===r)return ir;const i=s=>XR(s,0,1,t,n);return s=>s===0||s===1?s:h0(i(s),e,r)}const KR=gf(.42,0,1,1),ZR=gf(0,0,.58,1),p0=gf(.42,0,.58,1),JR=t=>Array.isArray(t)&&typeof t[0]!="number",g0=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,m0=t=>e=>1-t(1-e),jp=t=>1-Math.sin(Math.acos(t)),v0=m0(jp),QR=g0(jp),y0=gf(.33,1.53,.69,.99),Np=m0(y0),eP=g0(Np),tP=t=>(t*=2)<1?.5*Np(t):.5*(2-Math.pow(2,-10*(t-1))),ov={linear:ir,easeIn:KR,easeInOut:p0,easeOut:ZR,circIn:jp,circInOut:QR,circOut:v0,backIn:Np,backInOut:eP,backOut:y0,anticipate:tP},av=t=>{if(Array.isArray(t)){ja(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return gf(e,n,r,i)}else if(typeof t=="string")return ja(ov[t]!==void 0,`Invalid easing type '${t}'`),ov[t];return t},Bp=(t,e)=>n=>!!(df(n)&&rR.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),b0=(t,e,n)=>r=>{if(!df(r))return r;const[i,s,u,g]=r.match(Sd);return{[t]:parseFloat(i),[e]:parseFloat(s),[n]:parseFloat(u),alpha:g!==void 0?parseFloat(g):1}},nP=t=>zl(0,255,t),fh={...Yu,transform:t=>Math.round(nP(t))},Lu={test:Bp("rgb","red"),parse:b0("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+fh.transform(t)+", "+fh.transform(e)+", "+fh.transform(n)+", "+Xc(qc.transform(r))+")"};function rP(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Kh={test:Bp("#"),parse:rP,transform:Lu.transform},xc={test:Bp("hsl","hue"),parse:b0("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+fs.transform(Xc(e))+", "+fs.transform(Xc(n))+", "+Xc(qc.transform(r))+")"},Xi={test:t=>Lu.test(t)||Kh.test(t)||xc.test(t),parse:t=>Lu.test(t)?Lu.parse(t):xc.test(t)?xc.parse(t):Kh.parse(t),transform:t=>df(t)?t:t.hasOwnProperty("red")?Lu.transform(t):xc.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;function dh(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function iP({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,s=0,u=0;if(!e)i=s=u=n;else{const g=n<.5?n*(1+e):n+e-n*e,p=2*n-g;i=dh(p,g,t+1/3),s=dh(p,g,t),u=dh(p,g,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(u*255),alpha:r}}const hh=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},oP=[Kh,Lu,xc],aP=t=>oP.find(e=>e.test(t));function sv(t){const e=aP(t);ja(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===xc&&(n=iP(n)),n}const w0=(t,e)=>{const n=sv(t),r=sv(e),i={...n};return s=>(i.red=hh(n.red,r.red,s),i.green=hh(n.green,r.green,s),i.blue=hh(n.blue,r.blue,s),i.alpha=Zn(n.alpha,r.alpha,s),Lu.transform(i))};function sP(t){var e,n;return isNaN(t)&&df(t)&&(((e=t.match(Sd))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Gb))===null||n===void 0?void 0:n.length)||0)>0}const x0={regex:tR,countKey:"Vars",token:"${v}",parse:ir},S0={regex:Gb,countKey:"Colors",token:"${c}",parse:Xi.parse},C0={regex:Sd,countKey:"Numbers",token:"${n}",parse:Yu.parse};function ph(t,{regex:e,countKey:n,token:r,parse:i}){const s=t.tokenised.match(e);s&&(t["num"+n]=s.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...s.map(i)))}function ad(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ph(n,x0),ph(n,S0),ph(n,C0),n}function T0(t){return ad(t).values}function E0(t){const{values:e,numColors:n,numVars:r,tokenised:i}=ad(t),s=e.length;return u=>{let g=i;for(let p=0;p<s;p++)p<r?g=g.replace(x0.token,u[p]):p<r+n?g=g.replace(S0.token,Xi.transform(u[p])):g=g.replace(C0.token,Xc(u[p]));return g}}const lP=t=>typeof t=="number"?0:t;function uP(t){const e=T0(t);return E0(t)(e.map(lP))}const $l={test:sP,parse:T0,createTransformer:E0,getAnimatableNone:uP},k0=(t,e)=>n=>`${n>0?e:t}`;function _0(t,e){return typeof t=="number"?n=>Zn(t,e,n):Xi.test(t)?w0(t,e):t.startsWith("var(")?k0(t,e):P0(t,e)}const R0=(t,e)=>{const n=[...t],r=n.length,i=t.map((s,u)=>_0(s,e[u]));return s=>{for(let u=0;u<r;u++)n[u]=i[u](s);return n}},cP=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=_0(t[i],e[i]));return i=>{for(const s in r)n[s]=r[s](i);return n}},P0=(t,e)=>{const n=$l.createTransformer(e),r=ad(t),i=ad(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Bl(R0(r.values,i.values),n):(pf(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),k0(t,e))},af=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},lv=(t,e)=>n=>Zn(t,e,n);function fP(t){return typeof t=="number"?lv:typeof t=="string"?Xi.test(t)?w0:P0:Array.isArray(t)?R0:typeof t=="object"?cP:lv}function dP(t,e,n){const r=[],i=n||fP(t[0]),s=t.length-1;for(let u=0;u<s;u++){let g=i(t[u],t[u+1]);if(e){const p=Array.isArray(e)?e[u]||ir:e;g=Bl(p,g)}r.push(g)}return r}function A0(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const s=t.length;if(ja(s===e.length,"Both input and output ranges must be the same length"),s===1)return()=>e[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const u=dP(e,r,i),g=u.length,p=y=>{let T=0;if(g>1)for(;T<t.length-2&&!(y<t[T+1]);T++);const x=af(t[T],t[T+1],y);return u[T](x)};return n?y=>p(zl(t[0],t[s-1],y)):p}function hP(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=af(0,e,r);t.push(Zn(n,1,i))}}function pP(t){const e=[0];return hP(e,t.length-1),e}function gP(t,e){return t.map(n=>n*e)}function mP(t,e){return t.map(()=>e||p0).splice(0,t.length-1)}function sd({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=JR(r)?r.map(av):av(r),s={done:!1,value:e[0]},u=gP(n&&n.length===e.length?n:pP(e),t),g=A0(u,e,{ease:Array.isArray(i)?i:mP(e,i)});return{calculatedDuration:t,next:p=>(s.value=g(p),s.done=p>=t,s)}}function O0(t,e){return e?t*(1e3/e):0}const vP=5;function D0(t,e,n){const r=Math.max(e-vP,0);return O0(n-t(r),e-r)}const gh=.001,yP=.01,uv=10,bP=.05,wP=1;function xP({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,s;pf(t<=Hl(uv),"Spring duration must be 10 seconds or less");let u=1-e;u=zl(bP,wP,u),t=zl(yP,uv,nl(t)),u<1?(i=y=>{const T=y*u,x=T*t,A=T-n,j=Zh(y,u),Y=Math.exp(-x);return gh-A/j*Y},s=y=>{const x=y*u*t,A=x*n+n,j=Math.pow(u,2)*Math.pow(y,2)*t,Y=Math.exp(-x),z=Zh(Math.pow(y,2),u);return(-i(y)+gh>0?-1:1)*((A-j)*Y)/z}):(i=y=>{const T=Math.exp(-y*t),x=(y-n)*t+1;return-gh+T*x},s=y=>{const T=Math.exp(-y*t),x=(n-y)*(t*t);return T*x});const g=5/t,p=CP(i,s,g);if(t=Hl(t),isNaN(p))return{stiffness:100,damping:10,duration:t};{const y=Math.pow(p,2)*r;return{stiffness:y,damping:u*2*Math.sqrt(r*y),duration:t}}}const SP=12;function CP(t,e,n){let r=n;for(let i=1;i<SP;i++)r=r-t(r)/e(r);return r}function Zh(t,e){return t*Math.sqrt(1-e*e)}const TP=["duration","bounce"],EP=["stiffness","damping","mass"];function cv(t,e){return e.some(n=>t[n]!==void 0)}function kP(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!cv(t,EP)&&cv(t,TP)){const n=xP(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function I0({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],s=t[t.length-1],u={done:!1,value:i},{stiffness:g,damping:p,mass:y,duration:T,velocity:x,isResolvedFromDuration:A}=kP({...r,velocity:-nl(r.velocity||0)}),j=x||0,Y=p/(2*Math.sqrt(g*y)),z=s-i,$=nl(Math.sqrt(g/y)),L=Math.abs(z)<5;n||(n=L?.01:2),e||(e=L?.005:.5);let ne;if(Y<1){const te=Zh($,Y);ne=he=>{const ie=Math.exp(-Y*$*he);return s-ie*((j+Y*$*z)/te*Math.sin(te*he)+z*Math.cos(te*he))}}else if(Y===1)ne=te=>s-Math.exp(-$*te)*(z+(j+$*z)*te);else{const te=$*Math.sqrt(Y*Y-1);ne=he=>{const ie=Math.exp(-Y*$*he),xe=Math.min(te*he,300);return s-ie*((j+Y*$*z)*Math.sinh(xe)+te*z*Math.cosh(xe))/te}}return{calculatedDuration:A&&T||null,next:te=>{const he=ne(te);if(A)u.done=te>=T;else{let ie=j;te!==0&&(Y<1?ie=D0(ne,te,he):ie=0);const xe=Math.abs(ie)<=n,b=Math.abs(s-he)<=e;u.done=xe&&b}return u.value=u.done?s:he,u}}}function fv({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:u,min:g,max:p,restDelta:y=.5,restSpeed:T}){const x=t[0],A={done:!1,value:x},j=ke=>g!==void 0&&ke<g||p!==void 0&&ke>p,Y=ke=>g===void 0?p:p===void 0||Math.abs(g-ke)<Math.abs(p-ke)?g:p;let z=n*e;const $=x+z,L=u===void 0?$:u($);L!==$&&(z=L-x);const ne=ke=>-z*Math.exp(-ke/r),te=ke=>L+ne(ke),he=ke=>{const me=ne(ke),Qe=te(ke);A.done=Math.abs(me)<=y,A.value=A.done?L:Qe};let ie,xe;const b=ke=>{j(A.value)&&(ie=ke,xe=I0({keyframes:[A.value,Y(A.value)],velocity:D0(te,ke,A.value),damping:i,stiffness:s,restDelta:y,restSpeed:T}))};return b(0),{calculatedDuration:null,next:ke=>{let me=!1;return!xe&&ie===void 0&&(me=!0,he(ke),b(ke)),ie!==void 0&&ke>ie?xe.next(ke-ie):(!me&&he(ke),A)}}}const _P=t=>{const e=({timestamp:n})=>t(n);return{start:()=>jn.update(e,!0),stop:()=>il(e),now:()=>_i.isProcessing?_i.timestamp:performance.now()}},dv=2e4;function hv(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<dv;)e+=n,r=t.next(e);return e>=dv?1/0:e}const RP={decay:fv,inertia:fv,tween:sd,keyframes:sd,spring:I0};function ld({autoplay:t=!0,delay:e=0,driver:n=_P,keyframes:r,type:i="keyframes",repeat:s=0,repeatDelay:u=0,repeatType:g="loop",onPlay:p,onStop:y,onComplete:T,onUpdate:x,...A}){let j=1,Y=!1,z,$;const L=()=>{$=new Promise(Ae=>{z=Ae})};L();let ne;const te=RP[i]||sd;let he;te!==sd&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&ja(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),he=A0([0,100],r,{clamp:!1}),r=[0,100]);const ie=te({...A,keyframes:r});let xe;g==="mirror"&&(xe=te({...A,keyframes:[...r].reverse(),velocity:-(A.velocity||0)}));let b="idle",ke=null,me=null,Qe=null;ie.calculatedDuration===null&&s&&(ie.calculatedDuration=hv(ie));const{calculatedDuration:xt}=ie;let tt=1/0,nt=1/0;xt!==null&&(tt=xt+u,nt=tt*(s+1)-u);let ft=0;const ve=Ae=>{if(me===null)return;j>0&&(me=Math.min(me,Ae)),j<0&&(me=Math.min(Ae-nt/j,me)),ke!==null?ft=ke:ft=Math.round(Ae-me)*j;const Ge=ft-e*(j>=0?1:-1),Ze=j>=0?Ge<0:Ge>nt;ft=Math.max(Ge,0),b==="finished"&&ke===null&&(ft=nt);let et=ft,Je=ie;if(s){const wt=Math.min(ft,nt)/tt;let pt=Math.floor(wt),Tt=wt%1;!Tt&&wt>=1&&(Tt=1),Tt===1&&pt--,pt=Math.min(pt,s+1),!!(pt%2)&&(g==="reverse"?(Tt=1-Tt,u&&(Tt-=u/tt)):g==="mirror"&&(Je=xe)),et=zl(0,1,Tt)*tt}const Ke=Ze?{done:!1,value:r[0]}:Je.next(et);he&&(Ke.value=he(Ke.value));let{done:ht}=Ke;!Ze&&xt!==null&&(ht=j>=0?ft>=nt:ft<=0);const bt=ke===null&&(b==="finished"||b==="running"&&ht);return x&&x(Ke.value),bt&&Ye(),Ke},Me=()=>{ne&&ne.stop(),ne=void 0},Ve=()=>{b="idle",Me(),z(),L(),me=Qe=null},Ye=()=>{b="finished",T&&T(),Me(),z()},rt=()=>{if(Y)return;ne||(ne=n(ve));const Ae=ne.now();p&&p(),ke!==null?me=Ae-ke:(!me||b==="finished")&&(me=Ae),b==="finished"&&L(),Qe=me,ke=null,b="running",ne.start()};t&&rt();const Re={then(Ae,Ge){return $.then(Ae,Ge)},get time(){return nl(ft)},set time(Ae){Ae=Hl(Ae),ft=Ae,ke!==null||!ne||j===0?ke=Ae:me=ne.now()-Ae/j},get duration(){const Ae=ie.calculatedDuration===null?hv(ie):ie.calculatedDuration;return nl(Ae)},get speed(){return j},set speed(Ae){Ae===j||!ne||(j=Ae,Re.time=nl(ft))},get state(){return b},play:rt,pause:()=>{b="paused",ke=ft},stop:()=>{Y=!0,b!=="idle"&&(b="idle",y&&y(),Ve())},cancel:()=>{Qe!==null&&ve(Qe),Ve()},complete:()=>{b="finished"},sample:Ae=>(me=0,ve(Ae))};return Re}function PP(t){let e;return()=>(e===void 0&&(e=t()),e)}const AP=PP(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),OP=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Lf=10,DP=2e4,IP=(t,e)=>e.type==="spring"||t==="backgroundColor"||!c0(e.ease);function MP(t,e,{onUpdate:n,onComplete:r,...i}){if(!(AP()&&OP.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let u=!1,g,p,y=!1;const T=()=>{p=new Promise(te=>{g=te})};T();let{keyframes:x,duration:A=300,ease:j,times:Y}=i;if(IP(e,i)){const te=ld({...i,repeat:0,delay:0});let he={done:!1,value:x[0]};const ie=[];let xe=0;for(;!he.done&&xe<DP;)he=te.sample(xe),ie.push(he.value),xe+=Lf;Y=void 0,x=ie,A=xe-Lf,j="linear"}const z=$R(t.owner.current,e,x,{...i,duration:A,ease:j,times:Y}),$=()=>{y=!1,z.cancel()},L=()=>{y=!0,jn.update($),g(),T()};return z.onfinish=()=>{y||(t.set(YR(x,i)),r&&r(),L())},{then(te,he){return p.then(te,he)},attachTimeline(te){return z.timeline=te,z.onfinish=null,ir},get time(){return nl(z.currentTime||0)},set time(te){z.currentTime=Hl(te)},get speed(){return z.playbackRate},set speed(te){z.playbackRate=te},get duration(){return nl(A)},play:()=>{u||(z.play(),il($))},pause:()=>z.pause(),stop:()=>{if(u=!0,z.playState==="idle")return;const{currentTime:te}=z;if(te){const he=ld({...i,autoplay:!1});t.setWithVelocity(he.sample(te-Lf).value,he.sample(te).value,Lf)}L()},complete:()=>{y||z.finish()},cancel:L}}function LP({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:ir,pause:ir,stop:ir,then:s=>(s(),Promise.resolve()),cancel:ir,complete:ir});return e?ld({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const FP={type:"spring",stiffness:500,damping:25,restSpeed:10},jP=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),NP={type:"keyframes",duration:.8},BP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},HP=(t,{keyframes:e})=>e.length>2?NP:$u.has(t)?t.startsWith("scale")?jP(e[1]):FP:BP,Jh=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($l.test(e)||e==="0")&&!e.startsWith("url(")),WP=new Set(["brightness","contrast","saturate","opacity"]);function UP(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Sd)||[];if(!r)return t;const i=n.replace(r,"");let s=WP.has(e)?1:0;return r!==n&&(s*=100),e+"("+s+i+")"}const VP=/([a-z-]*)\(.*?\)/g,Qh={...$l,getAnimatableNone:t=>{const e=t.match(VP);return e?e.map(UP).join(" "):t}},zP={...qb,color:Xi,backgroundColor:Xi,outlineColor:Xi,fill:Xi,stroke:Xi,borderColor:Xi,borderTopColor:Xi,borderRightColor:Xi,borderBottomColor:Xi,borderLeftColor:Xi,filter:Qh,WebkitFilter:Qh},Hp=t=>zP[t];function M0(t,e){let n=Hp(t);return n!==Qh&&(n=$l),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const L0=t=>/^0[^.\s]+$/.test(t);function $P(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||L0(t)}function YP(t,e,n,r){const i=Jh(e,n);let s;Array.isArray(n)?s=[...n]:s=[null,n];const u=r.from!==void 0?r.from:t.get();let g;const p=[];for(let y=0;y<s.length;y++)s[y]===null&&(s[y]=y===0?u:s[y-1]),$P(s[y])&&p.push(y),typeof s[y]=="string"&&s[y]!=="none"&&s[y]!=="0"&&(g=s[y]);if(i&&p.length&&g)for(let y=0;y<p.length;y++){const T=p[y];s[T]=M0(e,g)}return s}function GP({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:u,repeatDelay:g,from:p,elapsed:y,...T}){return!!Object.keys(T).length}function Wp(t,e){return t[e]||t.default||t}const qP={skipAnimations:!1},Up=(t,e,n,r={})=>i=>{const s=Wp(r,t)||{},u=s.delay||r.delay||0;let{elapsed:g=0}=r;g=g-Hl(u);const p=YP(e,t,n,s),y=p[0],T=p[p.length-1],x=Jh(t,y),A=Jh(t,T);pf(x===A,`You are trying to animate ${t} from "${y}" to "${T}". ${y} is not an animatable value - to enable this animation set ${y} to a value animatable to ${T} via the \`style\` property.`);let j={keyframes:p,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-g,onUpdate:Y=>{e.set(Y),s.onUpdate&&s.onUpdate(Y)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(GP(s)||(j={...j,...HP(t,j)}),j.duration&&(j.duration=Hl(j.duration)),j.repeatDelay&&(j.repeatDelay=Hl(j.repeatDelay)),!x||!A||zR.current||s.type===!1||qP.skipAnimations)return LP(j);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const Y=MP(e,t,j);if(Y)return Y}return ld(j)};function ud(t){return!!(yo(t)&&t.add)}const F0=t=>/^\-?\d*\.?\d+$/.test(t);function Vp(t,e){t.indexOf(e)===-1&&t.push(e)}function zp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class $p{constructor(){this.subscriptions=[]}add(e){return Vp(this.subscriptions,e),()=>zp(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let s=0;s<i;s++){const u=this.subscriptions[s];u&&u(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const pv=new Set;function Yp(t,e,n){t||pv.has(e)||(console.warn(e),n&&console.warn(n),pv.add(e))}const XP=t=>!isNaN(parseFloat(t));class KP{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:s,timestamp:u}=_i;this.lastUpdated!==u&&(this.timeDelta=s,this.lastUpdated=u,jn.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>jn.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=XP(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&Yp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new $p);const r=this.events[e].add(n);return e==="change"?()=>{r(),jn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?O0(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Tc(t,e){return new KP(t,e)}const j0=t=>e=>e.test(t),ZP={test:t=>t==="auto",parse:t=>t},N0=[Yu,jt,fs,Ll,oR,iR,ZP],zc=t=>N0.find(j0(t)),JP=[...N0,Xi,$l],QP=t=>JP.find(j0(t));function eA(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Tc(n))}function tA(t,e){const n=Td(t,e);let{transitionEnd:r={},transition:i={},...s}=n?t.makeTargetAnimatable(n,!1):{};s={...s,...r};for(const u in s){const g=wR(s[u]);eA(t,u,g)}}function nA(t,e,n){var r,i;const s=Object.keys(e).filter(g=>!t.hasValue(g)),u=s.length;if(u)for(let g=0;g<u;g++){const p=s[g],y=e[p];let T=null;Array.isArray(y)&&(T=y[0]),T===null&&(T=(i=(r=n[p])!==null&&r!==void 0?r:t.readValue(p))!==null&&i!==void 0?i:e[p]),T!=null&&(typeof T=="string"&&(F0(T)||L0(T))?T=parseFloat(T):!QP(T)&&$l.test(y)&&(T=M0(p,y)),t.addValue(p,Tc(T,{owner:t})),n[p]===void 0&&(n[p]=T),T!==null&&t.setBaseTarget(p,T))}}function rA(t,e){return e?(e[t]||e.default||e).from:void 0}function iA(t,e,n){const r={};for(const i in t){const s=rA(i,e);if(s!==void 0)r[i]=s;else{const u=n.getValue(i);u&&(r[i]=u.get())}}return r}function oA({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function aA(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function B0(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:u,...g}=t.makeTargetAnimatable(e);const p=t.getValue("willChange");r&&(s=r);const y=[],T=i&&t.animationState&&t.animationState.getState()[i];for(const x in g){const A=t.getValue(x),j=g[x];if(!A||j===void 0||T&&oA(T,x))continue;const Y={delay:n,elapsed:0,...Wp(s||{},x)};if(window.HandoffAppearAnimations){const L=t.getProps()[Hb];if(L){const ne=window.HandoffAppearAnimations(L,x,A,jn);ne!==null&&(Y.elapsed=ne,Y.isHandoff=!0)}}let z=!Y.isHandoff&&!aA(A,j);if(Y.type==="spring"&&(A.getVelocity()||Y.velocity)&&(z=!1),A.animation&&(z=!1),z)continue;A.start(Up(x,A,j,t.shouldReduceMotion&&$u.has(x)?{type:!1}:Y));const $=A.animation;ud(p)&&(p.add(x),$.then(()=>p.remove(x))),y.push($)}return u&&Promise.all(y).then(()=>{u&&tA(t,u)}),y}function ep(t,e,n={}){const r=Td(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const s=r?()=>Promise.all(B0(t,r,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:y=0,staggerChildren:T,staggerDirection:x}=i;return sA(t,e,y+p,T,x,n)}:()=>Promise.resolve(),{when:g}=i;if(g){const[p,y]=g==="beforeChildren"?[s,u]:[u,s];return p().then(()=>y())}else return Promise.all([s(),u(n.delay)])}function sA(t,e,n=0,r=0,i=1,s){const u=[],g=(t.variantChildren.size-1)*r,p=i===1?(y=0)=>y*r:(y=0)=>g-y*r;return Array.from(t.variantChildren).sort(lA).forEach((y,T)=>{y.notify("AnimationStart",e),u.push(ep(y,e,{...s,delay:n+p(T)}).then(()=>y.notify("AnimationComplete",e)))}),Promise.all(u)}function lA(t,e){return t.sortNodePosition(e)}function uA(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(s=>ep(t,s,n));r=Promise.all(i)}else if(typeof e=="string")r=ep(t,e,n);else{const i=typeof e=="function"?Td(t,e,n.custom):e;r=Promise.all(B0(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const cA=[...Rp].reverse(),fA=Rp.length;function dA(t){return e=>Promise.all(e.map(({animation:n,options:r})=>uA(t,n,r)))}function hA(t){let e=dA(t);const n=gA();let r=!0;const i=(p,y)=>{const T=Td(t,y);if(T){const{transition:x,transitionEnd:A,...j}=T;p={...p,...j,...A}}return p};function s(p){e=p(t)}function u(p,y){const T=t.getProps(),x=t.getVariantContext(!0)||{},A=[],j=new Set;let Y={},z=1/0;for(let L=0;L<fA;L++){const ne=cA[L],te=n[ne],he=T[ne]!==void 0?T[ne]:x[ne],ie=rf(he),xe=ne===y?te.isActive:null;xe===!1&&(z=L);let b=he===x[ne]&&he!==T[ne]&&ie;if(b&&r&&t.manuallyAnimateOnMount&&(b=!1),te.protectedKeys={...Y},!te.isActive&&xe===null||!he&&!te.prevProp||wd(he)||typeof he=="boolean")continue;let me=pA(te.prevProp,he)||ne===y&&te.isActive&&!b&&ie||L>z&&ie,Qe=!1;const xt=Array.isArray(he)?he:[he];let tt=xt.reduce(i,{});xe===!1&&(tt={});const{prevResolvedValues:nt={}}=te,ft={...nt,...tt},ve=Me=>{me=!0,j.has(Me)&&(Qe=!0,j.delete(Me)),te.needsAnimating[Me]=!0};for(const Me in ft){const Ve=tt[Me],Ye=nt[Me];if(Y.hasOwnProperty(Me))continue;let rt=!1;od(Ve)&&od(Ye)?rt=!l0(Ve,Ye):rt=Ve!==Ye,rt?Ve!==void 0?ve(Me):j.add(Me):Ve!==void 0&&j.has(Me)?ve(Me):te.protectedKeys[Me]=!0}te.prevProp=he,te.prevResolvedValues=tt,te.isActive&&(Y={...Y,...tt}),r&&t.blockInitialAnimation&&(me=!1),me&&(!b||Qe)&&A.push(...xt.map(Me=>({animation:Me,options:{type:ne,...p}})))}if(j.size){const L={};j.forEach(ne=>{const te=t.getBaseTarget(ne);te!==void 0&&(L[ne]=te)}),A.push({animation:L})}let $=!!A.length;return r&&(T.initial===!1||T.initial===T.animate)&&!t.manuallyAnimateOnMount&&($=!1),r=!1,$?e(A):Promise.resolve()}function g(p,y,T){var x;if(n[p].isActive===y)return Promise.resolve();(x=t.variantChildren)===null||x===void 0||x.forEach(j=>{var Y;return(Y=j.animationState)===null||Y===void 0?void 0:Y.setActive(p,y)}),n[p].isActive=y;const A=u(T,p);for(const j in n)n[j].protectedKeys={};return A}return{animateChanges:u,setActive:g,setAnimateFunction:s,getState:()=>n}}function pA(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!l0(e,t):!1}function Pu(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gA(){return{animate:Pu(!0),whileInView:Pu(),whileHover:Pu(),whileTap:Pu(),whileDrag:Pu(),whileFocus:Pu(),exit:Pu()}}class mA extends Gl{constructor(e){super(e),e.animationState||(e.animationState=hA(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),wd(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let vA=0;class yA extends Gl{constructor(){super(...arguments),this.id=vA++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&s.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const bA={animation:{Feature:mA},exit:{Feature:yA}},gv=(t,e)=>Math.abs(t-e);function wA(t,e){const n=gv(t.x,e.x),r=gv(t.y,e.y);return Math.sqrt(n**2+r**2)}class H0{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=vh(this.lastMoveEventInfo,this.history),A=this.startEvent!==null,j=wA(x.offset,{x:0,y:0})>=3;if(!A&&!j)return;const{point:Y}=x,{timestamp:z}=_i;this.history.push({...Y,timestamp:z});const{onStart:$,onMove:L}=this.handlers;A||($&&$(this.lastMoveEvent,x),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,x)},this.handlePointerMove=(x,A)=>{this.lastMoveEvent=x,this.lastMoveEventInfo=mh(A,this.transformPagePoint),jn.update(this.updatePoint,!0)},this.handlePointerUp=(x,A)=>{this.end();const{onEnd:j,onSessionEnd:Y,resumeAnimation:z}=this.handlers;if(this.dragSnapToOrigin&&z&&z(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const $=vh(x.type==="pointercancel"?this.lastMoveEventInfo:mh(A,this.transformPagePoint),this.history);this.startEvent&&j&&j(x,$),Y&&Y(x,$)},!r0(e))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const u=Cd(e),g=mh(u,this.transformPagePoint),{point:p}=g,{timestamp:y}=_i;this.history=[{...p,timestamp:y}];const{onSessionStart:T}=n;T&&T(e,vh(g,this.history)),this.removeListeners=Bl(tl(this.contextWindow,"pointermove",this.handlePointerMove),tl(this.contextWindow,"pointerup",this.handlePointerUp),tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),il(this.updatePoint)}}function mh(t,e){return e?{point:e(t.point)}:t}function mv(t,e){return{x:t.x-e.x,y:t.y-e.y}}function vh({point:t},e){return{point:t,delta:mv(t,W0(e)),offset:mv(t,xA(e)),velocity:SA(e,.1)}}function xA(t){return t[0]}function W0(t){return t[t.length-1]}function SA(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=W0(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Hl(e)));)n--;if(!r)return{x:0,y:0};const s=nl(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const u={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function Vo(t){return t.max-t.min}function tp(t,e=0,n=.01){return Math.abs(t-e)<=n}function vv(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=Vo(n)/Vo(e),(tp(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(tp(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Kc(t,e,n,r){vv(t.x,e.x,n.x,r?r.originX:void 0),vv(t.y,e.y,n.y,r?r.originY:void 0)}function yv(t,e,n){t.min=n.min+e.min,t.max=t.min+Vo(e)}function CA(t,e,n){yv(t.x,e.x,n.x),yv(t.y,e.y,n.y)}function bv(t,e,n){t.min=e.min-n.min,t.max=t.min+Vo(e)}function Zc(t,e,n){bv(t.x,e.x,n.x),bv(t.y,e.y,n.y)}function TA(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Zn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Zn(n,t,r.max):Math.min(t,n)),t}function wv(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function EA(t,{top:e,left:n,bottom:r,right:i}){return{x:wv(t.x,n,i),y:wv(t.y,e,r)}}function xv(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function kA(t,e){return{x:xv(t.x,e.x),y:xv(t.y,e.y)}}function _A(t,e){let n=.5;const r=Vo(t),i=Vo(e);return i>r?n=af(e.min,e.max-r,t.min):r>i&&(n=af(t.min,t.max-i,e.min)),zl(0,1,n)}function RA(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const np=.35;function PA(t=np){return t===!1?t=0:t===!0&&(t=np),{x:Sv(t,"left","right"),y:Sv(t,"top","bottom")}}function Sv(t,e,n){return{min:Cv(t,e),max:Cv(t,n)}}function Cv(t,e){return typeof t=="number"?t:t[e]||0}const Tv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Sc=()=>({x:Tv(),y:Tv()}),Ev=()=>({min:0,max:0}),Sr=()=>({x:Ev(),y:Ev()});function fa(t){return[t("x"),t("y")]}function U0({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function AA({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function OA(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function yh(t){return t===void 0||t===1}function rp({scale:t,scaleX:e,scaleY:n}){return!yh(t)||!yh(e)||!yh(n)}function Du(t){return rp(t)||V0(t)||t.z||t.rotate||t.rotateX||t.rotateY}function V0(t){return kv(t.x)||kv(t.y)}function kv(t){return t&&t!=="0%"}function cd(t,e,n){const r=t-n,i=e*r;return n+i}function _v(t,e,n,r,i){return i!==void 0&&(t=cd(t,i,r)),cd(t,n,r)+e}function ip(t,e=0,n=1,r,i){t.min=_v(t.min,e,n,r,i),t.max=_v(t.max,e,n,r,i)}function z0(t,{x:e,y:n}){ip(t.x,e.translate,e.scale,e.originPoint),ip(t.y,n.translate,n.scale,n.originPoint)}function DA(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let s,u;for(let g=0;g<i;g++){s=n[g],u=s.projectionDelta;const p=s.instance;p&&p.style&&p.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Cc(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,z0(t,u)),r&&Du(s.latestValues)&&Cc(t,s.latestValues))}e.x=Rv(e.x),e.y=Rv(e.y)}function Rv(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function Fl(t,e){t.min=t.min+e,t.max=t.max+e}function Pv(t,e,[n,r,i]){const s=e[i]!==void 0?e[i]:.5,u=Zn(t.min,t.max,s);ip(t,e[n],e[r],u,e.scale)}const IA=["x","scaleX","originX"],MA=["y","scaleY","originY"];function Cc(t,e){Pv(t.x,e,IA),Pv(t.y,e,MA)}function $0(t,e){return U0(OA(t.getBoundingClientRect(),e))}function LA(t,e,n){const r=$0(t,n),{scroll:i}=e;return i&&(Fl(r.x,i.offset.x),Fl(r.y,i.offset.y)),r}const Y0=({current:t})=>t?t.ownerDocument.defaultView:null,FA=new WeakMap;class jA{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Sr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=T=>{const{dragSnapToOrigin:x}=this.getProps();x?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Cd(T,"page").point)},s=(T,x)=>{const{drag:A,dragPropagation:j,onDragStart:Y}=this.getProps();if(A&&!j&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=o0(A),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fa($=>{let L=this.getAxisMotionValue($).get()||0;if(fs.test(L)){const{projection:ne}=this.visualElement;if(ne&&ne.layout){const te=ne.layout.layoutBox[$];te&&(L=Vo(te)*(parseFloat(L)/100))}}this.originPoint[$]=L}),Y&&jn.update(()=>Y(T,x),!1,!0);const{animationState:z}=this.visualElement;z&&z.setActive("whileDrag",!0)},u=(T,x)=>{const{dragPropagation:A,dragDirectionLock:j,onDirectionLock:Y,onDrag:z}=this.getProps();if(!A&&!this.openGlobalLock)return;const{offset:$}=x;if(j&&this.currentDirection===null){this.currentDirection=NA($),this.currentDirection!==null&&Y&&Y(this.currentDirection);return}this.updateAxis("x",x.point,$),this.updateAxis("y",x.point,$),this.visualElement.render(),z&&z(T,x)},g=(T,x)=>this.stop(T,x),p=()=>fa(T=>{var x;return this.getAnimationState(T)==="paused"&&((x=this.getAxisMotionValue(T).animation)===null||x===void 0?void 0:x.play())}),{dragSnapToOrigin:y}=this.getProps();this.panSession=new H0(e,{onSessionStart:i,onStart:s,onMove:u,onSessionEnd:g,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,contextWindow:Y0(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&jn.update(()=>s(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ff(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let u=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(u=TA(u,this.constraints[e],this.elastic[e])),s.set(u)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;n&&wc(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=EA(i.layoutBox,n):this.constraints=!1,this.elastic=PA(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&fa(u=>{this.getAxisMotionValue(u)&&(this.constraints[u]=RA(i.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!wc(e))return!1;const r=e.current;ja(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=LA(r,i.root,this.visualElement.getTransformPagePoint());let u=kA(i.layout.layoutBox,s);if(n){const g=n(AA(u));this.hasMutatedConstraints=!!g,g&&(u=U0(g))}return u}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:u,onDragTransitionEnd:g}=this.getProps(),p=this.constraints||{},y=fa(T=>{if(!Ff(T,n,this.currentDirection))return;let x=p&&p[T]||{};u&&(x={min:0,max:0});const A=i?200:1e6,j=i?40:1e7,Y={type:"inertia",velocity:r?e[T]:0,bounceStiffness:A,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...s,...x};return this.startAxisValueAnimation(T,Y)});return Promise.all(y).then(g)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(Up(e,r,0,n))}stopAnimation(){fa(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){fa(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){fa(n=>{const{drag:r}=this.getProps();if(!Ff(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:u,max:g}=i.layout.layoutBox[n];s.set(e[n]-Zn(u,g,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!wc(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};fa(u=>{const g=this.getAxisMotionValue(u);if(g){const p=g.get();i[u]=_A({min:p,max:p},this.constraints[u])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),fa(u=>{if(!Ff(u,e,null))return;const g=this.getAxisMotionValue(u),{min:p,max:y}=this.constraints[u];g.set(Zn(p,y,i[u]))})}addListeners(){if(!this.visualElement.current)return;FA.set(this.visualElement,this);const e=this.visualElement.current,n=tl(e,"pointerdown",p=>{const{drag:y,dragListener:T=!0}=this.getProps();y&&T&&this.start(p)}),r=()=>{const{dragConstraints:p}=this.getProps();wc(p)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const u=Js(window,"resize",()=>this.scalePositionWithinConstraints()),g=i.addEventListener("didUpdate",({delta:p,hasLayoutChanged:y})=>{this.isDragging&&y&&(fa(T=>{const x=this.getAxisMotionValue(T);x&&(this.originPoint[T]+=p[T].translate,x.set(x.get()+p[T].translate))}),this.visualElement.render())});return()=>{u(),n(),s(),g&&g()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:u=np,dragMomentum:g=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:u,dragMomentum:g}}}function Ff(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function NA(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class BA extends Gl{constructor(e){super(e),this.removeGroupControls=ir,this.removeListeners=ir,this.controls=new jA(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ir}unmount(){this.removeGroupControls(),this.removeListeners()}}const Av=t=>(e,n)=>{t&&jn.update(()=>t(e,n))};class HA extends Gl{constructor(){super(...arguments),this.removePointerDownListener=ir}onPointerDown(e){this.session=new H0(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Y0(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Av(e),onStart:Av(n),onMove:r,onEnd:(s,u)=>{delete this.session,i&&jn.update(()=>i(s,u))}}}mount(){this.removePointerDownListener=tl(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function WA(){const t=_e.useContext(kp);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=_e.useId();return _e.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const $f={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ov(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const $c={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(jt.test(t))t=parseFloat(t);else return t;const n=Ov(t,e.target.x),r=Ov(t,e.target.y);return`${n}% ${r}%`}},UA={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=$l.parse(t);if(i.length>5)return r;const s=$l.createTransformer(t),u=typeof i[0]!="number"?1:0,g=n.x.scale*e.x,p=n.y.scale*e.y;i[0+u]/=g,i[1+u]/=p;const y=Zn(g,p,.5);return typeof i[2+u]=="number"&&(i[2+u]/=y),typeof i[3+u]=="number"&&(i[3+u]/=y),s(i)}};class VA extends _e.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=e;Z_(zA),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),$f.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,u=r.projection;return u&&(u.isPresent=s,i||e.layoutDependency!==n||n===void 0?u.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?u.promote():u.relegate()||jn.postRender(()=>{const g=u.getStack();(!g||!g.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function G0(t){const[e,n]=WA(),r=_e.useContext(Ub);return _e.createElement(VA,{...t,layoutGroup:r,switchLayoutGroup:_e.useContext(Vb),isPresent:e,safeToRemove:n})}const zA={borderRadius:{...$c,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:$c,borderTopRightRadius:$c,borderBottomLeftRadius:$c,borderBottomRightRadius:$c,boxShadow:UA},q0=["TopLeft","TopRight","BottomLeft","BottomRight"],$A=q0.length,Dv=t=>typeof t=="string"?parseFloat(t):t,Iv=t=>typeof t=="number"||jt.test(t);function YA(t,e,n,r,i,s){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,GA(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,qA(r))):s&&(t.opacity=Zn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let u=0;u<$A;u++){const g=`border${q0[u]}Radius`;let p=Mv(e,g),y=Mv(n,g);if(p===void 0&&y===void 0)continue;p||(p=0),y||(y=0),p===0||y===0||Iv(p)===Iv(y)?(t[g]=Math.max(Zn(Dv(p),Dv(y),r),0),(fs.test(y)||fs.test(p))&&(t[g]+="%")):t[g]=y}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function Mv(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const GA=X0(0,.5,v0),qA=X0(.5,.95,ir);function X0(t,e,n){return r=>r<t?0:r>e?1:n(af(t,e,r))}function Lv(t,e){t.min=e.min,t.max=e.max}function ca(t,e){Lv(t.x,e.x),Lv(t.y,e.y)}function Fv(t,e,n,r,i){return t-=e,t=cd(t,1/n,r),i!==void 0&&(t=cd(t,1/i,r)),t}function XA(t,e=0,n=1,r=.5,i,s=t,u=t){if(fs.test(e)&&(e=parseFloat(e),e=Zn(u.min,u.max,e/100)-u.min),typeof e!="number")return;let g=Zn(s.min,s.max,r);t===s&&(g-=e),t.min=Fv(t.min,e,n,g,i),t.max=Fv(t.max,e,n,g,i)}function jv(t,e,[n,r,i],s,u){XA(t,e[n],e[r],e[i],e.scale,s,u)}const KA=["x","scaleX","originX"],ZA=["y","scaleY","originY"];function Nv(t,e,n,r){jv(t.x,e,KA,n?n.x:void 0,r?r.x:void 0),jv(t.y,e,ZA,n?n.y:void 0,r?r.y:void 0)}function Bv(t){return t.translate===0&&t.scale===1}function K0(t){return Bv(t.x)&&Bv(t.y)}function JA(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function Z0(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function Hv(t){return Vo(t.x)/Vo(t.y)}class QA{constructor(){this.members=[]}add(e){Vp(this.members,e),e.scheduleRender()}remove(e){if(zp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Wv(t,e,n){let r="";const i=t.x.translate/e.x,s=t.y.translate/e.y;if((i||s)&&(r=`translate3d(${i}px, ${s}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:p,rotateX:y,rotateY:T}=n;p&&(r+=`rotate(${p}deg) `),y&&(r+=`rotateX(${y}deg) `),T&&(r+=`rotateY(${T}deg) `)}const u=t.x.scale*e.x,g=t.y.scale*e.y;return(u!==1||g!==1)&&(r+=`scale(${u}, ${g})`),r||"none"}const eO=(t,e)=>t.depth-e.depth;class tO{constructor(){this.children=[],this.isDirty=!1}add(e){Vp(this.children,e),this.isDirty=!0}remove(e){zp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(eO),this.isDirty=!1,this.children.forEach(e)}}function nO(t,e){const n=performance.now(),r=({timestamp:i})=>{const s=i-n;s>=e&&(il(r),t(s-e))};return jn.read(r,!0),()=>il(r)}function rO(t){window.MotionDebug&&window.MotionDebug.record(t)}function iO(t){return t instanceof SVGElement&&t.tagName!=="svg"}function oO(t,e,n){const r=yo(t)?t:Tc(t);return r.start(Up("",r,e,n)),r.animation}const Uv=["","X","Y","Z"],aO={visibility:"hidden"},Vv=1e3;let sO=0;const Iu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function J0({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(u={},g=e==null?void 0:e()){this.id=sO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Iu.totalNodes=Iu.resolvedTargetDeltas=Iu.recalculatedProjection=0,this.nodes.forEach(cO),this.nodes.forEach(gO),this.nodes.forEach(mO),this.nodes.forEach(fO),rO(Iu)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=g?g.root||g:this,this.path=g?[...g.path,g]:[],this.parent=g,this.depth=g?g.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new tO)}addEventListener(u,g){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new $p),this.eventHandlers.get(u).add(g)}notifyListeners(u,...g){const p=this.eventHandlers.get(u);p&&p.notify(...g)}hasListeners(u){return this.eventHandlers.has(u)}mount(u,g=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=iO(u),this.instance=u;const{layoutId:p,layout:y,visualElement:T}=this.options;if(T&&!T.current&&T.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),g&&(y||p)&&(this.isLayoutDirty=!0),t){let x;const A=()=>this.root.updateBlockedByResize=!1;t(u,()=>{this.root.updateBlockedByResize=!0,x&&x(),x=nO(A,250),$f.hasAnimatedSinceResize&&($f.hasAnimatedSinceResize=!1,this.nodes.forEach($v))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&T&&(p||y)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:A,hasRelativeTargetChanged:j,layout:Y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const z=this.options.transition||T.getDefaultTransition()||xO,{onLayoutAnimationStart:$,onLayoutAnimationComplete:L}=T.getProps(),ne=!this.targetLayout||!Z0(this.targetLayout,Y)||j,te=!A&&j;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||te||A&&(ne||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(x,te);const he={...Wp(z,"layout"),onPlay:$,onComplete:L};(T.shouldReduceMotion||this.options.layoutRoot)&&(he.delay=0,he.type=!1),this.startAnimation(he)}else A||$v(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=Y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,il(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vO),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let T=0;T<this.path.length;T++){const x=this.path[T];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:g,layout:p}=this.options;if(g===void 0&&!p)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zv);return}this.isUpdating||this.nodes.forEach(hO),this.isUpdating=!1,this.nodes.forEach(pO),this.nodes.forEach(lO),this.nodes.forEach(uO),this.clearAllSnapshots();const g=performance.now();_i.delta=zl(0,1e3/60,g-_i.timestamp),_i.timestamp=g,_i.isProcessing=!0,lh.update.process(_i),lh.preRender.process(_i),lh.render.process(_i),_i.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(dO),this.sharedNodes.forEach(yO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Sr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:g}=this.options;g&&g.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let g=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(g=!1),g&&(this.scroll={animationId:this.root.animationId,phase:u,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const u=this.isLayoutDirty||this.shouldResetTransform,g=this.projectionDelta&&!K0(this.projectionDelta),p=this.getTransformTemplate(),y=p?p(this.latestValues,""):void 0,T=y!==this.prevTransformTemplateValue;u&&(g||Du(this.latestValues)||T)&&(i(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const g=this.measurePageBox();let p=this.removeElementScroll(g);return u&&(p=this.removeTransform(p)),SO(p),{animationId:this.root.animationId,measuredBox:g,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return Sr();const g=u.measureViewportBox(),{scroll:p}=this.root;return p&&(Fl(g.x,p.offset.x),Fl(g.y,p.offset.y)),g}removeElementScroll(u){const g=Sr();ca(g,u);for(let p=0;p<this.path.length;p++){const y=this.path[p],{scroll:T,options:x}=y;if(y!==this.root&&T&&x.layoutScroll){if(T.isRoot){ca(g,u);const{scroll:A}=this.root;A&&(Fl(g.x,-A.offset.x),Fl(g.y,-A.offset.y))}Fl(g.x,T.offset.x),Fl(g.y,T.offset.y)}}return g}applyTransform(u,g=!1){const p=Sr();ca(p,u);for(let y=0;y<this.path.length;y++){const T=this.path[y];!g&&T.options.layoutScroll&&T.scroll&&T!==T.root&&Cc(p,{x:-T.scroll.offset.x,y:-T.scroll.offset.y}),Du(T.latestValues)&&Cc(p,T.latestValues)}return Du(this.latestValues)&&Cc(p,this.latestValues),p}removeTransform(u){const g=Sr();ca(g,u);for(let p=0;p<this.path.length;p++){const y=this.path[p];if(!y.instance||!Du(y.latestValues))continue;rp(y.latestValues)&&y.updateSnapshot();const T=Sr(),x=y.measurePageBox();ca(T,x),Nv(g,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,T)}return Du(this.latestValues)&&Nv(g,this.latestValues),g}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_i.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var g;const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==p;if(!(u||y&&this.isSharedProjectionDirty||this.isProjectionDirty||!((g=this.parent)===null||g===void 0)&&g.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:x,layoutId:A}=this.options;if(!(!this.layout||!(x||A))){if(this.resolvedRelativeTargetAt=_i.timestamp,!this.targetDelta&&!this.relativeTarget){const j=this.getClosestProjectingParent();j&&j.layout&&this.animationProgress!==1?(this.relativeParent=j,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Sr(),this.relativeTargetOrigin=Sr(),Zc(this.relativeTargetOrigin,this.layout.layoutBox,j.layout.layoutBox),ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Sr(),this.targetWithTransforms=Sr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),CA(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ca(this.target,this.layout.layoutBox),z0(this.target,this.targetDelta)):ca(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const j=this.getClosestProjectingParent();j&&!!j.resumingFrom==!!this.resumingFrom&&!j.options.layoutScroll&&j.target&&this.animationProgress!==1?(this.relativeParent=j,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Sr(),this.relativeTargetOrigin=Sr(),Zc(this.relativeTargetOrigin,this.target,j.target),ca(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Iu.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||rp(this.parent.latestValues)||V0(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var u;const g=this.getLead(),p=!!this.resumingFrom||this!==g;let y=!0;if((this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty)&&(y=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===_i.timestamp&&(y=!1),y)return;const{layout:T,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(T||x))return;ca(this.layoutCorrected,this.layout.layoutBox);const A=this.treeScale.x,j=this.treeScale.y;DA(this.layoutCorrected,this.treeScale,this.path,p),g.layout&&!g.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(g.target=g.layout.layoutBox);const{target:Y}=g;if(!Y){this.projectionTransform&&(this.projectionDelta=Sc(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Sc(),this.projectionDeltaWithTransform=Sc());const z=this.projectionTransform;Kc(this.projectionDelta,this.layoutCorrected,Y,this.latestValues),this.projectionTransform=Wv(this.projectionDelta,this.treeScale),(this.projectionTransform!==z||this.treeScale.x!==A||this.treeScale.y!==j)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",Y)),Iu.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),u){const g=this.getStack();g&&g.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(u,g=!1){const p=this.snapshot,y=p?p.latestValues:{},T={...this.latestValues},x=Sc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!g;const A=Sr(),j=p?p.source:void 0,Y=this.layout?this.layout.source:void 0,z=j!==Y,$=this.getStack(),L=!$||$.members.length<=1,ne=!!(z&&!L&&this.options.crossfade===!0&&!this.path.some(wO));this.animationProgress=0;let te;this.mixTargetDelta=he=>{const ie=he/1e3;Yv(x.x,u.x,ie),Yv(x.y,u.y,ie),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Zc(A,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bO(this.relativeTarget,this.relativeTargetOrigin,A,ie),te&&JA(this.relativeTarget,te)&&(this.isProjectionDirty=!1),te||(te=Sr()),ca(te,this.relativeTarget)),z&&(this.animationValues=T,YA(T,y,this.latestValues,ie,ne,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=ie},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(il(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jn.update(()=>{$f.hasAnimatedSinceResize=!0,this.currentAnimation=oO(0,Vv,{...u,onUpdate:g=>{this.mixTargetDelta(g),u.onUpdate&&u.onUpdate(g)},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Vv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:g,target:p,layout:y,latestValues:T}=u;if(!(!g||!p||!y)){if(this!==u&&this.layout&&y&&Q0(this.options.animationType,this.layout.layoutBox,y.layoutBox)){p=this.target||Sr();const x=Vo(this.layout.layoutBox.x);p.x.min=u.target.x.min,p.x.max=p.x.min+x;const A=Vo(this.layout.layoutBox.y);p.y.min=u.target.y.min,p.y.max=p.y.min+A}ca(g,p),Cc(g,T),Kc(this.projectionDeltaWithTransform,this.layoutCorrected,g,T)}}registerSharedNode(u,g){this.sharedNodes.has(u)||this.sharedNodes.set(u,new QA),this.sharedNodes.get(u).add(g);const y=g.options.initialPromotionConfig;g.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(g):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var u;const{layoutId:g}=this.options;return g?((u=this.getStack())===null||u===void 0?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:g}=this.options;return g?(u=this.getStack())===null||u===void 0?void 0:u.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:g,preserveFollowOpacity:p}={}){const y=this.getStack();y&&y.promote(this,p),u&&(this.projectionDelta=void 0,this.needsReset=!0),g&&this.setOptions({transition:g})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetRotation(){const{visualElement:u}=this.options;if(!u)return;let g=!1;const{latestValues:p}=u;if((p.rotate||p.rotateX||p.rotateY||p.rotateZ)&&(g=!0),!g)return;const y={};for(let T=0;T<Uv.length;T++){const x="rotate"+Uv[T];p[x]&&(y[x]=p[x],u.setStaticValue(x,0))}u.render();for(const T in y)u.setStaticValue(T,y[T]);u.scheduleRender()}getProjectionStyles(u){var g,p;if(!this.instance||this.isSVG)return;if(!this.isVisible)return aO;const y={visibility:""},T=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,y.opacity="",y.pointerEvents=zf(u==null?void 0:u.pointerEvents)||"",y.transform=T?T(this.latestValues,""):"none",y;const x=this.getLead();if(!this.projectionDelta||!this.layout||!x.target){const z={};return this.options.layoutId&&(z.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,z.pointerEvents=zf(u==null?void 0:u.pointerEvents)||""),this.hasProjected&&!Du(this.latestValues)&&(z.transform=T?T({},""):"none",this.hasProjected=!1),z}const A=x.animationValues||x.latestValues;this.applyTransformsToTarget(),y.transform=Wv(this.projectionDeltaWithTransform,this.treeScale,A),T&&(y.transform=T(A,y.transform));const{x:j,y:Y}=this.projectionDelta;y.transformOrigin=`${j.origin*100}% ${Y.origin*100}% 0`,x.animationValues?y.opacity=x===this?(p=(g=A.opacity)!==null&&g!==void 0?g:this.latestValues.opacity)!==null&&p!==void 0?p:1:this.preserveOpacity?this.latestValues.opacity:A.opacityExit:y.opacity=x===this?A.opacity!==void 0?A.opacity:"":A.opacityExit!==void 0?A.opacityExit:0;for(const z in rd){if(A[z]===void 0)continue;const{correct:$,applyTo:L}=rd[z],ne=y.transform==="none"?A[z]:$(A[z],x);if(L){const te=L.length;for(let he=0;he<te;he++)y[L[he]]=ne}else y[z]=ne}return this.options.layoutId&&(y.pointerEvents=x===this?zf(u==null?void 0:u.pointerEvents)||"":"none"),y}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var g;return(g=u.currentAnimation)===null||g===void 0?void 0:g.stop()}),this.root.nodes.forEach(zv),this.root.sharedNodes.clear()}}}function lO(t){t.updateLayout()}function uO(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:s}=t.options,u=n.source!==t.layout.source;s==="size"?fa(x=>{const A=u?n.measuredBox[x]:n.layoutBox[x],j=Vo(A);A.min=r[x].min,A.max=A.min+j}):Q0(s,n.layoutBox,r)&&fa(x=>{const A=u?n.measuredBox[x]:n.layoutBox[x],j=Vo(r[x]);A.max=A.min+j,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[x].max=t.relativeTarget[x].min+j)});const g=Sc();Kc(g,r,n.layoutBox);const p=Sc();u?Kc(p,t.applyTransform(i,!0),n.measuredBox):Kc(p,r,n.layoutBox);const y=!K0(g);let T=!1;if(!t.resumeFrom){const x=t.getClosestProjectingParent();if(x&&!x.resumeFrom){const{snapshot:A,layout:j}=x;if(A&&j){const Y=Sr();Zc(Y,n.layoutBox,A.layoutBox);const z=Sr();Zc(z,r,j.layoutBox),Z0(Y,z)||(T=!0),x.options.layoutRoot&&(t.relativeTarget=z,t.relativeTargetOrigin=Y,t.relativeParent=x)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:p,layoutDelta:g,hasLayoutChanged:y,hasRelativeTargetChanged:T})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function cO(t){Iu.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function fO(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function dO(t){t.clearSnapshot()}function zv(t){t.clearMeasurements()}function hO(t){t.isLayoutDirty=!1}function pO(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function $v(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function gO(t){t.resolveTargetDelta()}function mO(t){t.calcProjection()}function vO(t){t.resetRotation()}function yO(t){t.removeLeadSnapshot()}function Yv(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Gv(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function bO(t,e,n,r){Gv(t.x,e.x,n.x,r),Gv(t.y,e.y,n.y,r)}function wO(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const xO={duration:.45,ease:[.4,0,.1,1]},qv=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),Xv=qv("applewebkit/")&&!qv("chrome/")?Math.round:ir;function Kv(t){t.min=Xv(t.min),t.max=Xv(t.max)}function SO(t){Kv(t.x),Kv(t.y)}function Q0(t,e,n){return t==="position"||t==="preserve-aspect"&&!tp(Hv(e),Hv(n),.2)}const CO=J0({attachResizeListener:(t,e)=>Js(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),bh={current:void 0},ew=J0({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!bh.current){const t=new CO({});t.mount(window),t.setOptions({layoutScroll:!0}),bh.current=t}return bh.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),TO={pan:{Feature:HA},drag:{Feature:BA,ProjectionNode:ew,MeasureLayout:G0}},EO=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function kO(t){const e=EO.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const _O=4;function op(t,e,n=1){ja(n<=_O,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=kO(t);if(!r)return;const s=window.getComputedStyle(e).getPropertyValue(r);if(s){const u=s.trim();return F0(u)?parseFloat(u):u}else return qh(i)?op(i,e,n+1):i}function RO(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const s=i.get();if(!qh(s))return;const u=op(s,r);u&&i.set(u)});for(const i in e){const s=e[i];if(!qh(s))continue;const u=op(s,r);u&&(e[i]=u,n||(n={}),n[i]===void 0&&(n[i]=s))}return{target:e,transitionEnd:n}}const PO=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tw=t=>PO.has(t),AO=t=>Object.keys(t).some(tw),jf=t=>t===Yu||t===jt,Zv=(t,e)=>parseFloat(t.split(", ")[e]),Jv=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return Zv(i[1],e);{const s=r.match(/^matrix\((.+)\)$/);return s?Zv(s[1],t):0}},OO=new Set(["x","y","z"]),DO=ff.filter(t=>!OO.has(t));function IO(t){const e=[];return DO.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Ec={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Jv(4,13),y:Jv(5,14)};Ec.translateX=Ec.x;Ec.translateY=Ec.y;const MO=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,s=getComputedStyle(i),{display:u}=s,g={};u==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(y=>{g[y]=Ec[y](r,s)}),e.render();const p=e.measureViewportBox();return n.forEach(y=>{const T=e.getValue(y);T&&T.jump(g[y]),t[y]=Ec[y](p,s)}),t},LO=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(tw);let s=[],u=!1;const g=[];if(i.forEach(p=>{const y=t.getValue(p);if(!t.hasValue(p))return;let T=n[p],x=zc(T);const A=e[p];let j;if(od(A)){const Y=A.length,z=A[0]===null?1:0;T=A[z],x=zc(T);for(let $=z;$<Y&&A[$]!==null;$++)j?ja(zc(A[$])===j,"All keyframes must be of the same type"):(j=zc(A[$]),ja(j===x||jf(x)&&jf(j),"Keyframes must be of the same dimension as the current value"))}else j=zc(A);if(x!==j)if(jf(x)&&jf(j)){const Y=y.get();typeof Y=="string"&&y.set(parseFloat(Y)),typeof A=="string"?e[p]=parseFloat(A):Array.isArray(A)&&j===jt&&(e[p]=A.map(parseFloat))}else x!=null&&x.transform&&(j!=null&&j.transform)&&(T===0||A===0)?T===0?y.set(j.transform(T)):e[p]=x.transform(A):(u||(s=IO(t),u=!0),g.push(p),r[p]=r[p]!==void 0?r[p]:e[p],y.jump(A))}),g.length){const p=g.indexOf("height")>=0?window.pageYOffset:null,y=MO(e,t,g);return s.length&&s.forEach(([T,x])=>{t.getValue(T).set(x)}),t.render(),bd&&p!==null&&window.scrollTo({top:p}),{target:y,transitionEnd:r}}else return{target:e,transitionEnd:r}};function FO(t,e,n,r){return AO(e)?LO(t,e,n,r):{target:e,transitionEnd:r}}const jO=(t,e,n,r)=>{const i=RO(t,e,r);return e=i.target,r=i.transitionEnd,FO(t,e,n,r)},ap={current:null},nw={current:!1};function NO(){if(nw.current=!0,!!bd)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ap.current=t.matches;t.addListener(e),e()}else ap.current=!1}function BO(t,e,n){const{willChange:r}=e;for(const i in e){const s=e[i],u=n[i];if(yo(s))t.addValue(i,s),ud(r)&&r.add(i),process.env.NODE_ENV==="development"&&Yp(s.version==="10.18.0",`Attempting to mix Framer Motion versions ${s.version} with 10.18.0 may not work as expected.`);else if(yo(u))t.addValue(i,Tc(s,{owner:t})),ud(r)&&r.remove(i);else if(u!==s)if(t.hasValue(i)){const g=t.getValue(i);!g.hasAnimated&&g.set(s)}else{const g=t.getStaticValue(i);t.addValue(i,Tc(g!==void 0?g:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Qv=new WeakMap,rw=Object.keys(of),HO=rw.length,ey=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],WO=Pp.length;class UO{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>jn.render(this.render,!1,!0);const{latestValues:g,renderState:p}=s;this.latestValues=g,this.baseTarget={...g},this.initialValues=n.initial?{...g}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.isControllingVariants=xd(n),this.isVariantNode=Wb(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:y,...T}=this.scrapeMotionValuesFromProps(n,{});for(const x in T){const A=T[x];g[x]!==void 0&&yo(A)&&(A.set(g[x],!1),ud(y)&&y.add(x))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,Qv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),nw.current||NO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ap.current,process.env.NODE_ENV!=="production"&&Yp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Qv.delete(this.current),this.projection&&this.projection.unmount(),il(this.notifyUpdate),il(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=$u.has(e),i=n.on("change",u=>{this.latestValues[e]=u,this.props.onUpdate&&jn.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),s()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,s){let u,g;if(process.env.NODE_ENV!=="production"&&i&&r){const p="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?pf(!1,p):ja(!1,p)}for(let p=0;p<HO;p++){const y=rw[p],{isEnabled:T,Feature:x,ProjectionNode:A,MeasureLayout:j}=of[y];A&&(u=A),T(n)&&(!this.features[y]&&x&&(this.features[y]=new x(this)),j&&(g=j))}if((this.type==="html"||this.type==="svg")&&!this.projection&&u){this.projection=new u(this.latestValues,this.parent&&this.parent.projection);const{layoutId:p,layout:y,drag:T,dragConstraints:x,layoutScroll:A,layoutRoot:j}=n;this.projection.setOptions({layoutId:p,layout:y,alwaysMeasureLayout:!!T||x&&wc(x),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof y=="string"?y:"both",initialPromotionConfig:s,layoutScroll:A,layoutRoot:j})}return g}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Sr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ey.length;r++){const i=ey[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const s=e["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=BO(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<WO;r++){const i=Pp[r],s=this.props[i];(rf(s)||s===!1)&&(n[i]=s)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Tc(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Fp(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!yo(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new $p),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class iw extends UO{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},s){let u=iA(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),u&&(u=i(u))),s){nA(this,r,u);const g=jO(this,r,u,n);n=g.transitionEnd,r=g.target}return{transition:e,transitionEnd:n,...r}}}function VO(t){return window.getComputedStyle(t)}class zO extends iw{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if($u.has(n)){const r=Hp(n);return r&&r.default||0}else{const r=VO(e),i=(Yb(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return $0(e,n)}build(e,n,r,i){Op(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Lp(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;yo(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){Jb(e,n,r,i)}}class $O extends iw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if($u.has(n)){const r=Hp(n);return r&&r.default||0}return n=Qb.has(n)?n:_p(n),e.getAttribute(n)}measureInstanceViewportBox(){return Sr()}scrapeMotionValuesFromProps(e,n){return t0(e,n)}build(e,n,r,i){Ip(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){e0(e,n,r,i)}mount(e){this.isSVGTag=Mp(e.tagName),super.mount(e)}}const YO=(t,e)=>Ap(t)?new $O(e,{enableHardwareAcceleration:!1}):new zO(e,{enableHardwareAcceleration:!0}),GO={layout:{ProjectionNode:ew,MeasureLayout:G0}},qO={...bA,...WR,...TO,...GO},XO=X_((t,e)=>RR(t,e,qO,YO));function kc(){return kc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},kc.apply(this,arguments)}const KO=Object.freeze(Object.defineProperty({__proto__:null,default:kc},Symbol.toStringTag,{value:"Module"}));function ow(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Gf(t,e)}function wh(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}/*!
|
|
@@ -2147,15 +2147,15 @@ const Em = (t) => {
|
|
|
2147
2147
|
}), qh = [];
|
|
2148
2148
|
};
|
|
2149
2149
|
function Ek(t, e) {
|
|
2150
|
-
var s, u, g, p, y, T;
|
|
2150
|
+
var s, u, g, p, y, T, x;
|
|
2151
2151
|
const n = t.config, r = (u = (s = t.response) == null ? void 0 : s.data) == null ? void 0 : u.errorMessage, i = r === Ck.TOKEN_EXPIRED;
|
|
2152
|
-
return ((g = t.response) == null ? void 0 : g.status) === 401 && i && !n._retry ? uh ? new Promise((
|
|
2153
|
-
qh.push({ resolve:
|
|
2154
|
-
}).then(() => Wu(n)).catch((
|
|
2152
|
+
return ((g = t.response) == null ? void 0 : g.status) === 401 && i && !n._retry ? uh ? new Promise((A, B) => {
|
|
2153
|
+
qh.push({ resolve: A, reject: B });
|
|
2154
|
+
}).then(() => Wu(n)).catch((A) => Promise.reject(A)) : (n._retry = !0, uh = !0, Wu.post("/authentication/api/v1/auth/refresh-token", void 0, {
|
|
2155
2155
|
baseURL: window.env.AUTHEN_DOMAIN
|
|
2156
|
-
}).then(() => (Em(null), Wu(n))).catch((
|
|
2156
|
+
}).then(() => (Em(null), Wu(n))).catch((A) => (Em(A), Promise.reject(A))).finally(() => {
|
|
2157
2157
|
uh = !1;
|
|
2158
|
-
})) : ((p = t.response) == null ? void 0 : p.status) === 401 && !i ? Tk(window.env.AUTHEN_DOMAIN) : (((y = t.response) == null ? void 0 : y.status) === 403 ? (T = e == null ? void 0 : e.handle403) == null || T.call(e, t) : !(e != null && e.disabledPushNotify) && jb(nb(`${r || "Something went wrong!"}`)), r && t.response && t.response.data && (t.response.data.message = r), Promise.reject(t));
|
|
2158
|
+
})) : ((p = t.response) == null ? void 0 : p.status) === 401 && !i ? Tk(window.env.AUTHEN_DOMAIN) : (((y = t.response) == null ? void 0 : y.status) === 403 ? (T = e == null ? void 0 : e.handle403) == null || T.call(e, t) : (!(e != null && e.disabledPushNotify) && jb(nb(`${r || "Something went wrong!"}`)), (x = e == null ? void 0 : e.handleOtherError) == null || x.call(e, t)), r && t.response && t.response.data && (t.response.data.message = r), Promise.reject(t));
|
|
2159
2159
|
}
|
|
2160
2160
|
Wu.interceptors.response.use(
|
|
2161
2161
|
(t) => t,
|
package/dist/share/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.module-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.module-2dd750b7.cjs"),c=require("axios"),u=require("react"),i=require("react/jsx-runtime");require("@r2wc/react-to-web-component");const l=require("react-router-dom");require("@mui/material");const m=r=>{const[t,o]=u.useState([]);return u.useEffect(()=>{c.get(`${r}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>o(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[r]),t},a=r=>(t,o)=>{const s=m(r);return o?t.every(n=>s==null?void 0:s.includes(n)):t.some(n=>s==null?void 0:s.includes(n))},h=({baseUrl:r,accessWith:t,requireAll:o,children:s})=>a(r)(t,o)?i.jsx(i.Fragment,{children:s}):null,P=({accessWith:r,requireAll:t,baseUrl:o,unAuthorizedPath:s,children:n})=>a(o)(r,t)?i.jsx(i.Fragment,{children:n}):i.jsx(l.Navigate,{to:s,replace:!0});exports.AuthContext=e.AuthContext;exports.AuthProvider=e.AuthProvider;exports.ERROR_MESSAGE=e.ERROR_MESSAGE;exports.SaasThemeProvider=e.SaasThemeProvider;exports.TranslationProvider=e.TranslationProvider;exports.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.login=e.login;exports.logout=e.logout;exports.search=e.search;exports.translate=e.translate;exports.translationConfig=e.translationConfig;exports.useAuth=e.useAuth;exports.useCustomTranslation=e.useCustomTranslation;exports.useTheme=e.useTheme;exports.useTranslation=e.useTranslation$1;exports.HasPermission=h;exports.PermissionRoute=P;exports.getUseHasPermission=a;exports.useGetPermission=m;
|
package/dist/share/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as R, K as S, M as G, Y as y, W as H, a as M, c as N, X as O, R as j, N as w, O as F, t as I, U as J, T as K, u as U, e as V, n as X, V as Y } from "../index.module-
|
|
1
|
+
import { J as R, K as S, M as G, Y as y, W as H, a as M, c as N, X as O, R as j, N as w, O as F, t as I, U as J, T as K, u as U, e as V, n as X, V as Y } from "../index.module-c9025b11.js";
|
|
2
2
|
import u from "axios";
|
|
3
3
|
import { useState as m, useEffect as c } from "react";
|
|
4
4
|
import { jsx as a, Fragment as n } from "react/jsx-runtime";
|
|
@@ -7,6 +7,7 @@ export declare const logout: (baseURL: string) => void;
|
|
|
7
7
|
declare const axiosInstance: import("axios").AxiosInstance;
|
|
8
8
|
type HandleErrorOptions = {
|
|
9
9
|
handle403?: (error: any) => any;
|
|
10
|
+
handleOtherError?: (error: any) => any;
|
|
10
11
|
disabledPushNotify?: boolean;
|
|
11
12
|
};
|
|
12
13
|
export declare function handleErrorAxios(error: any, options?: HandleErrorOptions): void | Promise<import("axios").AxiosResponse<any, any>>;
|
package/package.json
CHANGED
|
@@ -23222,15 +23222,15 @@ const rx = (e) => {
|
|
|
23222
23222
|
}), ny = [];
|
|
23223
23223
|
};
|
|
23224
23224
|
function EY(e, t) {
|
|
23225
|
-
var s, a, c, d, p, m;
|
|
23225
|
+
var s, a, c, d, p, m, v;
|
|
23226
23226
|
const n = e.config, r = (a = (s = e.response) == null ? void 0 : s.data) == null ? void 0 : a.errorMessage, i = r === CY.TOKEN_EXPIRED;
|
|
23227
|
-
return ((c = e.response) == null ? void 0 : c.status) === 401 && i && !n._retry ? Qm ? new Promise((
|
|
23228
|
-
ny.push({ resolve:
|
|
23229
|
-
}).then(() => gi(n)).catch((
|
|
23227
|
+
return ((c = e.response) == null ? void 0 : c.status) === 401 && i && !n._retry ? Qm ? new Promise((x, k) => {
|
|
23228
|
+
ny.push({ resolve: x, reject: k });
|
|
23229
|
+
}).then(() => gi(n)).catch((x) => Promise.reject(x)) : (n._retry = !0, Qm = !0, gi.post("/authentication/api/v1/auth/refresh-token", void 0, {
|
|
23230
23230
|
baseURL: window.env.AUTHEN_DOMAIN
|
|
23231
|
-
}).then(() => (rx(null), gi(n))).catch((
|
|
23231
|
+
}).then(() => (rx(null), gi(n))).catch((x) => (rx(x), Promise.reject(x))).finally(() => {
|
|
23232
23232
|
Qm = !1;
|
|
23233
|
-
})) : ((d = e.response) == null ? void 0 : d.status) === 401 && !i ? kY(window.env.AUTHEN_DOMAIN) : (((p = e.response) == null ? void 0 : p.status) === 403 ? (m = t == null ? void 0 : t.handle403) == null || m.call(t, e) : !(t != null && t.disabledPushNotify) && N0(SI(`${r || "Something went wrong!"}`)), r && e.response && e.response.data && (e.response.data.message = r), Promise.reject(e));
|
|
23233
|
+
})) : ((d = e.response) == null ? void 0 : d.status) === 401 && !i ? kY(window.env.AUTHEN_DOMAIN) : (((p = e.response) == null ? void 0 : p.status) === 403 ? (m = t == null ? void 0 : t.handle403) == null || m.call(t, e) : (!(t != null && t.disabledPushNotify) && N0(SI(`${r || "Something went wrong!"}`)), (v = t == null ? void 0 : t.handleOtherError) == null || v.call(t, e)), r && e.response && e.response.data && (e.response.data.message = r), Promise.reject(e));
|
|
23234
23234
|
}
|
|
23235
23235
|
gi.interceptors.response.use(
|
|
23236
23236
|
(e) => e,
|