function tr(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const n in o)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(o,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>o[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var On=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ce(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sn(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),r}var bt={exports:{}},x={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var rt=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,nr=Object.prototype.propertyIsEnumerable;function or(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ir(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var o=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(i){n[i]=i}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Ot=ir()?Object.assign:function(e,t){for(var r,o=or(e),n,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var c in r)rr.call(r,c)&&(o[c]=r[c]);if(rt){n=rt(r);for(var a=0;a<n.length;a++)nr.call(r,n[a])&&(o[n[a]]=r[n[a]])}}return o};const _n=ce(Ot);/** @license React v16.14.0
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ne=Ot,K=typeof Symbol=="function"&&Symbol.for,se=K?Symbol.for("react.element"):60103,ar=K?Symbol.for("react.portal"):60106,ur=K?Symbol.for("react.fragment"):60107,cr=K?Symbol.for("react.strict_mode"):60108,sr=K?Symbol.for("react.profiler"):60114,fr=K?Symbol.for("react.provider"):60109,lr=K?Symbol.for("react.context"):60110,pr=K?Symbol.for("react.forward_ref"):60112,hr=K?Symbol.for("react.suspense"):60113,dr=K?Symbol.for("react.memo"):60115,vr=K?Symbol.for("react.lazy"):60116,nt=typeof Symbol=="function"&&Symbol.iterator;function fe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var St={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_t={};function oe(e,t,r){this.props=e,this.context=t,this.refs=_t,this.updater=r||St}oe.prototype.isReactComponent={};oe.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(fe(85));this.updater.enqueueSetState(this,e,t,"setState")};oe.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Et(){}Et.prototype=oe.prototype;function Fe(e,t,r){this.props=e,this.context=t,this.refs=_t,this.updater=r||St}var ke=Fe.prototype=new Et;ke.constructor=Fe;Ne(ke,oe.prototype);ke.isPureReactComponent=!0;var Be={current:null},$t=Object.prototype.hasOwnProperty,Tt={key:!0,ref:!0,__self:!0,__source:!0};function Ct(e,t,r){var o,n={},i=null,c=null;if(t!=null)for(o in t.ref!==void 0&&(c=t.ref),t.key!==void 0&&(i=""+t.key),t)$t.call(t,o)&&!Tt.hasOwnProperty(o)&&(n[o]=t[o]);var a=arguments.length-2;if(a===1)n.children=r;else if(1<a){for(var s=Array(a),u=0;u<a;u++)s[u]=arguments[u+2];n.children=s}if(e&&e.defaultProps)for(o in a=e.defaultProps,a)n[o]===void 0&&(n[o]=a[o]);return{$$typeof:se,type:e,key:i,ref:c,props:n,_owner:Be.current}}function yr(e,t){return{$$typeof:se,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function We(e){return typeof e=="object"&&e!==null&&e.$$typeof===se}function mr(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(r){return t[r]})}var Rt=/\/+/g,de=[];function At(e,t,r,o){if(de.length){var n=de.pop();return n.result=e,n.keyPrefix=t,n.func=r,n.context=o,n.count=0,n}return{result:e,keyPrefix:t,func:r,context:o,count:0}}function jt(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>de.length&&de.push(e)}function Ue(e,t,r,o){var n=typeof e;(n==="undefined"||n==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(n){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case se:case ar:i=!0}}if(i)return r(o,e,t===""?"."+Te(e,0):t),1;if(i=0,t=t===""?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){n=e[c];var a=t+Te(n,c);i+=Ue(n,a,r,o)}else if(e===null||typeof e!="object"?a=null:(a=nt&&e[nt]||e["@@iterator"],a=typeof a=="function"?a:null),typeof a=="function")for(e=a.call(e),c=0;!(n=e.next()).done;)n=n.value,a=t+Te(n,c++),i+=Ue(n,a,r,o);else if(n==="object")throw r=""+e,Error(fe(31,r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return i}function Ie(e,t,r){return e==null?0:Ue(e,"",t,r)}function Te(e,t){return typeof e=="object"&&e!==null&&e.key!=null?mr(e.key):t.toString(36)}function gr(e,t){e.func.call(e.context,t,e.count++)}function wr(e,t,r){var o=e.result,n=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?He(e,o,r,function(i){return i}):e!=null&&(We(e)&&(e=yr(e,n+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(Rt,"$&/")+"/")+r)),o.push(e))}function He(e,t,r,o,n){var i="";r!=null&&(i=(""+r).replace(Rt,"$&/")+"/"),t=At(t,i,o,n),Ie(e,wr,t),jt(t)}var Lt={current:null};function X(){var e=Lt.current;if(e===null)throw Error(fe(321));return e}var xr={ReactCurrentDispatcher:Lt,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:Be,IsSomeRendererActing:{current:!1},assign:Ne};x.Children={map:function(e,t,r){if(e==null)return e;var o=[];return He(e,o,null,t,r),o},forEach:function(e,t,r){if(e==null)return e;t=At(null,null,t,r),Ie(e,gr,t),jt(t)},count:function(e){return Ie(e,function(){return null},null)},toArray:function(e){var t=[];return He(e,t,null,function(r){return r}),t},only:function(e){if(!We(e))throw Error(fe(143));return e}};x.Component=oe;x.Fragment=ur;x.Profiler=sr;x.PureComponent=Fe;x.StrictMode=cr;x.Suspense=hr;x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xr;x.cloneElement=function(e,t,r){if(e==null)throw Error(fe(267,e));var o=Ne({},e.props),n=e.key,i=e.ref,c=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,c=Be.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(s in t)$t.call(t,s)&&!Tt.hasOwnProperty(s)&&(o[s]=t[s]===void 0&&a!==void 0?a[s]:t[s])}var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){a=Array(s);for(var u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}return{$$typeof:se,type:e.type,key:n,ref:i,props:o,_owner:c}};x.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:lr,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:fr,_context:e},e.Consumer=e};x.createElement=Ct;x.createFactory=function(e){var t=Ct.bind(null,e);return t.type=e,t};x.createRef=function(){return{current:null}};x.forwardRef=function(e){return{$$typeof:pr,render:e}};x.isValidElement=We;x.lazy=function(e){return{$$typeof:vr,_ctor:e,_status:-1,_result:null}};x.memo=function(e,t){return{$$typeof:dr,type:e,compare:t===void 0?null:t}};x.useCallback=function(e,t){return X().useCallback(e,t)};x.useContext=function(e,t){return X().useContext(e,t)};x.useDebugValue=function(){};x.useEffect=function(e,t){return X().useEffect(e,t)};x.useImperativeHandle=function(e,t,r){return X().useImperativeHandle(e,t,r)};x.useLayoutEffect=function(e,t){return X().useLayoutEffect(e,t)};x.useMemo=function(e,t){return X().useMemo(e,t)};x.useReducer=function(e,t,r){return X().useReducer(e,t,r)};x.useRef=function(e){return X().useRef(e)};x.useState=function(e){return X().useState(e)};x.version="16.14.0";bt.exports=x;var ne=bt.exports;const b=ce(ne),En=tr({__proto__:null,default:b},[ne]);var Mt={exports:{}},P={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var E=typeof Symbol=="function"&&Symbol.for,qe=E?Symbol.for("react.element"):60103,ze=E?Symbol.for("react.portal"):60106,ye=E?Symbol.for("react.fragment"):60107,me=E?Symbol.for("react.strict_mode"):60108,ge=E?Symbol.for("react.profiler"):60114,we=E?Symbol.for("react.provider"):60109,xe=E?Symbol.for("react.context"):60110,Ge=E?Symbol.for("react.async_mode"):60111,Pe=E?Symbol.for("react.concurrent_mode"):60111,be=E?Symbol.for("react.forward_ref"):60112,Oe=E?Symbol.for("react.suspense"):60113,Pr=E?Symbol.for("react.suspense_list"):60120,Se=E?Symbol.for("react.memo"):60115,_e=E?Symbol.for("react.lazy"):60116,br=E?Symbol.for("react.block"):60121,Or=E?Symbol.for("react.fundamental"):60117,Sr=E?Symbol.for("react.responder"):60118,_r=E?Symbol.for("react.scope"):60119;function N(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qe:switch(e=e.type,e){case Ge:case Pe:case ye:case ge:case me:case Oe:return e;default:switch(e=e&&e.$$typeof,e){case xe:case be:case _e:case Se:case we:return e;default:return t}}case ze:return t}}}function Ut(e){return N(e)===Pe}P.AsyncMode=Ge;P.ConcurrentMode=Pe;P.ContextConsumer=xe;P.ContextProvider=we;P.Element=qe;P.ForwardRef=be;P.Fragment=ye;P.Lazy=_e;P.Memo=Se;P.Portal=ze;P.Profiler=ge;P.StrictMode=me;P.Suspense=Oe;P.isAsyncMode=function(e){return Ut(e)||N(e)===Ge};P.isConcurrentMode=Ut;P.isContextConsumer=function(e){return N(e)===xe};P.isContextProvider=function(e){return N(e)===we};P.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qe};P.isForwardRef=function(e){return N(e)===be};P.isFragment=function(e){return N(e)===ye};P.isLazy=function(e){return N(e)===_e};P.isMemo=function(e){return N(e)===Se};P.isPortal=function(e){return N(e)===ze};P.isProfiler=function(e){return N(e)===ge};P.isStrictMode=function(e){return N(e)===me};P.isSuspense=function(e){return N(e)===Oe};P.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ye||e===Pe||e===ge||e===me||e===Oe||e===Pr||typeof e=="object"&&e!==null&&(e.$$typeof===_e||e.$$typeof===Se||e.$$typeof===we||e.$$typeof===xe||e.$$typeof===be||e.$$typeof===Or||e.$$typeof===Sr||e.$$typeof===_r||e.$$typeof===br)};P.typeOf=N;Mt.exports=P;var Er=Mt.exports,Ve=Er,$r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Tr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Cr={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},It={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ke={};Ke[Ve.ForwardRef]=Cr;Ke[Ve.Memo]=It;function ot(e){return Ve.isMemo(e)?It:Ke[e.$$typeof]||$r}var Rr=Object.defineProperty,Ar=Object.getOwnPropertyNames,it=Object.getOwnPropertySymbols,jr=Object.getOwnPropertyDescriptor,Lr=Object.getPrototypeOf,at=Object.prototype;function Ht(e,t,r){if(typeof t!="string"){if(at){var o=Lr(t);o&&o!==at&&Ht(e,o,r)}var n=Ar(t);it&&(n=n.concat(it(t)));for(var i=ot(e),c=ot(t),a=0;a<n.length;++a){var s=n[a];if(!Tr[s]&&!(r&&r[s])&&!(c&&c[s])&&!(i&&i[s])){var u=jr(t,s);try{Rr(e,s,u)}catch{}}}}return e}var Mr=Ht;const $n=ce(Mr);function De(e,t){return De=Object.setPrototypeOf||function(o,n){return o.__proto__=n,o},De(e,t)}function Q(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,De(e,t)}var Dt={exports:{}},Ur="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ir=Ur,Hr=Ir;function Nt(){}function Ft(){}Ft.resetWarningCache=Nt;var Dr=function(){function e(o,n,i,c,a,s){if(s!==Hr){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ft,resetWarningCache:Nt};return r.PropTypes=r,r};Dt.exports=Dr();var Nr=Dt.exports;const ut=ce(Nr);function D(){return D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},D.apply(this,arguments)}function le(e){return e.charAt(0)==="/"}function Ce(e,t){for(var r=t,o=r+1,n=e.length;o<n;r+=1,o+=1)e[r]=e[o];e.pop()}function Fr(e,t){t===void 0&&(t="");var r=e&&e.split("/")||[],o=t&&t.split("/")||[],n=e&&le(e),i=t&&le(t),c=n||i;if(e&&le(e)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";var a;if(o.length){var s=o[o.length-1];a=s==="."||s===".."||s===""}else a=!1;for(var u=0,f=o.length;f>=0;f--){var l=o[f];l==="."?Ce(o,f):l===".."?(Ce(o,f),u++):u&&(Ce(o,f),u--)}if(!c)for(;u--;u)o.unshift("..");c&&o[0]!==""&&(!o[0]||!le(o[0]))&&o.unshift("");var p=o.join("/");return a&&p.substr(-1)!=="/"&&(p+="/"),p}function ct(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function pe(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(n,i){return pe(n,t[i])});if(typeof e=="object"||typeof t=="object"){var r=ct(e),o=ct(t);return r!==e||o!==t?pe(r,o):Object.keys(Object.assign({},e,t)).every(function(n){return pe(e[n],t[n])})}return!1}var kr=!0,Re="Invariant failed";function te(e,t){if(!e){if(kr)throw new Error(Re);var r=typeof t=="function"?t():t,o=r?Re+": "+r:Re;throw new Error(o)}}function ue(e){return e.charAt(0)==="/"?e:"/"+e}function st(e){return e.charAt(0)==="/"?e.substr(1):e}function Br(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function kt(e,t){return Br(e,t)?e.substr(t.length):e}function Bt(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function Wr(e){var t=e||"/",r="",o="",n=t.indexOf("#");n!==-1&&(o=t.substr(n),t=t.substr(0,n));var i=t.indexOf("?");return i!==-1&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:r==="?"?"":r,hash:o==="#"?"":o}}function W(e){var t=e.pathname,r=e.search,o=e.hash,n=t||"/";return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function M(e,t,r,o){var n;typeof e=="string"?(n=Wr(e),n.state=t):(n=D({},e),n.pathname===void 0&&(n.pathname=""),n.search?n.search.charAt(0)!=="?"&&(n.search="?"+n.search):n.search="",n.hash?n.hash.charAt(0)!=="#"&&(n.hash="#"+n.hash):n.hash="",t!==void 0&&n.state===void 0&&(n.state=t));try{n.pathname=decodeURI(n.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+n.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return r&&(n.key=r),o?n.pathname?n.pathname.charAt(0)!=="/"&&(n.pathname=Fr(n.pathname,o.pathname)):n.pathname=o.pathname:n.pathname||(n.pathname="/"),n}function qr(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&pe(e.state,t.state)}function Ye(){var e=null;function t(c){return e=c,function(){e===c&&(e=null)}}function r(c,a,s,u){if(e!=null){var f=typeof e=="function"?e(c,a):e;typeof f=="string"?typeof s=="function"?s(f,u):u(!0):u(f!==!1)}else u(!0)}var o=[];function n(c){var a=!0;function s(){a&&c.apply(void 0,arguments)}return o.push(s),function(){a=!1,o=o.filter(function(u){return u!==s})}}function i(){for(var c=arguments.length,a=new Array(c),s=0;s<c;s++)a[s]=arguments[s];o.forEach(function(u){return u.apply(void 0,a)})}return{setPrompt:t,confirmTransitionTo:r,appendListener:n,notifyListeners:i}}var Wt=!!(typeof window<"u"&&window.document&&window.document.createElement);function qt(e,t){t(window.confirm(e))}function zr(){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 Gr(){return window.navigator.userAgent.indexOf("Trident")===-1}function Vr(){return window.navigator.userAgent.indexOf("Firefox")===-1}function Kr(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var ft="popstate",lt="hashchange";function pt(){try{return window.history.state||{}}catch{return{}}}function Tn(e){e===void 0&&(e={}),Wt||te(!1);var t=window.history,r=zr(),o=!Gr(),n=e,i=n.forceRefresh,c=i===void 0?!1:i,a=n.getUserConfirmation,s=a===void 0?qt:a,u=n.keyLength,f=u===void 0?6:u,l=e.basename?Bt(ue(e.basename)):"";function p(d){var h=d||{},m=h.key,v=h.state,S=window.location,C=S.pathname,H=S.search,V=S.hash,B=C+H+V;return l&&(B=kt(B,l)),M(B,v,m)}function y(){return Math.random().toString(36).substr(2,f)}var g=Ye();function R(d){D(k,d),k.length=t.length,g.notifyListeners(k.location,k.action)}function A(d){Kr(d)||z(p(d.state))}function T(){z(p(pt()))}var q=!1;function z(d){if(q)q=!1,R();else{var h="POP";g.confirmTransitionTo(d,h,s,function(m){m?R({action:h,location:d}):G(d)})}}function G(d){var h=k.location,m=$.indexOf(h.key);m===-1&&(m=0);var v=$.indexOf(d.key);v===-1&&(v=0);var S=m-v;S&&(q=!0,j(S))}var F=p(pt()),$=[F.key];function w(d){return l+W(d)}function O(d,h){var m="PUSH",v=M(d,h,y(),k.location);g.confirmTransitionTo(v,m,s,function(S){if(S){var C=w(v),H=v.key,V=v.state;if(r)if(t.pushState({key:H,state:V},null,C),c)window.location.href=C;else{var B=$.indexOf(k.location.key),ee=$.slice(0,B+1);ee.push(v.key),$=ee,R({action:m,location:v})}else window.location.href=C}})}function U(d,h){var m="REPLACE",v=M(d,h,y(),k.location);g.confirmTransitionTo(v,m,s,function(S){if(S){var C=w(v),H=v.key,V=v.state;if(r)if(t.replaceState({key:H,state:V},null,C),c)window.location.replace(C);else{var B=$.indexOf(k.location.key);B!==-1&&($[B]=v.key),R({action:m,location:v})}else window.location.replace(C)}})}function j(d){t.go(d)}function _(){j(-1)}function Y(){j(1)}var Z=0;function I(d){Z+=d,Z===1&&d===1?(window.addEventListener(ft,A),o&&window.addEventListener(lt,T)):Z===0&&(window.removeEventListener(ft,A),o&&window.removeEventListener(lt,T))}var L=!1;function re(d){d===void 0&&(d=!1);var h=g.setPrompt(d);return L||(I(1),L=!0),function(){return L&&(L=!1,I(-1)),h()}}function $e(d){var h=g.appendListener(d);return I(1),function(){I(-1),h()}}var k={length:t.length,action:"POP",location:F,createHref:w,push:O,replace:U,go:j,goBack:_,goForward:Y,block:re,listen:$e};return k}var ht="hashchange",Yr={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+st(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:st,decodePath:ue},slash:{encodePath:ue,decodePath:ue}};function zt(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function ae(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function Jr(e){window.location.hash=e}function Ae(e){window.location.replace(zt(window.location.href)+"#"+e)}function Cn(e){e===void 0&&(e={}),Wt||te(!1);var t=window.history;Vr();var r=e,o=r.getUserConfirmation,n=o===void 0?qt:o,i=r.hashType,c=i===void 0?"slash":i,a=e.basename?Bt(ue(e.basename)):"",s=Yr[c],u=s.encodePath,f=s.decodePath;function l(){var h=f(ae());return a&&(h=kt(h,a)),M(h)}var p=Ye();function y(h){D(d,h),d.length=t.length,p.notifyListeners(d.location,d.action)}var g=!1,R=null;function A(h,m){return h.pathname===m.pathname&&h.search===m.search&&h.hash===m.hash}function T(){var h=ae(),m=u(h);if(h!==m)Ae(m);else{var v=l(),S=d.location;if(!g&&A(S,v)||R===W(v))return;R=null,q(v)}}function q(h){if(g)g=!1,y();else{var m="POP";p.confirmTransitionTo(h,m,n,function(v){v?y({action:m,location:h}):z(h)})}}function z(h){var m=d.location,v=w.lastIndexOf(W(m));v===-1&&(v=0);var S=w.lastIndexOf(W(h));S===-1&&(S=0);var C=v-S;C&&(g=!0,_(C))}var G=ae(),F=u(G);G!==F&&Ae(F);var $=l(),w=[W($)];function O(h){var m=document.querySelector("base"),v="";return m&&m.getAttribute("href")&&(v=zt(window.location.href)),v+"#"+u(a+W(h))}function U(h,m){var v="PUSH",S=M(h,void 0,void 0,d.location);p.confirmTransitionTo(S,v,n,function(C){if(C){var H=W(S),V=u(a+H),B=ae()!==V;if(B){R=H,Jr(V);var ee=w.lastIndexOf(W(d.location)),tt=w.slice(0,ee+1);tt.push(H),w=tt,y({action:v,location:S})}else y()}})}function j(h,m){var v="REPLACE",S=M(h,void 0,void 0,d.location);p.confirmTransitionTo(S,v,n,function(C){if(C){var H=W(S),V=u(a+H),B=ae()!==V;B&&(R=H,Ae(V));var ee=w.indexOf(W(d.location));ee!==-1&&(w[ee]=H),y({action:v,location:S})}})}function _(h){t.go(h)}function Y(){_(-1)}function Z(){_(1)}var I=0;function L(h){I+=h,I===1&&h===1?window.addEventListener(ht,T):I===0&&window.removeEventListener(ht,T)}var re=!1;function $e(h){h===void 0&&(h=!1);var m=p.setPrompt(h);return re||(L(1),re=!0),function(){return re&&(re=!1,L(-1)),m()}}function k(h){var m=p.appendListener(h);return L(1),function(){L(-1),m()}}var d={length:t.length,action:"POP",location:$,createHref:O,push:U,replace:j,go:_,goBack:Y,goForward:Z,block:$e,listen:k};return d}function dt(e,t,r){return Math.min(Math.max(e,t),r)}function Xr(e){e===void 0&&(e={});var t=e,r=t.getUserConfirmation,o=t.initialEntries,n=o===void 0?["/"]:o,i=t.initialIndex,c=i===void 0?0:i,a=t.keyLength,s=a===void 0?6:a,u=Ye();function f(O){D(w,O),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function l(){return Math.random().toString(36).substr(2,s)}var p=dt(c,0,n.length-1),y=n.map(function(O){return typeof O=="string"?M(O,void 0,l()):M(O,void 0,O.key||l())}),g=W;function R(O,U){var j="PUSH",_=M(O,U,l(),w.location);u.confirmTransitionTo(_,j,r,function(Y){if(Y){var Z=w.index,I=Z+1,L=w.entries.slice(0);L.length>I?L.splice(I,L.length-I,_):L.push(_),f({action:j,location:_,index:I,entries:L})}})}function A(O,U){var j="REPLACE",_=M(O,U,l(),w.location);u.confirmTransitionTo(_,j,r,function(Y){Y&&(w.entries[w.index]=_,f({action:j,location:_}))})}function T(O){var U=dt(w.index+O,0,w.entries.length-1),j="POP",_=w.entries[U];u.confirmTransitionTo(_,j,r,function(Y){Y?f({action:j,location:_,index:U}):f()})}function q(){T(-1)}function z(){T(1)}function G(O){var U=w.index+O;return U>=0&&U<w.entries.length}function F(O){return O===void 0&&(O=!1),u.setPrompt(O)}function $(O){return u.appendListener(O)}var w={length:y.length,action:"POP",location:y[p],index:p,entries:y,createHref:g,push:R,replace:A,go:T,goBack:q,goForward:z,canGo:G,block:F,listen:$};return w}var je=1073741823,vt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function Qr(){var e="__global_unique_id__";return vt[e]=(vt[e]||0)+1}function Zr(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function en(e){var t=[];return{on:function(o){t.push(o)},off:function(o){t=t.filter(function(n){return n!==o})},get:function(){return e},set:function(o,n){e=o,t.forEach(function(i){return i(e,n)})}}}function tn(e){return Array.isArray(e)?e[0]:e}function rn(e,t){var r,o,n="__create-react-context-"+Qr()+"__",i=function(a){Q(s,a);function s(){var f;return f=a.apply(this,arguments)||this,f.emitter=en(f.props.value),f}var u=s.prototype;return u.getChildContext=function(){var l;return l={},l[n]=this.emitter,l},u.componentWillReceiveProps=function(l){if(this.props.value!==l.value){var p=this.props.value,y=l.value,g;Zr(p,y)?g=0:(g=typeof t=="function"?t(p,y):je,g|=0,g!==0&&this.emitter.set(l.value,g))}},u.render=function(){return this.props.children},s}(ne.Component);i.childContextTypes=(r={},r[n]=ut.object.isRequired,r);var c=function(a){Q(s,a);function s(){var f;return f=a.apply(this,arguments)||this,f.state={value:f.getValue()},f.onUpdate=function(l,p){var y=f.observedBits|0;y&p&&f.setState({value:f.getValue()})},f}var u=s.prototype;return u.componentWillReceiveProps=function(l){var p=l.observedBits;this.observedBits=p??je},u.componentDidMount=function(){this.context[n]&&this.context[n].on(this.onUpdate);var l=this.props.observedBits;this.observedBits=l??je},u.componentWillUnmount=function(){this.context[n]&&this.context[n].off(this.onUpdate)},u.getValue=function(){return this.context[n]?this.context[n].get():e},u.render=function(){return tn(this.props.children)(this.state.value)},s}(ne.Component);return c.contextTypes=(o={},o[n]=ut.object,o),{Provider:i,Consumer:c}}var nn=b.createContext||rn,ie={exports:{}},on=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},ve=on;ie.exports=Kt;ie.exports.parse=Je;ie.exports.compile=un;ie.exports.tokensToFunction=Gt;ie.exports.tokensToRegExp=Vt;var an=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function Je(e,t){for(var r=[],o=0,n=0,i="",c=t&&t.delimiter||"/",a;(a=an.exec(e))!=null;){var s=a[0],u=a[1],f=a.index;if(i+=e.slice(n,f),n=f+s.length,u){i+=u[1];continue}var l=e[n],p=a[2],y=a[3],g=a[4],R=a[5],A=a[6],T=a[7];i&&(r.push(i),i="");var q=p!=null&&l!=null&&l!==p,z=A==="+"||A==="*",G=A==="?"||A==="*",F=a[2]||c,$=g||R;r.push({name:y||o++,prefix:p||"",delimiter:F,optional:G,repeat:z,partial:q,asterisk:!!T,pattern:$?fn($):T?".*":"[^"+he(F)+"]+?"})}return n<e.length&&(i+=e.substr(n)),i&&r.push(i),r}function un(e,t){return Gt(Je(e,t),t)}function cn(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function sn(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Gt(e,t){for(var r=new Array(e.length),o=0;o<e.length;o++)typeof e[o]=="object"&&(r[o]=new RegExp("^(?:"+e[o].pattern+")$",Qe(t)));return function(n,i){for(var c="",a=n||{},s=i||{},u=s.pretty?cn:encodeURIComponent,f=0;f<e.length;f++){var l=e[f];if(typeof l=="string"){c+=l;continue}var p=a[l.name],y;if(p==null)if(l.optional){l.partial&&(c+=l.prefix);continue}else throw new TypeError('Expected "'+l.name+'" to be defined');if(ve(p)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(p.length===0){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var g=0;g<p.length;g++){if(y=u(p[g]),!r[f].test(y))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(y)+"`");c+=(g===0?l.prefix:l.delimiter)+y}continue}if(y=l.asterisk?sn(p):u(p),!r[f].test(y))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+y+'"');c+=l.prefix+y}return c}}function he(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function fn(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function Xe(e,t){return e.keys=t,e}function Qe(e){return e&&e.sensitive?"":"i"}function ln(e,t){var r=e.source.match(/\((?!\?)/g);if(r)for(var o=0;o<r.length;o++)t.push({name:o,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Xe(e,t)}function pn(e,t,r){for(var o=[],n=0;n<e.length;n++)o.push(Kt(e[n],t,r).source);var i=new RegExp("(?:"+o.join("|")+")",Qe(r));return Xe(i,t)}function hn(e,t,r){return Vt(Je(e,r),t,r)}function Vt(e,t,r){ve(t)||(r=t||r,t=[]),r=r||{};for(var o=r.strict,n=r.end!==!1,i="",c=0;c<e.length;c++){var a=e[c];if(typeof a=="string")i+=he(a);else{var s=he(a.prefix),u="(?:"+a.pattern+")";t.push(a),a.repeat&&(u+="(?:"+s+u+")*"),a.optional?a.partial?u=s+"("+u+")?":u="(?:"+s+"("+u+"))?":u=s+"("+u+")",i+=u}}var f=he(r.delimiter||"/"),l=i.slice(-f.length)===f;return o||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),n?i+="$":i+=o&&l?"":"(?="+f+"|$)",Xe(new RegExp("^"+i,Qe(r)),t)}function Kt(e,t,r){return ve(t)||(r=t||r,t=[]),r=r||{},e instanceof RegExp?ln(e,t):ve(e)?pn(e,t,r):hn(e,t,r)}var dn=ie.exports;const Yt=ce(dn);function vn(e,t){if(e==null)return{};var r={},o=Object.keys(e),n,i;for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&(r[n]=e[n]);return r}var Jt=function(t){var r=nn();return r.displayName=t,r},Xt=Jt("Router-History"),J=Jt("Router"),Qt=function(e){Q(t,e),t.computeRootMatch=function(n){return{path:"/",url:"/",params:{},isExact:n==="/"}};function t(o){var n;return n=e.call(this,o)||this,n.state={location:o.history.location},n._isMounted=!1,n._pendingLocation=null,o.staticContext||(n.unlisten=o.history.listen(function(i){n._isMounted?n.setState({location:i}):n._pendingLocation=i})),n}var r=t.prototype;return r.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return b.createElement(J.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},b.createElement(Xt.Provider,{children:this.props.children||null,value:this.props.history}))},t}(b.Component);b.Component;var Zt=function(e){Q(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(n){this.props.onUpdate&&this.props.onUpdate.call(this,this,n)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},t}(b.Component);function Rn(e){var t=e.message,r=e.when,o=r===void 0?!0:r;return b.createElement(J.Consumer,null,function(n){if(n||te(!1),!o||n.staticContext)return null;var i=n.history.block;return b.createElement(Zt,{onMount:function(a){a.release=i(t)},onUpdate:function(a,s){s.message!==t&&(a.release(),a.release=i(t))},onUnmount:function(a){a.release()},message:t})})}var Le={},yn=1e4,yt=0;function mn(e){if(Le[e])return Le[e];var t=Yt.compile(e);return yt<yn&&(Le[e]=t,yt++),t}function mt(e,t){return e===void 0&&(e="/"),t===void 0&&(t={}),e==="/"?e:mn(e)(t,{pretty:!0})}function An(e){var t=e.computedMatch,r=e.to,o=e.push,n=o===void 0?!1:o;return b.createElement(J.Consumer,null,function(i){i||te(!1);var c=i.history,a=i.staticContext,s=n?c.push:c.replace,u=M(t?typeof r=="string"?mt(r,t.params):D({},r,{pathname:mt(r.pathname,t.params)}):r);return a?(s(u),null):b.createElement(Zt,{onMount:function(){s(u)},onUpdate:function(l,p){var y=M(p.to);qr(y,D({},u,{key:y.key}))||s(u)},to:r})})}var gt={},gn=1e4,wt=0;function wn(e,t){var r=""+t.end+t.strict+t.sensitive,o=gt[r]||(gt[r]={});if(o[e])return o[e];var n=[],i=Yt(e,n,t),c={regexp:i,keys:n};return wt<gn&&(o[e]=c,wt++),c}function Ze(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var r=t,o=r.path,n=r.exact,i=n===void 0?!1:n,c=r.strict,a=c===void 0?!1:c,s=r.sensitive,u=s===void 0?!1:s,f=[].concat(o);return f.reduce(function(l,p){if(!p&&p!=="")return null;if(l)return l;var y=wn(p,{end:i,strict:a,sensitive:u}),g=y.regexp,R=y.keys,A=g.exec(e);if(!A)return null;var T=A[0],q=A.slice(1),z=e===T;return i&&!z?null:{path:p,url:p==="/"&&T===""?"/":T,isExact:z,params:R.reduce(function(G,F,$){return G[F.name]=q[$],G},{})}},null)}function xn(e){return b.Children.count(e)===0}var jn=function(e){Q(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var n=this;return b.createElement(J.Consumer,null,function(i){i||te(!1);var c=n.props.location||i.location,a=n.props.computedMatch?n.props.computedMatch:n.props.path?Ze(c.pathname,n.props):i.match,s=D({},i,{location:c,match:a}),u=n.props,f=u.children,l=u.component,p=u.render;return Array.isArray(f)&&xn(f)&&(f=null),b.createElement(J.Provider,{value:s},s.match?f?typeof f=="function"?f(s):f:l?b.createElement(l,s):p?p(s):null:typeof f=="function"?f(s):null)})},t}(b.Component);function et(e){return e.charAt(0)==="/"?e:"/"+e}function Pn(e,t){return e?D({},t,{pathname:et(e)+t.pathname}):t}function bn(e,t){if(!e)return t;var r=et(e);return t.pathname.indexOf(r)!==0?t:D({},t,{pathname:t.pathname.substr(r.length)})}function xt(e){return typeof e=="string"?e:W(e)}function Me(e){return function(){te(!1)}}function Pt(){}b.Component;var Ln=function(e){Q(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var n=this;return b.createElement(J.Consumer,null,function(i){i||te(!1);var c=n.props.location||i.location,a,s;return b.Children.forEach(n.props.children,function(u){if(s==null&&b.isValidElement(u)){a=u;var f=u.props.path||u.props.from;s=f?Ze(c.pathname,D({},u.props,{path:f})):i.match}}),s?b.cloneElement(a,{location:c,computedMatch:s}):null})},t}(b.Component),Ee=b.useContext;function Mn(){return Ee(Xt)}function er(){return Ee(J).location}function Un(){var e=Ee(J).match;return e?e.params:{}}function In(e){var t=er(),r=Ee(J).match;return e?Ze(t.pathname,e):r}function Hn(){const{pathname:e,state:t}=er(),r=ne.useRef(!0);return ne.useEffect(()=>{if(r.current){r.current=!1;return}t?.persistScrollPosition||window.scrollTo(0,0)},[e,t]),null}export{Ln as A,Un as B,mt as C,An as D,_n as E,Rn as P,jn as R,Hn as S,Q as _,ce as a,Tn as b,On as c,b as d,Qt as e,Cn as f,Sn as g,Mr as h,vn as i,D as j,J as k,te as l,W as m,Ze as n,Ot as o,M as p,Er as q,ne as r,$n as s,De as t,Nr as u,ut as v,er as w,En as x,Mn as y,In as z};
//# sourceMappingURL=ScrollToTop-b64a6d2f.js.map
