@mailstep/design-system 0.6.1 → 0.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -5,11 +5,11 @@ import { Text } from '../../Elements/Text';
5
5
  import { Icon } from '../../Elements/Icon';
6
6
  var Tab = function (_a) {
7
7
  var tabDefinition = _a.tabDefinition, value = _a.value, isActive = _a.isActive, onTabSwitch = _a.onTabSwitch;
8
- var icon = tabDefinition.icon, label = tabDefinition.label, badgeCount = tabDefinition.badgeCount;
8
+ var icon = tabDefinition.icon, label = tabDefinition.label, badgeCount = tabDefinition.badgeCount, disabled = tabDefinition.disabled;
9
9
  var handleOnClick = useCallback(function () {
10
10
  onTabSwitch(value);
11
11
  }, [onTabSwitch, value]);
12
- return (_jsx(StyledTabWrapper, { children: _jsxs(StyledTab, { onClick: handleOnClick, active: isActive, children: [icon && (_jsx(StyledImageBox, { children: _jsx(Icon, { icon: icon }) })), _jsx(Text, { children: label }), isActive && badgeCount && badgeCount > 0 && (_jsx(RoundedWrap, { children: _jsx(Text, { variant: "medium", children: badgeCount }) }))] }) }));
12
+ return (_jsx(StyledTabWrapper, { children: _jsxs(StyledTab, { onClick: !disabled ? handleOnClick : undefined, active: isActive, children: [icon && (_jsx(StyledImageBox, { children: _jsx(Icon, { icon: icon }) })), _jsx(Text, { children: label }), isActive && badgeCount && badgeCount > 0 && (_jsx(RoundedWrap, { children: _jsx(Text, { variant: "medium", children: badgeCount }) }))] }) }));
13
13
  };
14
14
  export var Tabs = function (_a) {
15
15
  var tabsDefinition = _a.tabsDefinition, activeTab = _a.activeTab, onTabSwitch = _a.onTabSwitch, mb = _a.mb;
@@ -4,6 +4,7 @@ export type TabDefinition = {
4
4
  icon?: string;
5
5
  badgeCount?: number;
6
6
  default?: true;
7
+ disabled?: boolean;
7
8
  };
8
9
  export type TabsProps = {
9
10
  tabsDefinition: TabDefinition[];
package/ui/index.es.js CHANGED
@@ -15378,11 +15378,12 @@ const vse = ae.img`
15378
15378
  const {
15379
15379
  icon: i,
15380
15380
  label: o,
15381
- badgeCount: l
15382
- } = e, c = Te(() => {
15381
+ badgeCount: l,
15382
+ disabled: c
15383
+ } = e, u = Te(() => {
15383
15384
  n(t);
15384
15385
  }, [n, t]);
15385
- return /* @__PURE__ */ b.jsx(Pse, { children: /* @__PURE__ */ b.jsxs(Dse, { onClick: c, active: r, children: [
15386
+ return /* @__PURE__ */ b.jsx(Pse, { children: /* @__PURE__ */ b.jsxs(Dse, { onClick: c ? void 0 : u, active: r, children: [
15386
15387
  i && /* @__PURE__ */ b.jsx(Tse, { children: /* @__PURE__ */ b.jsx(Ar, { icon: i }) }),
15387
15388
  /* @__PURE__ */ b.jsx(u9, { children: o }),
15388
15389
  r && l && l > 0 && /* @__PURE__ */ b.jsx(Mse, { children: /* @__PURE__ */ b.jsx(u9, { variant: "medium", children: l }) })
package/ui/index.umd.js CHANGED
@@ -1621,7 +1621,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1621
1621
  background-color: ${se.color("bgLightGray1")};
1622
1622
  height: 2px;
1623
1623
  }
1624
- `,yle=({tabDefinition:e,value:t,isActive:r,onTabSwitch:n})=>{const{icon:i,label:o,badgeCount:l}=e,u=I.useCallback(()=>{n(t)},[n,t]);return b.jsx(gle,{children:b.jsxs(mle,{onClick:u,active:r,children:[i&&b.jsx(ple,{children:b.jsx(ur,{icon:i})}),b.jsx(T4,{children:o}),r&&l&&l>0&&b.jsx(vle,{children:b.jsx(T4,{variant:"medium",children:l})})]})})},wle=({tabsDefinition:e,activeTab:t,onTabSwitch:r,mb:n})=>b.jsx(ble,{$mb:n,children:e.map((i,o)=>b.jsx(yle,{value:o,tabDefinition:i,isActive:o===t,onTabSwitch:r},o))}),Ale=({activeTab:e,value:t,children:r})=>e===t?r:null,Cle=e=>{const t=e.map(l=>l.default).indexOf(!0),r=t===-1?0:t,[n,i]=I.useState(r),o=I.useCallback(l=>{i(l)},[]);return{activeTab:n,onTabSwitch:o}};function yb(e,t){return yb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yb(e,t)}function bo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yb(e,t)}function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pn.apply(this,arguments)}function e2(e){return e.charAt(0)==="/"}function wb(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}function xle(e,t){t===void 0&&(t="");var r=e&&e.split("/")||[],n=t&&t.split("/")||[],i=e&&e2(e),o=t&&e2(t),l=i||o;if(e&&e2(e)?n=r:r.length&&(n.pop(),n=n.concat(r)),!n.length)return"/";var u;if(n.length){var c=n[n.length-1];u=c==="."||c===".."||c===""}else u=!1;for(var f=0,h=n.length;h>=0;h--){var g=n[h];g==="."?wb(n,h):g===".."?(wb(n,h),f++):f&&(wb(n,h),f--)}if(!l)for(;f--;f)n.unshift("..");l&&n[0]!==""&&(!n[0]||!e2(n[0]))&&n.unshift("");var v=n.join("/");return u&&v.substr(-1)!=="/"&&(v+="/"),v}var Ele=process.env.NODE_ENV==="production";function Xt(e,t){if(!Ele){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var Sle=process.env.NODE_ENV==="production",Ab="Invariant failed";function Mn(e,t){if(!e){if(Sle)throw new Error(Ab);var r=typeof t=="function"?t():t,n=r?"".concat(Ab,": ").concat(r):Ab;throw new Error(n)}}function Hf(e){return e.charAt(0)==="/"?e:"/"+e}function iD(e){return e.charAt(0)==="/"?e.substr(1):e}function Cb(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function aD(e,t){return Cb(e,t)?e.substr(t.length):e}function oD(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function Ile(e){var t=e||"/",r="",n="",i=t.indexOf("#");i!==-1&&(n=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return o!==-1&&(r=t.substr(o),t=t.substr(0,o)),{pathname:t,search:r==="?"?"":r,hash:n==="#"?"":n}}function ui(e){var t=e.pathname,r=e.search,n=e.hash,i=t||"/";return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(i+=n.charAt(0)==="#"?n:"#"+n),i}function Bi(e,t,r,n){var i;typeof e=="string"?(i=Ile(e),i.state=t):(i=Pn({},e),i.pathname===void 0&&(i.pathname=""),i.search?i.search.charAt(0)!=="?"&&(i.search="?"+i.search):i.search="",i.hash?i.hash.charAt(0)!=="#"&&(i.hash="#"+i.hash):i.hash="",t!==void 0&&i.state===void 0&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return r&&(i.key=r),n?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=xle(i.pathname,n.pathname)):i.pathname=n.pathname:i.pathname||(i.pathname="/"),i}function xb(){var e=null;function t(l){return process.env.NODE_ENV!=="production"&&Xt(e==null,"A history supports only one prompt at a time"),e=l,function(){e===l&&(e=null)}}function r(l,u,c,f){if(e!=null){var h=typeof e=="function"?e(l,u):e;typeof h=="string"?typeof c=="function"?c(h,f):(process.env.NODE_ENV!=="production"&&Xt(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),f(!0)):f(h!==!1)}else f(!0)}var n=[];function i(l){var u=!0;function c(){u&&l.apply(void 0,arguments)}return n.push(c),function(){u=!1,n=n.filter(function(f){return f!==c})}}function o(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];n.forEach(function(f){return f.apply(void 0,u)})}return{setPrompt:t,confirmTransitionTo:r,appendListener:i,notifyListeners:o}}var sD=!!(typeof window<"u"&&window.document&&window.document.createElement);function lD(e,t){t(window.confirm(e))}function kle(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function Ole(){return window.navigator.userAgent.indexOf("Trident")===-1}function Tle(){return window.navigator.userAgent.indexOf("Firefox")===-1}function Ple(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var uD="popstate",cD="hashchange";function dD(){try{return window.history.state||{}}catch{return{}}}function Mle(e){e===void 0&&(e={}),sD||(process.env.NODE_ENV!=="production"?Mn(!1,"Browser history needs a DOM"):Mn(!1));var t=window.history,r=kle(),n=!Ole(),i=e,o=i.forceRefresh,l=o===void 0?!1:o,u=i.getUserConfirmation,c=u===void 0?lD:u,f=i.keyLength,h=f===void 0?6:f,g=e.basename?oD(Hf(e.basename)):"";function v(fe){var Y=fe||{},Q=Y.key,oe=Y.state,le=window.location,pe=le.pathname,re=le.search,K=le.hash,ne=pe+re+K;return process.env.NODE_ENV!=="production"&&Xt(!g||Cb(ne,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+ne+'" to begin with "'+g+'".'),g&&(ne=aD(ne,g)),Bi(ne,oe,Q)}function m(){return Math.random().toString(36).substr(2,h)}var w=xb();function E(fe){Pn(Ae,fe),Ae.length=t.length,w.notifyListeners(Ae.location,Ae.action)}function S(fe){Ple(fe)||P(v(fe.state))}function x(){P(v(dD()))}var O=!1;function P(fe){if(O)O=!1,E();else{var Y="POP";w.confirmTransitionTo(fe,Y,c,function(Q){Q?E({action:Y,location:fe}):T(fe)})}}function T(fe){var Y=Ae.location,Q=R.indexOf(Y.key);Q===-1&&(Q=0);var oe=R.indexOf(fe.key);oe===-1&&(oe=0);var le=Q-oe;le&&(O=!0,J(le))}var D=v(dD()),R=[D.key];function F(fe){return g+ui(fe)}function W(fe,Y){process.env.NODE_ENV!=="production"&&Xt(!(typeof fe=="object"&&fe.state!==void 0&&Y!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var Q="PUSH",oe=Bi(fe,Y,m(),Ae.location);w.confirmTransitionTo(oe,Q,c,function(le){if(le){var pe=F(oe),re=oe.key,K=oe.state;if(r)if(t.pushState({key:re,state:K},null,pe),l)window.location.href=pe;else{var ne=R.indexOf(Ae.location.key),de=R.slice(0,ne+1);de.push(oe.key),R=de,E({action:Q,location:oe})}else process.env.NODE_ENV!=="production"&&Xt(K===void 0,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=pe}})}function z(fe,Y){process.env.NODE_ENV!=="production"&&Xt(!(typeof fe=="object"&&fe.state!==void 0&&Y!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var Q="REPLACE",oe=Bi(fe,Y,m(),Ae.location);w.confirmTransitionTo(oe,Q,c,function(le){if(le){var pe=F(oe),re=oe.key,K=oe.state;if(r)if(t.replaceState({key:re,state:K},null,pe),l)window.location.replace(pe);else{var ne=R.indexOf(Ae.location.key);ne!==-1&&(R[ne]=oe.key),E({action:Q,location:oe})}else process.env.NODE_ENV!=="production"&&Xt(K===void 0,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(pe)}})}function J(fe){t.go(fe)}function B(){J(-1)}function j(){J(1)}var V=0;function te(fe){V+=fe,V===1&&fe===1?(window.addEventListener(uD,S),n&&window.addEventListener(cD,x)):V===0&&(window.removeEventListener(uD,S),n&&window.removeEventListener(cD,x))}var U=!1;function ie(fe){fe===void 0&&(fe=!1);var Y=w.setPrompt(fe);return U||(te(1),U=!0),function(){return U&&(U=!1,te(-1)),Y()}}function ge(fe){var Y=w.appendListener(fe);return te(1),function(){te(-1),Y()}}var Ae={length:t.length,action:"POP",location:D,createHref:F,push:W,replace:z,go:J,goBack:B,goForward:j,block:ie,listen:ge};return Ae}var fD="hashchange",Dle={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+iD(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:iD,decodePath:Hf},slash:{encodePath:Hf,decodePath:Hf}};function hD(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function Gf(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function Nle(e){window.location.hash=e}function Eb(e){window.location.replace(hD(window.location.href)+"#"+e)}function _le(e){e===void 0&&(e={}),sD||(process.env.NODE_ENV!=="production"?Mn(!1,"Hash history needs a DOM"):Mn(!1));var t=window.history,r=Tle(),n=e,i=n.getUserConfirmation,o=i===void 0?lD:i,l=n.hashType,u=l===void 0?"slash":l,c=e.basename?oD(Hf(e.basename)):"",f=Dle[u],h=f.encodePath,g=f.decodePath;function v(){var Q=g(Gf());return process.env.NODE_ENV!=="production"&&Xt(!c||Cb(Q,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+Q+'" to begin with "'+c+'".'),c&&(Q=aD(Q,c)),Bi(Q)}var m=xb();function w(Q){Pn(Y,Q),Y.length=t.length,m.notifyListeners(Y.location,Y.action)}var E=!1,S=null;function x(Q,oe){return Q.pathname===oe.pathname&&Q.search===oe.search&&Q.hash===oe.hash}function O(){var Q=Gf(),oe=h(Q);if(Q!==oe)Eb(oe);else{var le=v(),pe=Y.location;if(!E&&x(pe,le)||S===ui(le))return;S=null,P(le)}}function P(Q){if(E)E=!1,w();else{var oe="POP";m.confirmTransitionTo(Q,oe,o,function(le){le?w({action:oe,location:Q}):T(Q)})}}function T(Q){var oe=Y.location,le=W.lastIndexOf(ui(oe));le===-1&&(le=0);var pe=W.lastIndexOf(ui(Q));pe===-1&&(pe=0);var re=le-pe;re&&(E=!0,j(re))}var D=Gf(),R=h(D);D!==R&&Eb(R);var F=v(),W=[ui(F)];function z(Q){var oe=document.querySelector("base"),le="";return oe&&oe.getAttribute("href")&&(le=hD(window.location.href)),le+"#"+h(c+ui(Q))}function J(Q,oe){process.env.NODE_ENV!=="production"&&Xt(oe===void 0,"Hash history cannot push state; it is ignored");var le="PUSH",pe=Bi(Q,void 0,void 0,Y.location);m.confirmTransitionTo(pe,le,o,function(re){if(re){var K=ui(pe),ne=h(c+K),de=Gf()!==ne;if(de){S=K,Nle(ne);var ve=W.lastIndexOf(ui(Y.location)),Te=W.slice(0,ve+1);Te.push(K),W=Te,w({action:le,location:pe})}else process.env.NODE_ENV!=="production"&&Xt(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),w()}})}function B(Q,oe){process.env.NODE_ENV!=="production"&&Xt(oe===void 0,"Hash history cannot replace state; it is ignored");var le="REPLACE",pe=Bi(Q,void 0,void 0,Y.location);m.confirmTransitionTo(pe,le,o,function(re){if(re){var K=ui(pe),ne=h(c+K),de=Gf()!==ne;de&&(S=K,Eb(ne));var ve=W.indexOf(ui(Y.location));ve!==-1&&(W[ve]=K),w({action:le,location:pe})}})}function j(Q){process.env.NODE_ENV!=="production"&&Xt(r,"Hash history go(n) causes a full page reload in this browser"),t.go(Q)}function V(){j(-1)}function te(){j(1)}var U=0;function ie(Q){U+=Q,U===1&&Q===1?window.addEventListener(fD,O):U===0&&window.removeEventListener(fD,O)}var ge=!1;function Ae(Q){Q===void 0&&(Q=!1);var oe=m.setPrompt(Q);return ge||(ie(1),ge=!0),function(){return ge&&(ge=!1,ie(-1)),oe()}}function fe(Q){var oe=m.appendListener(Q);return ie(1),function(){ie(-1),oe()}}var Y={length:t.length,action:"POP",location:F,createHref:z,push:J,replace:B,go:j,goBack:V,goForward:te,block:Ae,listen:fe};return Y}function pD(e,t,r){return Math.min(Math.max(e,t),r)}function Lle(e){e===void 0&&(e={});var t=e,r=t.getUserConfirmation,n=t.initialEntries,i=n===void 0?["/"]:n,o=t.initialIndex,l=o===void 0?0:o,u=t.keyLength,c=u===void 0?6:u,f=xb();function h(W){Pn(F,W),F.length=F.entries.length,f.notifyListeners(F.location,F.action)}function g(){return Math.random().toString(36).substr(2,c)}var v=pD(l,0,i.length-1),m=i.map(function(W){return typeof W=="string"?Bi(W,void 0,g()):Bi(W,void 0,W.key||g())}),w=ui;function E(W,z){process.env.NODE_ENV!=="production"&&Xt(!(typeof W=="object"&&W.state!==void 0&&z!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var J="PUSH",B=Bi(W,z,g(),F.location);f.confirmTransitionTo(B,J,r,function(j){if(j){var V=F.index,te=V+1,U=F.entries.slice(0);U.length>te?U.splice(te,U.length-te,B):U.push(B),h({action:J,location:B,index:te,entries:U})}})}function S(W,z){process.env.NODE_ENV!=="production"&&Xt(!(typeof W=="object"&&W.state!==void 0&&z!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var J="REPLACE",B=Bi(W,z,g(),F.location);f.confirmTransitionTo(B,J,r,function(j){j&&(F.entries[F.index]=B,h({action:J,location:B}))})}function x(W){var z=pD(F.index+W,0,F.entries.length-1),J="POP",B=F.entries[z];f.confirmTransitionTo(B,J,r,function(j){j?h({action:J,location:B,index:z}):h()})}function O(){x(-1)}function P(){x(1)}function T(W){var z=F.index+W;return z>=0&&z<F.entries.length}function D(W){return W===void 0&&(W=!1),f.setPrompt(W)}function R(W){return f.appendListener(W)}var F={length:m.length,action:"POP",location:m[v],index:v,entries:m,createHref:w,push:E,replace:S,go:x,goBack:O,goForward:P,canGo:T,block:D,listen:R};return F}var $u={exports:{}},Rle=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},t2=Rle;$u.exports=mD,$u.exports.parse=Sb,$u.exports.compile=Fle,$u.exports.tokensToFunction=gD,$u.exports.tokensToRegExp=vD;var Ble=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Sb(e,t){for(var r=[],n=0,i=0,o="",l=t&&t.delimiter||"/",u;(u=Ble.exec(e))!=null;){var c=u[0],f=u[1],h=u.index;if(o+=e.slice(i,h),i=h+c.length,f){o+=f[1];continue}var g=e[i],v=u[2],m=u[3],w=u[4],E=u[5],S=u[6],x=u[7];o&&(r.push(o),o="");var O=v!=null&&g!=null&&g!==v,P=S==="+"||S==="*",T=S==="?"||S==="*",D=u[2]||l,R=w||E;r.push({name:m||n++,prefix:v||"",delimiter:D,optional:T,repeat:P,partial:O,asterisk:!!x,pattern:R?Wle(R):x?".*":"[^"+r2(D)+"]+?"})}return i<e.length&&(o+=e.substr(i)),o&&r.push(o),r}function Fle(e,t){return gD(Sb(e,t),t)}function Vle(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function jle(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function gD(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)typeof e[n]=="object"&&(r[n]=new RegExp("^(?:"+e[n].pattern+")$",kb(t)));return function(i,o){for(var l="",u=i||{},c=o||{},f=c.pretty?Vle:encodeURIComponent,h=0;h<e.length;h++){var g=e[h];if(typeof g=="string"){l+=g;continue}var v=u[g.name],m;if(v==null)if(g.optional){g.partial&&(l+=g.prefix);continue}else throw new TypeError('Expected "'+g.name+'" to be defined');if(t2(v)){if(!g.repeat)throw new TypeError('Expected "'+g.name+'" to not repeat, but received `'+JSON.stringify(v)+"`");if(v.length===0){if(g.optional)continue;throw new TypeError('Expected "'+g.name+'" to not be empty')}for(var w=0;w<v.length;w++){if(m=f(v[w]),!r[h].test(m))throw new TypeError('Expected all "'+g.name+'" to match "'+g.pattern+'", but received `'+JSON.stringify(m)+"`");l+=(w===0?g.prefix:g.delimiter)+m}continue}if(m=g.asterisk?jle(v):f(v),!r[h].test(m))throw new TypeError('Expected "'+g.name+'" to match "'+g.pattern+'", but received "'+m+'"');l+=g.prefix+m}return l}}function r2(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Wle(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Ib(e,t){return e.keys=t,e}function kb(e){return e&&e.sensitive?"":"i"}function Hle(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Ib(e,t)}function Gle(e,t,r){for(var n=[],i=0;i<e.length;i++)n.push(mD(e[i],t,r).source);var o=new RegExp("(?:"+n.join("|")+")",kb(r));return Ib(o,t)}function zle(e,t,r){return vD(Sb(e,r),t,r)}function vD(e,t,r){t2(t)||(r=t||r,t=[]),r=r||{};for(var n=r.strict,i=r.end!==!1,o="",l=0;l<e.length;l++){var u=e[l];if(typeof u=="string")o+=r2(u);else{var c=r2(u.prefix),f="(?:"+u.pattern+")";t.push(u),u.repeat&&(f+="(?:"+c+f+")*"),u.optional?u.partial?f=c+"("+f+")?":f="(?:"+c+"("+f+"))?":f=c+"("+f+")",o+=f}}var h=r2(r.delimiter||"/"),g=o.slice(-h.length)===h;return n||(o=(g?o.slice(0,-h.length):o)+"(?:"+h+"(?=$))?"),i?o+="$":o+=n&&g?"":"(?="+h+"|$)",Ib(new RegExp("^"+o,kb(r)),t)}function mD(e,t,r){return t2(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?Hle(e,t):t2(e)?Gle(e,t,r):zle(e,t,r)}var Yle=$u.exports;const Zle=_a(Yle);var Ule=kp();function zf(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ob=kp(),Jle={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xle={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},qle={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tb={};Tb[Ob.ForwardRef]=qle,Tb[Ob.Memo]=bD;function yD(e){return Ob.isMemo(e)?bD:Tb[e.$$typeof]||Jle}var Qle=Object.defineProperty,Kle=Object.getOwnPropertyNames,wD=Object.getOwnPropertySymbols,$le=Object.getOwnPropertyDescriptor,eue=Object.getPrototypeOf,AD=Object.prototype;function CD(e,t,r){if(typeof t!="string"){if(AD){var n=eue(t);n&&n!==AD&&CD(e,n,r)}var i=Kle(t);wD&&(i=i.concat(wD(t)));for(var o=yD(e),l=yD(t),u=0;u<i.length;++u){var c=i[u];if(!Xle[c]&&!(r&&r[c])&&!(l&&l[c])&&!(o&&o[c])){var f=$le(t,c);try{Qle(e,c,f)}catch{}}}}return e}var tue=CD;const xD=_a(tue);var n2=1073741823,ED=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function rue(){var e="__global_unique_id__";return ED[e]=(ED[e]||0)+1}function nue(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function iue(e){var t=[];return{on:function(n){t.push(n)},off:function(n){t=t.filter(function(i){return i!==n})},get:function(){return e},set:function(n,i){e=n,t.forEach(function(o){return o(e,i)})}}}function aue(e){return Array.isArray(e)?e[0]:e}function oue(e,t){var r,n,i="__create-react-context-"+rue()+"__",o=function(u){bo(c,u);function c(){for(var h,g=arguments.length,v=new Array(g),m=0;m<g;m++)v[m]=arguments[m];return h=u.call.apply(u,[this].concat(v))||this,h.emitter=iue(h.props.value),h}var f=c.prototype;return f.getChildContext=function(){var g;return g={},g[i]=this.emitter,g},f.componentWillReceiveProps=function(g){if(this.props.value!==g.value){var v=this.props.value,m=g.value,w;nue(v,m)?w=0:(w=typeof t=="function"?t(v,m):n2,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Xt((w&n2)===w,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: "+w),w|=0,w!==0&&this.emitter.set(g.value,w))}},f.render=function(){return this.props.children},c}(I.Component);o.childContextTypes=(r={},r[i]=Ce.object.isRequired,r);var l=function(u){bo(c,u);function c(){for(var h,g=arguments.length,v=new Array(g),m=0;m<g;m++)v[m]=arguments[m];return h=u.call.apply(u,[this].concat(v))||this,h.observedBits=void 0,h.state={value:h.getValue()},h.onUpdate=function(w,E){var S=h.observedBits|0;S&E&&h.setState({value:h.getValue()})},h}var f=c.prototype;return f.componentWillReceiveProps=function(g){var v=g.observedBits;this.observedBits=v??n2},f.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var g=this.props.observedBits;this.observedBits=g??n2},f.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},f.getValue=function(){return this.context[i]?this.context[i].get():e},f.render=function(){return aue(this.props.children)(this.state.value)},c}(I.Component);return l.contextTypes=(n={},n[i]=Ce.object,n),{Provider:o,Consumer:l}}var sue=I.createContext||oue,SD=function(t){var r=sue();return r.displayName=t,r},lue=SD("Router-History"),Dl=SD("Router"),ec=function(e){bo(t,e),t.computeRootMatch=function(i){return{path:"/",url:"/",params:{},isExact:i==="/"}};function t(n){var i;return i=e.call(this,n)||this,i.state={location:n.history.location},i._isMounted=!1,i._pendingLocation=null,n.staticContext||(i.unlisten=n.history.listen(function(o){i._pendingLocation=o})),i}var r=t.prototype;return r.componentDidMount=function(){var i=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(o){i._isMounted&&i.setState({location:o})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return I.createElement(Dl.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},I.createElement(lue.Provider,{children:this.props.children||null,value:this.props.history}))},t}(I.Component);process.env.NODE_ENV!=="production"&&(ec.propTypes={children:Ce.node,history:Ce.object.isRequired,staticContext:Ce.object},ec.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&Xt(e.history===this.props.history,"You cannot change <Router history>")});var ID=function(e){bo(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=e.call.apply(e,[this].concat(o))||this,n.history=Lle(n.props),n}var r=t.prototype;return r.render=function(){return I.createElement(ec,{history:this.history,children:this.props.children})},t}(I.Component);if(process.env.NODE_ENV!=="production"&&(ID.propTypes={initialEntries:Ce.array,initialIndex:Ce.number,getUserConfirmation:Ce.func,keyLength:Ce.number,children:Ce.node},ID.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")}),I.Component,process.env.NODE_ENV!=="production"){var uue=Ce.oneOfType([Ce.func,Ce.string]);Ce.bool,uue.isRequired}process.env.NODE_ENV!=="production"&&(Ce.bool,Ce.string,Ce.oneOfType([Ce.string,Ce.object]).isRequired);var kD={},cue=1e4,OD=0;function due(e,t){var r=""+t.end+t.strict+t.sensitive,n=kD[r]||(kD[r]={});if(n[e])return n[e];var i=[],o=Zle(e,i,t),l={regexp:o,keys:i};return OD<cue&&(n[e]=l,OD++),l}function Pb(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,i=r.exact,o=i===void 0?!1:i,l=r.strict,u=l===void 0?!1:l,c=r.sensitive,f=c===void 0?!1:c,h=[].concat(n);return h.reduce(function(g,v){if(!v&&v!=="")return null;if(g)return g;var m=due(v,{end:o,strict:u,sensitive:f}),w=m.regexp,E=m.keys,S=w.exec(e);if(!S)return null;var x=S[0],O=S.slice(1),P=e===x;return o&&!P?null:{path:v,url:v==="/"&&x===""?"/":x,isExact:P,params:E.reduce(function(T,D,R){return T[D.name]=O[R],T},{})}},null)}function Mb(e){return I.Children.count(e)===0}function TD(e,t,r){var n=e(t);return process.env.NODE_ENV!=="production"&&Xt(n!==void 0,"You returned `undefined` from the `children` function of "+("<Route"+(r?' path="'+r+'"':"")+">, but you ")+"should have returned a React element or `null`"),n||null}var Db=function(e){bo(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var i=this;return I.createElement(Dl.Consumer,null,function(o){o||(process.env.NODE_ENV!=="production"?Mn(!1,"You should not use <Route> outside a <Router>"):Mn(!1));var l=i.props.location||o.location,u=i.props.computedMatch?i.props.computedMatch:i.props.path?Pb(l.pathname,i.props):o.match,c=Pn({},o,{location:l,match:u}),f=i.props,h=f.children,g=f.component,v=f.render;return Array.isArray(h)&&Mb(h)&&(h=null),I.createElement(Dl.Provider,{value:c},c.match?h?typeof h=="function"?process.env.NODE_ENV!=="production"?TD(h,c,i.props.path):h(c):h:g?I.createElement(g,c):v?v(c):null:typeof h=="function"?process.env.NODE_ENV!=="production"?TD(h,c,i.props.path):h(c):null)})},t}(I.Component);process.env.NODE_ENV!=="production"&&(Db.propTypes={children:Ce.oneOfType([Ce.func,Ce.node]),component:function(t,r){if(t[r]&&!Ule.isValidElementType(t[r]))return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component")},exact:Ce.bool,location:Ce.object,path:Ce.oneOfType([Ce.string,Ce.arrayOf(Ce.string)]),render:Ce.func,sensitive:Ce.bool,strict:Ce.bool},Db.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!(this.props.children&&!Mb(this.props.children)&&this.props.component),"You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored"),process.env.NODE_ENV!=="production"&&Xt(!(this.props.children&&!Mb(this.props.children)&&this.props.render),"You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored"),process.env.NODE_ENV!=="production"&&Xt(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored")},Db.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&Xt(!(this.props.location&&!e.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&Xt(!(!this.props.location&&e.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});function Nb(e){return e.charAt(0)==="/"?e:"/"+e}function fue(e,t){return e?Pn({},t,{pathname:Nb(e)+t.pathname}):t}function hue(e,t){if(!e)return t;var r=Nb(e);return t.pathname.indexOf(r)!==0?t:Pn({},t,{pathname:t.pathname.substr(r.length)})}function PD(e){return typeof e=="string"?e:ui(e)}function _b(e){return function(){process.env.NODE_ENV!=="production"?Mn(!1,"You cannot %s with <StaticRouter>"):Mn(!1)}}function MD(){}var DD=function(e){bo(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=e.call.apply(e,[this].concat(o))||this,n.handlePush=function(u){return n.navigateTo(u,"PUSH")},n.handleReplace=function(u){return n.navigateTo(u,"REPLACE")},n.handleListen=function(){return MD},n.handleBlock=function(){return MD},n}var r=t.prototype;return r.navigateTo=function(i,o){var l=this.props,u=l.basename,c=u===void 0?"":u,f=l.context,h=f===void 0?{}:f;h.action=o,h.location=fue(c,Bi(i)),h.url=PD(h.location)},r.render=function(){var i=this.props,o=i.basename,l=o===void 0?"":o,u=i.context,c=u===void 0?{}:u,f=i.location,h=f===void 0?"/":f,g=zf(i,["basename","context","location"]),v={createHref:function(w){return Nb(l+PD(w))},action:"POP",location:hue(l,Bi(h)),push:this.handlePush,replace:this.handleReplace,go:_b(),goBack:_b(),goForward:_b(),listen:this.handleListen,block:this.handleBlock};return I.createElement(ec,Pn({},g,{history:v,staticContext:c}))},t}(I.Component);process.env.NODE_ENV!=="production"&&(DD.propTypes={basename:Ce.string,context:Ce.object,location:Ce.oneOfType([Ce.string,Ce.object])},DD.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")});var ND=function(e){bo(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var i=this;return I.createElement(Dl.Consumer,null,function(o){o||(process.env.NODE_ENV!=="production"?Mn(!1,"You should not use <Switch> outside a <Router>"):Mn(!1));var l=i.props.location||o.location,u,c;return I.Children.forEach(i.props.children,function(f){if(c==null&&I.isValidElement(f)){u=f;var h=f.props.path||f.props.from;c=h?Pb(l.pathname,Pn({},f.props,{path:h})):o.match}}),c?I.cloneElement(u,{location:l,computedMatch:c}):null})},t}(I.Component);process.env.NODE_ENV!=="production"&&(ND.propTypes={children:Ce.node,location:Ce.object},ND.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&Xt(!(this.props.location&&!e.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&Xt(!(!this.props.location&&e.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});var _D=I.useContext;function pue(){return process.env.NODE_ENV!=="production"&&typeof _D!="function"&&(process.env.NODE_ENV!=="production"?Mn(!1,"You must use React >= 16.8 in order to use useLocation()"):Mn(!1)),_D(Dl).location}if(process.env.NODE_ENV!=="production"&&typeof window<"u"){var i2=window,a2="__react_router_build__",LD={cjs:"CommonJS",esm:"ES modules",umd:"UMD"};if(i2[a2]&&i2[a2]!=="esm"){var gue=LD[i2[a2]],vue=LD.esm;throw new Error("You are loading the "+vue+" build of React Router "+("on a page that is already running the "+gue+" ")+"build, so things won't work right.")}i2[a2]="esm"}var RD=function(e){bo(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=e.call.apply(e,[this].concat(o))||this,n.history=Mle(n.props),n}var r=t.prototype;return r.render=function(){return I.createElement(ec,{history:this.history,children:this.props.children})},t}(I.Component);process.env.NODE_ENV!=="production"&&(RD.propTypes={basename:Ce.string,children:Ce.node,forceRefresh:Ce.bool,getUserConfirmation:Ce.func,keyLength:Ce.number},RD.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")});var BD=function(e){bo(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=e.call.apply(e,[this].concat(o))||this,n.history=_le(n.props),n}var r=t.prototype;return r.render=function(){return I.createElement(ec,{history:this.history,children:this.props.children})},t}(I.Component);process.env.NODE_ENV!=="production"&&(BD.propTypes={basename:Ce.string,children:Ce.node,getUserConfirmation:Ce.func,hashType:Ce.oneOf(["hashbang","noslash","slash"])},BD.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")});var Lb=function(t,r){return typeof t=="function"?t(r):t},Rb=function(t,r){return typeof t=="string"?Bi(t,null,null,r):t},Bb=function(t){return t},tc=I.forwardRef;typeof tc>"u"&&(tc=Bb);function mue(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var FD=tc(function(e,t){var r=e.innerRef,n=e.navigate,i=e.onClick,o=zf(e,["innerRef","navigate","onClick"]),l=o.target,u=Pn({},o,{onClick:function(f){try{i&&i(f)}catch(h){throw f.preventDefault(),h}!f.defaultPrevented&&f.button===0&&(!l||l==="_self")&&!mue(f)&&(f.preventDefault(),n())}});return Bb!==tc?u.ref=t||r:u.ref=r,I.createElement("a",u)});process.env.NODE_ENV!=="production"&&(FD.displayName="LinkAnchor");var Nl=tc(function(e,t){var r=e.component,n=r===void 0?FD:r,i=e.replace,o=e.to,l=e.innerRef,u=zf(e,["component","replace","to","innerRef"]);return I.createElement(Dl.Consumer,null,function(c){c||(process.env.NODE_ENV!=="production"?Mn(!1,"You should not use <Link> outside a <Router>"):Mn(!1));var f=c.history,h=Rb(Lb(o,c.location),c.location),g=h?f.createHref(h):"",v=Pn({},u,{href:g,navigate:function(){var w=Lb(o,c.location),E=ui(c.location)===ui(Rb(w)),S=i||E?f.replace:f.push;S(w)}});return Bb!==tc?v.ref=t||l:v.innerRef=l,I.createElement(n,v)})});if(process.env.NODE_ENV!=="production"){var bue=Ce.oneOfType([Ce.string,Ce.object,Ce.func]),yue=Ce.oneOfType([Ce.string,Ce.func,Ce.shape({current:Ce.any})]);Nl.displayName="Link",Nl.propTypes={innerRef:yue,onClick:Ce.func,replace:Ce.bool,target:Ce.string,to:bue.isRequired}}var VD=function(t){return t},o2=I.forwardRef;typeof o2>"u"&&(o2=VD);function wue(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(n){return n}).join(" ")}var Fb=o2(function(e,t){var r=e["aria-current"],n=r===void 0?"page":r,i=e.activeClassName,o=i===void 0?"active":i,l=e.activeStyle,u=e.className,c=e.exact,f=e.isActive,h=e.location,g=e.sensitive,v=e.strict,m=e.style,w=e.to,E=e.innerRef,S=zf(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return I.createElement(Dl.Consumer,null,function(x){x||(process.env.NODE_ENV!=="production"?Mn(!1,"You should not use <NavLink> outside a <Router>"):Mn(!1));var O=h||x.location,P=Rb(Lb(w,O),O),T=P.pathname,D=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),R=D?Pb(O.pathname,{path:D,exact:c,sensitive:g,strict:v}):null,F=!!(f?f(R,O):R),W=typeof u=="function"?u(F):u,z=typeof m=="function"?m(F):m;F&&(W=wue(W,o),z=Pn({},z,l));var J=Pn({"aria-current":F&&n||null,className:W,style:z,to:P},S);return VD!==o2?J.ref=t||E:J.innerRef=E,I.createElement(Nl,J)})});if(process.env.NODE_ENV!=="production"){Fb.displayName="NavLink";var Aue=Ce.oneOf(["page","step","location","date","time","true","false"]);Fb.propTypes=Pn({},Nl.propTypes,{"aria-current":Aue,activeClassName:Ce.string,activeStyle:Ce.object,className:Ce.oneOfType([Ce.string,Ce.func]),exact:Ce.bool,isActive:Ce.func,location:Ce.object,sensitive:Ce.bool,strict:Ce.bool,style:Ce.oneOfType([Ce.object,Ce.func])})}const Cue=ae(Fb)`
1624
+ `,yle=({tabDefinition:e,value:t,isActive:r,onTabSwitch:n})=>{const{icon:i,label:o,badgeCount:l,disabled:u}=e,c=I.useCallback(()=>{n(t)},[n,t]);return b.jsx(gle,{children:b.jsxs(mle,{onClick:u?void 0:c,active:r,children:[i&&b.jsx(ple,{children:b.jsx(ur,{icon:i})}),b.jsx(T4,{children:o}),r&&l&&l>0&&b.jsx(vle,{children:b.jsx(T4,{variant:"medium",children:l})})]})})},wle=({tabsDefinition:e,activeTab:t,onTabSwitch:r,mb:n})=>b.jsx(ble,{$mb:n,children:e.map((i,o)=>b.jsx(yle,{value:o,tabDefinition:i,isActive:o===t,onTabSwitch:r},o))}),Ale=({activeTab:e,value:t,children:r})=>e===t?r:null,Cle=e=>{const t=e.map(l=>l.default).indexOf(!0),r=t===-1?0:t,[n,i]=I.useState(r),o=I.useCallback(l=>{i(l)},[]);return{activeTab:n,onTabSwitch:o}};function yb(e,t){return yb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yb(e,t)}function bo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yb(e,t)}function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pn.apply(this,arguments)}function e2(e){return e.charAt(0)==="/"}function wb(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}function xle(e,t){t===void 0&&(t="");var r=e&&e.split("/")||[],n=t&&t.split("/")||[],i=e&&e2(e),o=t&&e2(t),l=i||o;if(e&&e2(e)?n=r:r.length&&(n.pop(),n=n.concat(r)),!n.length)return"/";var u;if(n.length){var c=n[n.length-1];u=c==="."||c===".."||c===""}else u=!1;for(var f=0,h=n.length;h>=0;h--){var g=n[h];g==="."?wb(n,h):g===".."?(wb(n,h),f++):f&&(wb(n,h),f--)}if(!l)for(;f--;f)n.unshift("..");l&&n[0]!==""&&(!n[0]||!e2(n[0]))&&n.unshift("");var v=n.join("/");return u&&v.substr(-1)!=="/"&&(v+="/"),v}var Ele=process.env.NODE_ENV==="production";function Xt(e,t){if(!Ele){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var Sle=process.env.NODE_ENV==="production",Ab="Invariant failed";function Mn(e,t){if(!e){if(Sle)throw new Error(Ab);var r=typeof t=="function"?t():t,n=r?"".concat(Ab,": ").concat(r):Ab;throw new Error(n)}}function Hf(e){return e.charAt(0)==="/"?e:"/"+e}function iD(e){return e.charAt(0)==="/"?e.substr(1):e}function Cb(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function aD(e,t){return Cb(e,t)?e.substr(t.length):e}function oD(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function Ile(e){var t=e||"/",r="",n="",i=t.indexOf("#");i!==-1&&(n=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return o!==-1&&(r=t.substr(o),t=t.substr(0,o)),{pathname:t,search:r==="?"?"":r,hash:n==="#"?"":n}}function ui(e){var t=e.pathname,r=e.search,n=e.hash,i=t||"/";return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(i+=n.charAt(0)==="#"?n:"#"+n),i}function Bi(e,t,r,n){var i;typeof e=="string"?(i=Ile(e),i.state=t):(i=Pn({},e),i.pathname===void 0&&(i.pathname=""),i.search?i.search.charAt(0)!=="?"&&(i.search="?"+i.search):i.search="",i.hash?i.hash.charAt(0)!=="#"&&(i.hash="#"+i.hash):i.hash="",t!==void 0&&i.state===void 0&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(o){throw o instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):o}return r&&(i.key=r),n?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=xle(i.pathname,n.pathname)):i.pathname=n.pathname:i.pathname||(i.pathname="/"),i}function xb(){var e=null;function t(l){return process.env.NODE_ENV!=="production"&&Xt(e==null,"A history supports only one prompt at a time"),e=l,function(){e===l&&(e=null)}}function r(l,u,c,f){if(e!=null){var h=typeof e=="function"?e(l,u):e;typeof h=="string"?typeof c=="function"?c(h,f):(process.env.NODE_ENV!=="production"&&Xt(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),f(!0)):f(h!==!1)}else f(!0)}var n=[];function i(l){var u=!0;function c(){u&&l.apply(void 0,arguments)}return n.push(c),function(){u=!1,n=n.filter(function(f){return f!==c})}}function o(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];n.forEach(function(f){return f.apply(void 0,u)})}return{setPrompt:t,confirmTransitionTo:r,appendListener:i,notifyListeners:o}}var sD=!!(typeof window<"u"&&window.document&&window.document.createElement);function lD(e,t){t(window.confirm(e))}function kle(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function Ole(){return window.navigator.userAgent.indexOf("Trident")===-1}function Tle(){return window.navigator.userAgent.indexOf("Firefox")===-1}function Ple(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var uD="popstate",cD="hashchange";function dD(){try{return window.history.state||{}}catch{return{}}}function Mle(e){e===void 0&&(e={}),sD||(process.env.NODE_ENV!=="production"?Mn(!1,"Browser history needs a DOM"):Mn(!1));var t=window.history,r=kle(),n=!Ole(),i=e,o=i.forceRefresh,l=o===void 0?!1:o,u=i.getUserConfirmation,c=u===void 0?lD:u,f=i.keyLength,h=f===void 0?6:f,g=e.basename?oD(Hf(e.basename)):"";function v(fe){var Y=fe||{},Q=Y.key,oe=Y.state,le=window.location,pe=le.pathname,re=le.search,K=le.hash,ne=pe+re+K;return process.env.NODE_ENV!=="production"&&Xt(!g||Cb(ne,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+ne+'" to begin with "'+g+'".'),g&&(ne=aD(ne,g)),Bi(ne,oe,Q)}function m(){return Math.random().toString(36).substr(2,h)}var w=xb();function E(fe){Pn(Ae,fe),Ae.length=t.length,w.notifyListeners(Ae.location,Ae.action)}function S(fe){Ple(fe)||P(v(fe.state))}function x(){P(v(dD()))}var O=!1;function P(fe){if(O)O=!1,E();else{var Y="POP";w.confirmTransitionTo(fe,Y,c,function(Q){Q?E({action:Y,location:fe}):T(fe)})}}function T(fe){var Y=Ae.location,Q=R.indexOf(Y.key);Q===-1&&(Q=0);var oe=R.indexOf(fe.key);oe===-1&&(oe=0);var le=Q-oe;le&&(O=!0,J(le))}var D=v(dD()),R=[D.key];function F(fe){return g+ui(fe)}function W(fe,Y){process.env.NODE_ENV!=="production"&&Xt(!(typeof fe=="object"&&fe.state!==void 0&&Y!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var Q="PUSH",oe=Bi(fe,Y,m(),Ae.location);w.confirmTransitionTo(oe,Q,c,function(le){if(le){var pe=F(oe),re=oe.key,K=oe.state;if(r)if(t.pushState({key:re,state:K},null,pe),l)window.location.href=pe;else{var ne=R.indexOf(Ae.location.key),de=R.slice(0,ne+1);de.push(oe.key),R=de,E({action:Q,location:oe})}else process.env.NODE_ENV!=="production"&&Xt(K===void 0,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=pe}})}function z(fe,Y){process.env.NODE_ENV!=="production"&&Xt(!(typeof fe=="object"&&fe.state!==void 0&&Y!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var Q="REPLACE",oe=Bi(fe,Y,m(),Ae.location);w.confirmTransitionTo(oe,Q,c,function(le){if(le){var pe=F(oe),re=oe.key,K=oe.state;if(r)if(t.replaceState({key:re,state:K},null,pe),l)window.location.replace(pe);else{var ne=R.indexOf(Ae.location.key);ne!==-1&&(R[ne]=oe.key),E({action:Q,location:oe})}else process.env.NODE_ENV!=="production"&&Xt(K===void 0,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(pe)}})}function J(fe){t.go(fe)}function B(){J(-1)}function j(){J(1)}var V=0;function te(fe){V+=fe,V===1&&fe===1?(window.addEventListener(uD,S),n&&window.addEventListener(cD,x)):V===0&&(window.removeEventListener(uD,S),n&&window.removeEventListener(cD,x))}var U=!1;function ie(fe){fe===void 0&&(fe=!1);var Y=w.setPrompt(fe);return U||(te(1),U=!0),function(){return U&&(U=!1,te(-1)),Y()}}function ge(fe){var Y=w.appendListener(fe);return te(1),function(){te(-1),Y()}}var Ae={length:t.length,action:"POP",location:D,createHref:F,push:W,replace:z,go:J,goBack:B,goForward:j,block:ie,listen:ge};return Ae}var fD="hashchange",Dle={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+iD(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:iD,decodePath:Hf},slash:{encodePath:Hf,decodePath:Hf}};function hD(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function Gf(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function Nle(e){window.location.hash=e}function Eb(e){window.location.replace(hD(window.location.href)+"#"+e)}function _le(e){e===void 0&&(e={}),sD||(process.env.NODE_ENV!=="production"?Mn(!1,"Hash history needs a DOM"):Mn(!1));var t=window.history,r=Tle(),n=e,i=n.getUserConfirmation,o=i===void 0?lD:i,l=n.hashType,u=l===void 0?"slash":l,c=e.basename?oD(Hf(e.basename)):"",f=Dle[u],h=f.encodePath,g=f.decodePath;function v(){var Q=g(Gf());return process.env.NODE_ENV!=="production"&&Xt(!c||Cb(Q,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+Q+'" to begin with "'+c+'".'),c&&(Q=aD(Q,c)),Bi(Q)}var m=xb();function w(Q){Pn(Y,Q),Y.length=t.length,m.notifyListeners(Y.location,Y.action)}var E=!1,S=null;function x(Q,oe){return Q.pathname===oe.pathname&&Q.search===oe.search&&Q.hash===oe.hash}function O(){var Q=Gf(),oe=h(Q);if(Q!==oe)Eb(oe);else{var le=v(),pe=Y.location;if(!E&&x(pe,le)||S===ui(le))return;S=null,P(le)}}function P(Q){if(E)E=!1,w();else{var oe="POP";m.confirmTransitionTo(Q,oe,o,function(le){le?w({action:oe,location:Q}):T(Q)})}}function T(Q){var oe=Y.location,le=W.lastIndexOf(ui(oe));le===-1&&(le=0);var pe=W.lastIndexOf(ui(Q));pe===-1&&(pe=0);var re=le-pe;re&&(E=!0,j(re))}var D=Gf(),R=h(D);D!==R&&Eb(R);var F=v(),W=[ui(F)];function z(Q){var oe=document.querySelector("base"),le="";return oe&&oe.getAttribute("href")&&(le=hD(window.location.href)),le+"#"+h(c+ui(Q))}function J(Q,oe){process.env.NODE_ENV!=="production"&&Xt(oe===void 0,"Hash history cannot push state; it is ignored");var le="PUSH",pe=Bi(Q,void 0,void 0,Y.location);m.confirmTransitionTo(pe,le,o,function(re){if(re){var K=ui(pe),ne=h(c+K),de=Gf()!==ne;if(de){S=K,Nle(ne);var ve=W.lastIndexOf(ui(Y.location)),Te=W.slice(0,ve+1);Te.push(K),W=Te,w({action:le,location:pe})}else process.env.NODE_ENV!=="production"&&Xt(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),w()}})}function B(Q,oe){process.env.NODE_ENV!=="production"&&Xt(oe===void 0,"Hash history cannot replace state; it is ignored");var le="REPLACE",pe=Bi(Q,void 0,void 0,Y.location);m.confirmTransitionTo(pe,le,o,function(re){if(re){var K=ui(pe),ne=h(c+K),de=Gf()!==ne;de&&(S=K,Eb(ne));var ve=W.indexOf(ui(Y.location));ve!==-1&&(W[ve]=K),w({action:le,location:pe})}})}function j(Q){process.env.NODE_ENV!=="production"&&Xt(r,"Hash history go(n) causes a full page reload in this browser"),t.go(Q)}function V(){j(-1)}function te(){j(1)}var U=0;function ie(Q){U+=Q,U===1&&Q===1?window.addEventListener(fD,O):U===0&&window.removeEventListener(fD,O)}var ge=!1;function Ae(Q){Q===void 0&&(Q=!1);var oe=m.setPrompt(Q);return ge||(ie(1),ge=!0),function(){return ge&&(ge=!1,ie(-1)),oe()}}function fe(Q){var oe=m.appendListener(Q);return ie(1),function(){ie(-1),oe()}}var Y={length:t.length,action:"POP",location:F,createHref:z,push:J,replace:B,go:j,goBack:V,goForward:te,block:Ae,listen:fe};return Y}function pD(e,t,r){return Math.min(Math.max(e,t),r)}function Lle(e){e===void 0&&(e={});var t=e,r=t.getUserConfirmation,n=t.initialEntries,i=n===void 0?["/"]:n,o=t.initialIndex,l=o===void 0?0:o,u=t.keyLength,c=u===void 0?6:u,f=xb();function h(W){Pn(F,W),F.length=F.entries.length,f.notifyListeners(F.location,F.action)}function g(){return Math.random().toString(36).substr(2,c)}var v=pD(l,0,i.length-1),m=i.map(function(W){return typeof W=="string"?Bi(W,void 0,g()):Bi(W,void 0,W.key||g())}),w=ui;function E(W,z){process.env.NODE_ENV!=="production"&&Xt(!(typeof W=="object"&&W.state!==void 0&&z!==void 0),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var J="PUSH",B=Bi(W,z,g(),F.location);f.confirmTransitionTo(B,J,r,function(j){if(j){var V=F.index,te=V+1,U=F.entries.slice(0);U.length>te?U.splice(te,U.length-te,B):U.push(B),h({action:J,location:B,index:te,entries:U})}})}function S(W,z){process.env.NODE_ENV!=="production"&&Xt(!(typeof W=="object"&&W.state!==void 0&&z!==void 0),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var J="REPLACE",B=Bi(W,z,g(),F.location);f.confirmTransitionTo(B,J,r,function(j){j&&(F.entries[F.index]=B,h({action:J,location:B}))})}function x(W){var z=pD(F.index+W,0,F.entries.length-1),J="POP",B=F.entries[z];f.confirmTransitionTo(B,J,r,function(j){j?h({action:J,location:B,index:z}):h()})}function O(){x(-1)}function P(){x(1)}function T(W){var z=F.index+W;return z>=0&&z<F.entries.length}function D(W){return W===void 0&&(W=!1),f.setPrompt(W)}function R(W){return f.appendListener(W)}var F={length:m.length,action:"POP",location:m[v],index:v,entries:m,createHref:w,push:E,replace:S,go:x,goBack:O,goForward:P,canGo:T,block:D,listen:R};return F}var $u={exports:{}},Rle=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},t2=Rle;$u.exports=mD,$u.exports.parse=Sb,$u.exports.compile=Fle,$u.exports.tokensToFunction=gD,$u.exports.tokensToRegExp=vD;var Ble=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Sb(e,t){for(var r=[],n=0,i=0,o="",l=t&&t.delimiter||"/",u;(u=Ble.exec(e))!=null;){var c=u[0],f=u[1],h=u.index;if(o+=e.slice(i,h),i=h+c.length,f){o+=f[1];continue}var g=e[i],v=u[2],m=u[3],w=u[4],E=u[5],S=u[6],x=u[7];o&&(r.push(o),o="");var O=v!=null&&g!=null&&g!==v,P=S==="+"||S==="*",T=S==="?"||S==="*",D=u[2]||l,R=w||E;r.push({name:m||n++,prefix:v||"",delimiter:D,optional:T,repeat:P,partial:O,asterisk:!!x,pattern:R?Wle(R):x?".*":"[^"+r2(D)+"]+?"})}return i<e.length&&(o+=e.substr(i)),o&&r.push(o),r}function Fle(e,t){return gD(Sb(e,t),t)}function Vle(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function jle(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function gD(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)typeof e[n]=="object"&&(r[n]=new RegExp("^(?:"+e[n].pattern+")$",kb(t)));return function(i,o){for(var l="",u=i||{},c=o||{},f=c.pretty?Vle:encodeURIComponent,h=0;h<e.length;h++){var g=e[h];if(typeof g=="string"){l+=g;continue}var v=u[g.name],m;if(v==null)if(g.optional){g.partial&&(l+=g.prefix);continue}else throw new TypeError('Expected "'+g.name+'" to be defined');if(t2(v)){if(!g.repeat)throw new TypeError('Expected "'+g.name+'" to not repeat, but received `'+JSON.stringify(v)+"`");if(v.length===0){if(g.optional)continue;throw new TypeError('Expected "'+g.name+'" to not be empty')}for(var w=0;w<v.length;w++){if(m=f(v[w]),!r[h].test(m))throw new TypeError('Expected all "'+g.name+'" to match "'+g.pattern+'", but received `'+JSON.stringify(m)+"`");l+=(w===0?g.prefix:g.delimiter)+m}continue}if(m=g.asterisk?jle(v):f(v),!r[h].test(m))throw new TypeError('Expected "'+g.name+'" to match "'+g.pattern+'", but received "'+m+'"');l+=g.prefix+m}return l}}function r2(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Wle(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Ib(e,t){return e.keys=t,e}function kb(e){return e&&e.sensitive?"":"i"}function Hle(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)t.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Ib(e,t)}function Gle(e,t,r){for(var n=[],i=0;i<e.length;i++)n.push(mD(e[i],t,r).source);var o=new RegExp("(?:"+n.join("|")+")",kb(r));return Ib(o,t)}function zle(e,t,r){return vD(Sb(e,r),t,r)}function vD(e,t,r){t2(t)||(r=t||r,t=[]),r=r||{};for(var n=r.strict,i=r.end!==!1,o="",l=0;l<e.length;l++){var u=e[l];if(typeof u=="string")o+=r2(u);else{var c=r2(u.prefix),f="(?:"+u.pattern+")";t.push(u),u.repeat&&(f+="(?:"+c+f+")*"),u.optional?u.partial?f=c+"("+f+")?":f="(?:"+c+"("+f+"))?":f=c+"("+f+")",o+=f}}var h=r2(r.delimiter||"/"),g=o.slice(-h.length)===h;return n||(o=(g?o.slice(0,-h.length):o)+"(?:"+h+"(?=$))?"),i?o+="$":o+=n&&g?"":"(?="+h+"|$)",Ib(new RegExp("^"+o,kb(r)),t)}function mD(e,t,r){return t2(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?Hle(e,t):t2(e)?Gle(e,t,r):zle(e,t,r)}var Yle=$u.exports;const Zle=_a(Yle);var Ule=kp();function zf(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var Ob=kp(),Jle={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xle={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},qle={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tb={};Tb[Ob.ForwardRef]=qle,Tb[Ob.Memo]=bD;function yD(e){return Ob.isMemo(e)?bD:Tb[e.$$typeof]||Jle}var Qle=Object.defineProperty,Kle=Object.getOwnPropertyNames,wD=Object.getOwnPropertySymbols,$le=Object.getOwnPropertyDescriptor,eue=Object.getPrototypeOf,AD=Object.prototype;function CD(e,t,r){if(typeof t!="string"){if(AD){var n=eue(t);n&&n!==AD&&CD(e,n,r)}var i=Kle(t);wD&&(i=i.concat(wD(t)));for(var o=yD(e),l=yD(t),u=0;u<i.length;++u){var c=i[u];if(!Xle[c]&&!(r&&r[c])&&!(l&&l[c])&&!(o&&o[c])){var f=$le(t,c);try{Qle(e,c,f)}catch{}}}}return e}var tue=CD;const xD=_a(tue);var n2=1073741823,ED=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function rue(){var e="__global_unique_id__";return ED[e]=(ED[e]||0)+1}function nue(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function iue(e){var t=[];return{on:function(n){t.push(n)},off:function(n){t=t.filter(function(i){return i!==n})},get:function(){return e},set:function(n,i){e=n,t.forEach(function(o){return o(e,i)})}}}function aue(e){return Array.isArray(e)?e[0]:e}function oue(e,t){var r,n,i="__create-react-context-"+rue()+"__",o=function(u){bo(c,u);function c(){for(var h,g=arguments.length,v=new Array(g),m=0;m<g;m++)v[m]=arguments[m];return h=u.call.apply(u,[this].concat(v))||this,h.emitter=iue(h.props.value),h}var f=c.prototype;return f.getChildContext=function(){var g;return g={},g[i]=this.emitter,g},f.componentWillReceiveProps=function(g){if(this.props.value!==g.value){var v=this.props.value,m=g.value,w;nue(v,m)?w=0:(w=typeof t=="function"?t(v,m):n2,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&Xt((w&n2)===w,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: "+w),w|=0,w!==0&&this.emitter.set(g.value,w))}},f.render=function(){return this.props.children},c}(I.Component);o.childContextTypes=(r={},r[i]=Ce.object.isRequired,r);var l=function(u){bo(c,u);function c(){for(var h,g=arguments.length,v=new Array(g),m=0;m<g;m++)v[m]=arguments[m];return h=u.call.apply(u,[this].concat(v))||this,h.observedBits=void 0,h.state={value:h.getValue()},h.onUpdate=function(w,E){var S=h.observedBits|0;S&E&&h.setState({value:h.getValue()})},h}var f=c.prototype;return f.componentWillReceiveProps=function(g){var v=g.observedBits;this.observedBits=v??n2},f.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var g=this.props.observedBits;this.observedBits=g??n2},f.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},f.getValue=function(){return this.context[i]?this.context[i].get():e},f.render=function(){return aue(this.props.children)(this.state.value)},c}(I.Component);return l.contextTypes=(n={},n[i]=Ce.object,n),{Provider:o,Consumer:l}}var sue=I.createContext||oue,SD=function(t){var r=sue();return r.displayName=t,r},lue=SD("Router-History"),Dl=SD("Router"),ec=function(e){bo(t,e),t.computeRootMatch=function(i){return{path:"/",url:"/",params:{},isExact:i==="/"}};function t(n){var i;return i=e.call(this,n)||this,i.state={location:n.history.location},i._isMounted=!1,i._pendingLocation=null,n.staticContext||(i.unlisten=n.history.listen(function(o){i._pendingLocation=o})),i}var r=t.prototype;return r.componentDidMount=function(){var i=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(o){i._isMounted&&i.setState({location:o})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return I.createElement(Dl.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},I.createElement(lue.Provider,{children:this.props.children||null,value:this.props.history}))},t}(I.Component);process.env.NODE_ENV!=="production"&&(ec.propTypes={children:Ce.node,history:Ce.object.isRequired,staticContext:Ce.object},ec.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&Xt(e.history===this.props.history,"You cannot change <Router history>")});var ID=function(e){bo(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=e.call.apply(e,[this].concat(o))||this,n.history=Lle(n.props),n}var r=t.prototype;return r.render=function(){return I.createElement(ec,{history:this.history,children:this.props.children})},t}(I.Component);if(process.env.NODE_ENV!=="production"&&(ID.propTypes={initialEntries:Ce.array,initialIndex:Ce.number,getUserConfirmation:Ce.func,keyLength:Ce.number,children:Ce.node},ID.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")}),I.Component,process.env.NODE_ENV!=="production"){var uue=Ce.oneOfType([Ce.func,Ce.string]);Ce.bool,uue.isRequired}process.env.NODE_ENV!=="production"&&(Ce.bool,Ce.string,Ce.oneOfType([Ce.string,Ce.object]).isRequired);var kD={},cue=1e4,OD=0;function due(e,t){var r=""+t.end+t.strict+t.sensitive,n=kD[r]||(kD[r]={});if(n[e])return n[e];var i=[],o=Zle(e,i,t),l={regexp:o,keys:i};return OD<cue&&(n[e]=l,OD++),l}function Pb(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,i=r.exact,o=i===void 0?!1:i,l=r.strict,u=l===void 0?!1:l,c=r.sensitive,f=c===void 0?!1:c,h=[].concat(n);return h.reduce(function(g,v){if(!v&&v!=="")return null;if(g)return g;var m=due(v,{end:o,strict:u,sensitive:f}),w=m.regexp,E=m.keys,S=w.exec(e);if(!S)return null;var x=S[0],O=S.slice(1),P=e===x;return o&&!P?null:{path:v,url:v==="/"&&x===""?"/":x,isExact:P,params:E.reduce(function(T,D,R){return T[D.name]=O[R],T},{})}},null)}function Mb(e){return I.Children.count(e)===0}function TD(e,t,r){var n=e(t);return process.env.NODE_ENV!=="production"&&Xt(n!==void 0,"You returned `undefined` from the `children` function of "+("<Route"+(r?' path="'+r+'"':"")+">, but you ")+"should have returned a React element or `null`"),n||null}var Db=function(e){bo(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var i=this;return I.createElement(Dl.Consumer,null,function(o){o||(process.env.NODE_ENV!=="production"?Mn(!1,"You should not use <Route> outside a <Router>"):Mn(!1));var l=i.props.location||o.location,u=i.props.computedMatch?i.props.computedMatch:i.props.path?Pb(l.pathname,i.props):o.match,c=Pn({},o,{location:l,match:u}),f=i.props,h=f.children,g=f.component,v=f.render;return Array.isArray(h)&&Mb(h)&&(h=null),I.createElement(Dl.Provider,{value:c},c.match?h?typeof h=="function"?process.env.NODE_ENV!=="production"?TD(h,c,i.props.path):h(c):h:g?I.createElement(g,c):v?v(c):null:typeof h=="function"?process.env.NODE_ENV!=="production"?TD(h,c,i.props.path):h(c):null)})},t}(I.Component);process.env.NODE_ENV!=="production"&&(Db.propTypes={children:Ce.oneOfType([Ce.func,Ce.node]),component:function(t,r){if(t[r]&&!Ule.isValidElementType(t[r]))return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component")},exact:Ce.bool,location:Ce.object,path:Ce.oneOfType([Ce.string,Ce.arrayOf(Ce.string)]),render:Ce.func,sensitive:Ce.bool,strict:Ce.bool},Db.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!(this.props.children&&!Mb(this.props.children)&&this.props.component),"You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored"),process.env.NODE_ENV!=="production"&&Xt(!(this.props.children&&!Mb(this.props.children)&&this.props.render),"You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored"),process.env.NODE_ENV!=="production"&&Xt(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored")},Db.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&Xt(!(this.props.location&&!e.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&Xt(!(!this.props.location&&e.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});function Nb(e){return e.charAt(0)==="/"?e:"/"+e}function fue(e,t){return e?Pn({},t,{pathname:Nb(e)+t.pathname}):t}function hue(e,t){if(!e)return t;var r=Nb(e);return t.pathname.indexOf(r)!==0?t:Pn({},t,{pathname:t.pathname.substr(r.length)})}function PD(e){return typeof e=="string"?e:ui(e)}function _b(e){return function(){process.env.NODE_ENV!=="production"?Mn(!1,"You cannot %s with <StaticRouter>"):Mn(!1)}}function MD(){}var DD=function(e){bo(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=e.call.apply(e,[this].concat(o))||this,n.handlePush=function(u){return n.navigateTo(u,"PUSH")},n.handleReplace=function(u){return n.navigateTo(u,"REPLACE")},n.handleListen=function(){return MD},n.handleBlock=function(){return MD},n}var r=t.prototype;return r.navigateTo=function(i,o){var l=this.props,u=l.basename,c=u===void 0?"":u,f=l.context,h=f===void 0?{}:f;h.action=o,h.location=fue(c,Bi(i)),h.url=PD(h.location)},r.render=function(){var i=this.props,o=i.basename,l=o===void 0?"":o,u=i.context,c=u===void 0?{}:u,f=i.location,h=f===void 0?"/":f,g=zf(i,["basename","context","location"]),v={createHref:function(w){return Nb(l+PD(w))},action:"POP",location:hue(l,Bi(h)),push:this.handlePush,replace:this.handleReplace,go:_b(),goBack:_b(),goForward:_b(),listen:this.handleListen,block:this.handleBlock};return I.createElement(ec,Pn({},g,{history:v,staticContext:c}))},t}(I.Component);process.env.NODE_ENV!=="production"&&(DD.propTypes={basename:Ce.string,context:Ce.object,location:Ce.oneOfType([Ce.string,Ce.object])},DD.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")});var ND=function(e){bo(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var i=this;return I.createElement(Dl.Consumer,null,function(o){o||(process.env.NODE_ENV!=="production"?Mn(!1,"You should not use <Switch> outside a <Router>"):Mn(!1));var l=i.props.location||o.location,u,c;return I.Children.forEach(i.props.children,function(f){if(c==null&&I.isValidElement(f)){u=f;var h=f.props.path||f.props.from;c=h?Pb(l.pathname,Pn({},f.props,{path:h})):o.match}}),c?I.cloneElement(u,{location:l,computedMatch:c}):null})},t}(I.Component);process.env.NODE_ENV!=="production"&&(ND.propTypes={children:Ce.node,location:Ce.object},ND.prototype.componentDidUpdate=function(e){process.env.NODE_ENV!=="production"&&Xt(!(this.props.location&&!e.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),process.env.NODE_ENV!=="production"&&Xt(!(!this.props.location&&e.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')});var _D=I.useContext;function pue(){return process.env.NODE_ENV!=="production"&&typeof _D!="function"&&(process.env.NODE_ENV!=="production"?Mn(!1,"You must use React >= 16.8 in order to use useLocation()"):Mn(!1)),_D(Dl).location}if(process.env.NODE_ENV!=="production"&&typeof window<"u"){var i2=window,a2="__react_router_build__",LD={cjs:"CommonJS",esm:"ES modules",umd:"UMD"};if(i2[a2]&&i2[a2]!=="esm"){var gue=LD[i2[a2]],vue=LD.esm;throw new Error("You are loading the "+vue+" build of React Router "+("on a page that is already running the "+gue+" ")+"build, so things won't work right.")}i2[a2]="esm"}var RD=function(e){bo(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=e.call.apply(e,[this].concat(o))||this,n.history=Mle(n.props),n}var r=t.prototype;return r.render=function(){return I.createElement(ec,{history:this.history,children:this.props.children})},t}(I.Component);process.env.NODE_ENV!=="production"&&(RD.propTypes={basename:Ce.string,children:Ce.node,forceRefresh:Ce.bool,getUserConfirmation:Ce.func,keyLength:Ce.number},RD.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")});var BD=function(e){bo(t,e);function t(){for(var n,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return n=e.call.apply(e,[this].concat(o))||this,n.history=_le(n.props),n}var r=t.prototype;return r.render=function(){return I.createElement(ec,{history:this.history,children:this.props.children})},t}(I.Component);process.env.NODE_ENV!=="production"&&(BD.propTypes={basename:Ce.string,children:Ce.node,getUserConfirmation:Ce.func,hashType:Ce.oneOf(["hashbang","noslash","slash"])},BD.prototype.componentDidMount=function(){process.env.NODE_ENV!=="production"&&Xt(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")});var Lb=function(t,r){return typeof t=="function"?t(r):t},Rb=function(t,r){return typeof t=="string"?Bi(t,null,null,r):t},Bb=function(t){return t},tc=I.forwardRef;typeof tc>"u"&&(tc=Bb);function mue(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var FD=tc(function(e,t){var r=e.innerRef,n=e.navigate,i=e.onClick,o=zf(e,["innerRef","navigate","onClick"]),l=o.target,u=Pn({},o,{onClick:function(f){try{i&&i(f)}catch(h){throw f.preventDefault(),h}!f.defaultPrevented&&f.button===0&&(!l||l==="_self")&&!mue(f)&&(f.preventDefault(),n())}});return Bb!==tc?u.ref=t||r:u.ref=r,I.createElement("a",u)});process.env.NODE_ENV!=="production"&&(FD.displayName="LinkAnchor");var Nl=tc(function(e,t){var r=e.component,n=r===void 0?FD:r,i=e.replace,o=e.to,l=e.innerRef,u=zf(e,["component","replace","to","innerRef"]);return I.createElement(Dl.Consumer,null,function(c){c||(process.env.NODE_ENV!=="production"?Mn(!1,"You should not use <Link> outside a <Router>"):Mn(!1));var f=c.history,h=Rb(Lb(o,c.location),c.location),g=h?f.createHref(h):"",v=Pn({},u,{href:g,navigate:function(){var w=Lb(o,c.location),E=ui(c.location)===ui(Rb(w)),S=i||E?f.replace:f.push;S(w)}});return Bb!==tc?v.ref=t||l:v.innerRef=l,I.createElement(n,v)})});if(process.env.NODE_ENV!=="production"){var bue=Ce.oneOfType([Ce.string,Ce.object,Ce.func]),yue=Ce.oneOfType([Ce.string,Ce.func,Ce.shape({current:Ce.any})]);Nl.displayName="Link",Nl.propTypes={innerRef:yue,onClick:Ce.func,replace:Ce.bool,target:Ce.string,to:bue.isRequired}}var VD=function(t){return t},o2=I.forwardRef;typeof o2>"u"&&(o2=VD);function wue(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(n){return n}).join(" ")}var Fb=o2(function(e,t){var r=e["aria-current"],n=r===void 0?"page":r,i=e.activeClassName,o=i===void 0?"active":i,l=e.activeStyle,u=e.className,c=e.exact,f=e.isActive,h=e.location,g=e.sensitive,v=e.strict,m=e.style,w=e.to,E=e.innerRef,S=zf(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return I.createElement(Dl.Consumer,null,function(x){x||(process.env.NODE_ENV!=="production"?Mn(!1,"You should not use <NavLink> outside a <Router>"):Mn(!1));var O=h||x.location,P=Rb(Lb(w,O),O),T=P.pathname,D=T&&T.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),R=D?Pb(O.pathname,{path:D,exact:c,sensitive:g,strict:v}):null,F=!!(f?f(R,O):R),W=typeof u=="function"?u(F):u,z=typeof m=="function"?m(F):m;F&&(W=wue(W,o),z=Pn({},z,l));var J=Pn({"aria-current":F&&n||null,className:W,style:z,to:P},S);return VD!==o2?J.ref=t||E:J.innerRef=E,I.createElement(Nl,J)})});if(process.env.NODE_ENV!=="production"){Fb.displayName="NavLink";var Aue=Ce.oneOf(["page","step","location","date","time","true","false"]);Fb.propTypes=Pn({},Nl.propTypes,{"aria-current":Aue,activeClassName:Ce.string,activeStyle:Ce.object,className:Ce.oneOfType([Ce.string,Ce.func]),exact:Ce.bool,isActive:Ce.func,location:Ce.object,sensitive:Ce.bool,strict:Ce.bool,style:Ce.oneOfType([Ce.object,Ce.func])})}const Cue=ae(Fb)`
1625
1625
  color: ${({color:e})=>Fa(e,.7)};
1626
1626
  cursor: pointer;
1627
1627
  :visited {