From dd95ffa69789a018dff21f221d415d1c639f6317 Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Sun, 7 Apr 2024 21:39:24 +0700 Subject: [PATCH] Updates --- assets/__federation_shared_react-YUWc_MPj.js | 1 - .../__federation_shared_react-dom--yO6rQ29.js | 1 - ..._federation_shared_react-redux-D03wKyFk.js | 1 - ...federation_shared_react-router-B32bG2-w.js | 21 -- ...ration_shared_react-router-dom-nsx7W9Kc.js | 11 - ...ederation_shared_redux-persist-BLBAFadg.js | 1 - ...virtual___federation_fn_import-DD6RvBA-.js | 1 - assets/bootstrap-99OZCrVa.js | 281 ++++++++++++++++++ assets/bootstrap-CNvApE30.js | 221 -------------- assets/index-Cu8_3Doc.js | 10 - assets/index-Cxp9oPON.js | 1 - assets/preload-helper-D0saE0b4.js | 1 - bundle.js | 4 +- index.html | 1 - service-worker.js | 2 +- 15 files changed, 284 insertions(+), 274 deletions(-) delete mode 100644 assets/__federation_shared_react-YUWc_MPj.js delete mode 100644 assets/__federation_shared_react-dom--yO6rQ29.js delete mode 100644 assets/__federation_shared_react-redux-D03wKyFk.js delete mode 100644 assets/__federation_shared_react-router-B32bG2-w.js delete mode 100644 assets/__federation_shared_react-router-dom-nsx7W9Kc.js delete mode 100644 assets/__federation_shared_redux-persist-BLBAFadg.js delete mode 100644 assets/_virtual___federation_fn_import-DD6RvBA-.js create mode 100644 assets/bootstrap-99OZCrVa.js delete mode 100644 assets/bootstrap-CNvApE30.js delete mode 100644 assets/index-Cu8_3Doc.js delete mode 100644 assets/index-Cxp9oPON.js delete mode 100644 assets/preload-helper-D0saE0b4.js diff --git a/assets/__federation_shared_react-YUWc_MPj.js b/assets/__federation_shared_react-YUWc_MPj.js deleted file mode 100644 index 3ccd370..0000000 --- a/assets/__federation_shared_react-YUWc_MPj.js +++ /dev/null @@ -1 +0,0 @@ -import{r as s,g as a}from"./index-Cxp9oPON.js";const o=a(s());export{o as default}; diff --git a/assets/__federation_shared_react-dom--yO6rQ29.js b/assets/__federation_shared_react-dom--yO6rQ29.js deleted file mode 100644 index d01573c..0000000 --- a/assets/__federation_shared_react-dom--yO6rQ29.js +++ /dev/null @@ -1 +0,0 @@ -import{g as o}from"./index-Cxp9oPON.js";import{r}from"./index-Cu8_3Doc.js";const s=o(r());export{s as default}; diff --git a/assets/__federation_shared_react-redux-D03wKyFk.js b/assets/__federation_shared_react-redux-D03wKyFk.js deleted file mode 100644 index ff0e84c..0000000 --- a/assets/__federation_shared_react-redux-D03wKyFk.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e,c as t,g as n}from"./index-Cxp9oPON.js";import{r}from"./index-Cu8_3Doc.js";var o={exports:{}};!function(e,t,n){function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var c=r(t),u=o(t);function a(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return s(e,null==t?n.path:t)}},n.exports),n.exports}function s(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var i=a((function(e,t){!function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=c.default,n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;ry=e,S=()=>y,b=Symbol.for("react-redux-context"),h="undefined"!=typeof globalThis?globalThis:{};function O(){var e;if(!u.createContext)return{};const t=null!=(e=h[b])?e:h[b]=new Map;let n=t.get(u.createContext);return n||(n=u.createContext(null),n.displayName="ReactRedux",t.set(u.createContext,n)),n}const v=O();function w(e=v){return function(){const n=t.useContext(e);if(!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a ");return n}}const _=w(),g=()=>{throw new Error("uSES not initialized!")};let E=g;const P=e=>{E=e},x=(e,t)=>e===t;function C(e=v){const n=e===v?_:w(e);return function(e,r={}){const{equalityFn:o=x,stabilityCheck:c,noopCheck:u}="function"==typeof r?{equalityFn:r}:r;if(!e)throw new Error("You must pass a selector to useSelector");if("function"!=typeof e)throw new Error("You must pass a function as a selector to useSelector");if("function"!=typeof o)throw new Error("You must pass a function as an equality function to useSelector");const{store:a,subscription:s,getServerState:i,stabilityCheck:f,noopCheck:l}=n(),p=t.useRef(!0),d=t.useCallback({[e.name](t){const n=e(t);{const a=void 0===c?f:c;if("always"===a||"once"===a&&p.current){const c=e(t);if(!o(n,c)){let o;try{throw new Error}catch(r){({stack:o}=r)}console.warn("Selector "+(e.name||"unknown")+" returned a different result when called with the same parameters. This can lead to unnecessary rerenders.\nSelectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization",{state:t,selected:n,selected2:c,stack:o})}}const s=void 0===u?l:u;if(("always"===s||"once"===s&&p.current)&&n===t){let t;try{throw new Error}catch(r){({stack:t}=r)}console.warn("Selector "+(e.name||"unknown")+" returned the root state when called. This can lead to unnecessary rerenders.\nSelectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.",{stack:t})}p.current&&(p.current=!1)}return n}}[e.name],[e,f,c]),y=E(s.addNestedSub,a.getState,i||a.getState,d,o);return t.useDebugValue(y),y}}const T=C();function $(){return $=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var R=a((function(e,t){!function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,c=e?Symbol.for("react.strict_mode"):60108,u=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function v(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===u||e===c||e===p||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===y||e.$$typeof===a||e.$$typeof===s||e.$$typeof===l||e.$$typeof===b||e.$$typeof===h||e.$$typeof===O||e.$$typeof===S)}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var d=e.type;switch(d){case i:case f:case o:case u:case c:case p:return d;default:var S=d&&d.$$typeof;switch(S){case s:case l:case m:case y:case a:return S;default:return t}}case r:return t}}}var _=i,g=f,E=s,P=a,x=n,C=l,T=o,$=m,M=y,R=r,L=u,j=c,A=p,D=!1;function k(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(e)||w(e)===i}function N(e){return w(e)===f}function I(e){return w(e)===s}function V(e){return w(e)===a}function B(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}function F(e){return w(e)===l}function q(e){return w(e)===o}function H(e){return w(e)===m}function z(e){return w(e)===y}function G(e){return w(e)===r}function K(e){return w(e)===u}function U(e){return w(e)===c}function W(e){return w(e)===p}t.AsyncMode=_,t.ConcurrentMode=g,t.ContextConsumer=E,t.ContextProvider=P,t.Element=x,t.ForwardRef=C,t.Fragment=T,t.Lazy=$,t.Memo=M,t.Portal=R,t.Profiler=L,t.StrictMode=j,t.Suspense=A,t.isAsyncMode=k,t.isConcurrentMode=N,t.isContextConsumer=I,t.isContextProvider=V,t.isElement=B,t.isForwardRef=F,t.isFragment=q,t.isLazy=H,t.isMemo=z,t.isPortal=G,t.isProfiler=K,t.isStrictMode=U,t.isSuspense=W,t.isValidElementType=v,t.typeOf=w}()})),L=a((function(e){e.exports=R})),j={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},A={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},D={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},N={};function I(e){return L.isMemo(e)?k:N[e.$$typeof]||j}N[L.ForwardRef]=D,N[L.Memo]=k;var V=Object.defineProperty,B=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,z=Object.prototype;function G(e,t,n){if("string"!=typeof t){if(z){var r=H(t);r&&r!==z&&G(e,r,n)}var o=B(t);F&&(o=o.concat(F(t)));for(var c=I(e),u=I(t),a=0;at(o(...e)))}return n}function ne(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}function re(e,t,n){ne(e)||Y(`${n}() in ${t} must return a plain object. Instead received ${e}.`)}function oe(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function ce(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function ue(e,t){return function(n,{displayName:r}){const o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(n,c){o.mapToProps=e,o.dependsOnOwnProps=ce(e);let u=o(n,c);return"function"==typeof u&&(o.mapToProps=u,o.dependsOnOwnProps=ce(u),u=o(n,c)),re(u,r,t),u},o}}function ae(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function se(e){return e&&"object"==typeof e?oe((t=>te(e,t))):e?"function"==typeof e?ue(e,"mapDispatchToProps"):ae(e,"mapDispatchToProps"):oe((e=>({dispatch:e})))}function ie(e){return e?"function"==typeof e?ue(e,"mapStateToProps"):ae(e,"mapStateToProps"):oe((()=>({})))}function fe(e,t,n){return $({},n,e,t)}function le(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let o,c=!1;return function(t,u,a){const s=e(t,u,a);return c?r(s,o)||(o=s):(c=!0,o=s,re(o,n,"mergeProps")),o}}}function pe(e){return e?"function"==typeof e?le(e):ae(e,"mergeProps"):()=>fe}function de(){const e=S();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}const ye={notify(){},get:()=>[]};function me(e,t){let n,r=ye,o=0,c=!1;function u(e){f();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}}function a(){r.notify()}function s(){y.onStateChange&&y.onStateChange()}function i(){return c}function f(){o++,n||(n=t?t.addNestedSub(s):e.subscribe(s),r=de())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=ye)}function p(){c||(c=!0,f())}function d(){c&&(c=!1,l())}const y={addNestedSub:u,notifyNestedSubs:a,handleChangeWrapper:s,isSubscribed:i,trySubscribe:p,tryUnsubscribe:d,getListeners:()=>r};return y}const Se="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?u.useLayoutEffect:u.useEffect;function be(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function he(e,t){if(be(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o{ve=e},_e=[null,null],ge=e=>{try{return JSON.stringify(e)}catch(t){return String(e)}};function Ee(e,t,n){Se((()=>e(...t)),n)}function Pe(e,t,n,r,o,c){e.current=r,n.current=!1,o.current&&(o.current=null,c())}function xe(e,t,n,r,o,c,u,a,s,i,f){if(!e)return()=>{};let l=!1,p=null;const d=()=>{if(l||!a.current)return;const e=t.getState();let n,d;try{n=r(e,o.current)}catch(y){d=y,p=y}d||(p=null),n===c.current?u.current||i():(c.current=n,s.current=n,u.current=!0,f())};return n.onStateChange=d,n.trySubscribe(),d(),()=>{if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}function Ce(e,t){return e===t}let Te=!1;function $e(e,t,n,{pure:r,areStatesEqual:o=Ce,areOwnPropsEqual:c=he,areStatePropsEqual:a=he,areMergedPropsEqual:s=he,forwardRef:i=!1,context:f=v}={}){void 0===r||Te||(Te=!0,Y('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const l=f,p=ie(e),d=se(t),y=pe(n),m=Boolean(e);return e=>{if(!W.isValidElementType(e))throw new Error(`You must pass a component to the function returned by connect. Instead received ${ge(e)}`);const t=e.displayName||e.name||"Component",n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:d,initMergeProps:y,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:c,areMergedPropsEqual:s};function f(t){const[o,c,a]=u.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=M(t,Oe);return[t.context,e,n]}),[t]),s=u.useMemo((()=>o&&o.Consumer&&W.isContextConsumer(u.createElement(o.Consumer,null))?o:l),[o,l]),i=u.useContext(s),f=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),p=Boolean(i)&&Boolean(i.store);if(!f&&!p)throw new Error(`Could not find "store" in the context of "${n}". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to ${n} in connect options.`);const d=f?t.store:i.store,y=p?i.getServerState:d.getState,S=u.useMemo((()=>ee(d.dispatch,r)),[d]),[b,h]=u.useMemo((()=>{if(!m)return _e;const e=me(d,f?void 0:i.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,f,i]),O=u.useMemo((()=>f?i:$({},i,{subscription:b})),[f,i,b]),v=u.useRef(),w=u.useRef(a),_=u.useRef(),g=u.useRef(!1);u.useRef(!1);const E=u.useRef(!1),P=u.useRef();Se((()=>(E.current=!0,()=>{E.current=!1})),[]);const x=u.useMemo((()=>()=>_.current&&a===w.current?_.current:S(d.getState(),a)),[d,a]),C=u.useMemo((()=>e=>b?xe(m,d,b,S,w,v,g,E,_,h,e):()=>{}),[b]);let T;Ee(Pe,[w,v,g,a,_,h]);try{T=ve(C,x,y?()=>S(y(),a):x)}catch(L){throw P.current&&(L.message+=`\nThe error may be correlated with this previous error:\n${P.current.stack}\n\n`),L}Se((()=>{P.current=void 0,_.current=void 0,v.current=T}));const R=u.useMemo((()=>u.createElement(e,$({},T,{ref:c}))),[c,e,T]);return u.useMemo((()=>m?u.createElement(s.Provider,{value:O},R):R),[s,R,O])}const S=u.memo(f);if(S.WrappedComponent=e,S.displayName=f.displayName=n,i){const t=u.forwardRef((function(e,t){return u.createElement(S,$({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,K(t,e)}return K(S,e)}}function Me({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:c="once"}){const a=u.useMemo((()=>{const t=me(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:c}}),[e,r,o,c]),s=u.useMemo((()=>e.getState()),[e]);Se((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const i=t||v;return u.createElement(i.Provider,{value:a},n)}function Re(e=v){const t=e===v?_:w(e);return function(){const{store:e}=t();return e}}const Le=Re();function je(e=v){const t=e===v?Le:Re(e);return function(){return t().dispatch}}const Ae=je();P(p.useSyncExternalStoreWithSelector),we(f.useSyncExternalStore),m(n.unstable_batchedUpdates),Object.defineProperty(e,"batch",{enumerable:!0,get:function(){return n.unstable_batchedUpdates}}),e.Provider=Me,e.ReactReduxContext=v,e.connect=$e,e.createDispatchHook=je,e.createSelectorHook=C,e.createStoreHook=Re,e.shallowEqual=he,e.useDispatch=Ae,e.useSelector=T,e.useStore=Le,Object.defineProperty(e,"__esModule",{value:!0})}(o.exports,e(),r());const c=n(o.exports);export{c as default}; diff --git a/assets/__federation_shared_react-router-B32bG2-w.js b/assets/__federation_shared_react-router-B32bG2-w.js deleted file mode 100644 index beee40a..0000000 --- a/assets/__federation_shared_react-router-B32bG2-w.js +++ /dev/null @@ -1,21 +0,0 @@ -import{i as e}from"./_virtual___federation_fn_import-DD6RvBA-.js"; -/** - * @remix-run/router v1.15.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;tm(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let i=f(null==a?t.length-1:a),l=r.Pop,u=null;function f(e){return Math.min(Math.max(e,0),t.length-1)}function p(){return t[i]}function m(e,r,n){void 0===r&&(r=null);let a=c(t?p().pathname:"/",e,r,n);return s("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function v(e){return"string"==typeof e?e:d(e)}return{get index(){return i},get action(){return l},get location(){return p()},createHref:v,createURL:e=>new URL(v(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?h(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){l=r.Push;let a=m(e,n);i+=1,t.splice(i,t.length,a),o&&u&&u({action:l,location:a,delta:1})},replace(e,n){l=r.Replace;let a=m(e,n);t[i]=a,o&&u&&u({action:l,location:a,delta:0})},go(e){l=r.Pop;let n=f(i+e),a=t[n];i=n,u&&u({action:l,location:a,delta:e})},listen:e=>(u=e,()=>{u=null})}}function o(e){return void 0===e&&(e={}),f((function(e,t){let{pathname:r,search:n,hash:a}=e.location;return c("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:d(t)}),null,e)}function i(e){return void 0===e&&(e={}),f((function(e,t){let{pathname:r="/",search:n="",hash:a=""}=h(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),c("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:d(t))}),(function(e,t){s("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function l(e,t){if(!1===e||null==e)throw new Error(t)}function s(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,r,n,a){return void 0===n&&(n=null),t({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof r?h(r):r,{state:n,key:r&&r.key||a||Math.random().toString(36).substr(2,8)})}function d(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function h(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function f(e,a,o,i){void 0===i&&(i={});let{window:s=document.defaultView,v5Compat:h=!1}=i,f=s.history,p=r.Pop,m=null,v=y();function y(){return(f.state||{idx:null}).idx}function g(){p=r.Pop;let e=y(),t=null==e?null:e-v;v=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,r="string"==typeof e?e:d(e);return r=r.replace(/ $/,"%20"),l(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==v&&(v=0,f.replaceState(t({},f.state,{idx:v}),""));let w={get action(){return p},get location(){return e(s,f)},listen(e){if(m)throw new Error("A history only accepts one active listener");return s.addEventListener(n,g),m=e,()=>{s.removeEventListener(n,g),m=null}},createHref:e=>a(s,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=r.Push;let n=c(w.location,e,t);o&&o(n,e),v=y()+1;let a=u(n,v),i=w.createHref(n);try{f.pushState(a,"",i)}catch(l){if(l instanceof DOMException&&"DataCloneError"===l.name)throw l;s.location.assign(i)}h&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=r.Replace;let n=c(w.location,e,t);o&&o(n,e),v=y();let a=u(n,v),i=w.createHref(n);f.replaceState(a,"",i),h&&m&&m({action:p,location:w.location,delta:0})},go:e=>f.go(e)};return w}var p;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));const m=new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,r,n,a){return void 0===n&&(n=[]),void 0===a&&(a={}),e.map(((e,o)=>{let i=[...n,o],s="string"==typeof e.id?e.id:i.join("-");if(l(!0!==e.index||!e.children,"Cannot specify children on an index route"),l(!a[s],'Found a route id collision on id "'+s+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=t({},e,r(e),{id:s});return a[s]=n,n}{let n=t({},e,r(e),{id:s,children:void 0});return a[s]=n,e.children&&(n.children=v(e.children,r,i,a)),n}}))}function y(e,t,r){void 0===r&&(r="/");let n=M(("string"==typeof t?h(t):t).pathname||"/",r);if(null==n)return null;let a=b(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let i=0;null==o&&i{let i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=F([n,i.relativePath]),u=r.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),b(e.children,t,u,s)),(null!=e.path||e.index)&&t.push({path:s,score:k(s,e.index),routesMeta:u})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of w(e.path))a(e,t,n);else a(e,t)})),t}function w(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(0===n.length)return a?[o,""]:[o];let i=w(n.join("/")),l=[];return l.push(...i.map((e=>""===e?o:[o,e].join("/")))),a&&l.push(...i),l.map((t=>e.startsWith("/")&&""===t?"/":t))}const E=/^:[\w-]+$/,S=3,x=2,D=1,R=10,P=-2,C=e=>"*"===e;function k(e,t){let r=e.split("/"),n=r.length;return r.some(C)&&(n+=P),t&&(n+=x),r.filter((e=>!C(e))).reduce(((e,t)=>e+(E.test(t)?S:""===t?D:R)),n)}function L(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let i=0;inull==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map(((e,r,n)=>{if(r===n.length-1&&"*"===e){return a(t["*"])}const o=e.match(/^:([\w-]+)(\??)$/);if(o){const[,e,r]=o;let n=t[e];return l("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function _(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);s("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let o=new RegExp(a,t?void 0:"i");return[o,n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const s=l[r];return e[n]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:i,pattern:e}}function A(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return s(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function U(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?h(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:z(n),hash:H(a)}}function O(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function T(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function B(e,t){let r=T(e);return t?r.map(((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)):r.map((e=>e.pathnameBase))}function N(e,r,n,a){let o;void 0===a&&(a=!1),"string"==typeof e?o=h(e):(o=t({},e),l(!o.pathname||!o.pathname.includes("?"),O("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),O("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),O("#","search","hash",o)));let i,s=""===e||""===o.pathname,u=s?"/":o.pathname;if(null==u)i=n;else{let e=r.length-1;if(!a&&u.startsWith("..")){let t=u.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?r[e]:"/"}let c=U(o,i),d=u&&"/"!==u&&u.endsWith("/"),f=(s||"."===u)&&n.endsWith("/");return c.pathname.endsWith("/")||!d&&!f||(c.pathname+="/"),c}const F=e=>e.join("/").replace(/\/\/+/g,"/"),I=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",H=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",W=function(e,r){void 0===r&&(r={});let n="number"==typeof r?{status:r}:r,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),t({},n,{headers:a}))};class $ extends Error{}class q{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],l(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise(((e,t)=>r=t)),this.controller=new AbortController;let n=()=>r(new $("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})}),{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(r,e,void 0,t)),(t=>this.onSettle(r,e,t)));return r.catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof $)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach((r=>r(e,t)))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach(((e,t)=>this.pendingKeysSet.delete(t))),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise((t=>{this.subscribe((n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)}))}))}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return l(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:J(n)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function J(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const K=function(e,t){return void 0===t&&(t={}),new q(e,"number"==typeof t?{status:t}:t)},Y=function(e,r){void 0===r&&(r=302);let n=r;"number"==typeof n?n={status:n}:void 0===n.status&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",e),new Response(null,t({},n,{headers:a}))},V=(e,t)=>{let r=Y(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r};class X{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function G(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Q=["post","put","patch","delete"],Z=new Set(Q),ee=["get",...Q],te=new Set(ee),re=new Set([301,302,303,307,308]),ne=new Set([307,308]),ae={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ie={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},le=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,se=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ue="remix-router-transitions";function ce(e){const n=e.window?e.window:"undefined"!=typeof window?window:void 0,a=void 0!==n&&void 0!==n.document&&void 0!==n.document.createElement,o=!a;let i;if(l(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=se;let u,d,h={},f=v(e.routes,i,void 0,h),m=e.basename||"/",b=t({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),w=null,E=new Set,S=null,x=null,D=null,R=null!=e.hydrationData,P=y(f,e.history.location,m),C=null;if(null==P){let t=Re(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=De(f);P=r,C={[n.id]:t}}let k,L=P.some((e=>e.route.lazy)),j=P.some((e=>e.route.loader));if(L)d=!1;else if(j)if(b.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=P.findIndex((e=>void 0!==r[e.route.id]));d=P.slice(0,e+1).every(n)}else d=P.every(n)}else d=null!=e.hydrationData;else d=!0;let _,A={historyAction:e.history.action,location:e.history.location,matches:P,initialized:d,navigation:ae,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||C,fetchers:new Map,blockers:new Map},U=r.Pop,O=!1,T=!1,B=new Map,N=null,F=!1,I=!1,z=[],H=[],W=new Map,$=0,q=-1,J=new Map,K=new Set,Y=new Map,V=new Map,X=new Set,G=new Map,Q=new Map,Z=!1;function ee(e,r){void 0===r&&(r={}),A=t({},A,e);let n=[],a=[];b.v7_fetcherPersist&&A.fetchers.forEach(((e,t)=>{"idle"===e.state&&(X.has(t)?a.push(t):n.push(t))})),[...E].forEach((e=>e(A,{deletedFetchers:a,unstable_viewTransitionOpts:r.viewTransitionOpts,unstable_flushSync:!0===r.flushSync}))),b.v7_fetcherPersist&&(n.forEach((e=>A.fetchers.delete(e))),a.forEach((e=>Ce(e))))}function te(n,a,o){var i,l;let s,{flushSync:c}=void 0===o?{}:o,d=null!=A.actionData&&null!=A.navigation.formMethod&&_e(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==(null==(i=n.state)?void 0:i._isRedirect);s=a.actionData?Object.keys(a.actionData).length>0?a.actionData:null:d?A.actionData:null;let h=a.loaderData?Se(A.loaderData,a.loaderData,a.matches||[],a.errors):A.loaderData,p=A.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,ie))));let m,v=!0===O||null!=A.navigation.formMethod&&_e(A.navigation.formMethod)&&!0!==(null==(l=n.state)?void 0:l._isRedirect);if(u&&(f=u,u=void 0),F||U===r.Pop||(U===r.Push?e.history.push(n,n.state):U===r.Replace&&e.history.replace(n,n.state)),U===r.Pop){let e=B.get(A.location.pathname);e&&e.has(n.pathname)?m={currentLocation:A.location,nextLocation:n}:B.has(n.pathname)&&(m={currentLocation:n,nextLocation:A.location})}else if(T){let e=B.get(A.location.pathname);e?e.add(n.pathname):(e=new Set([n.pathname]),B.set(A.location.pathname,e)),m={currentLocation:A.location,nextLocation:n}}ee(t({},a,{actionData:s,loaderData:h,historyAction:U,location:n,initialized:!0,navigation:ae,revalidation:"idle",restoreScrollPosition:Ye(n,a.matches||A.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:m,flushSync:!0===c}),U=r.Pop,O=!1,T=!1,F=!1,I=!1,z=[],H=[]}async function re(n,a,o){_&&_.abort(),_=null,U=n,F=!0===(o&&o.startUninterruptedRevalidation),function(e,t){if(S&&D){let r=Ke(e,t);S[r]=D()}}(A.location,A.matches),O=!0===(o&&o.preventScrollReset),T=!0===(o&&o.enableViewTransition);let l=u||f,s=o&&o.overrideNavigation,c=y(l,a,m),d=!0===(o&&o.flushSync);if(!c){let e=Re(404,{pathname:a.pathname}),{matches:t,route:r}=De(l);return Je(),void te(a,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:d})}if(A.initialized&&!I&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(A.location,a)&&!(o&&o.submission&&_e(o.submission.formMethod)))return void te(a,{matches:c},{flushSync:d});_=new AbortController;let v,g,w=ge(e.history,a,_.signal,o&&o.submission);if(o&&o.pendingError)g={[xe(c).route.id]:o.pendingError};else if(o&&o.submission&&_e(o.submission.formMethod)){let e=await async function(e,t,n,a,o){void 0===o&&(o={});me();let l,s=function(e,t){let r={state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text};return r}(t,n);ee({navigation:s},{flushSync:!0===o.flushSync});let u=Oe(a,t);if(u.route.action||u.route.lazy){if(l=await ye("action",e,u,a,h,i,m,b.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else l={type:p.error,error:Re(405,{method:e.method,pathname:t.pathname,routeId:u.route.id})};if(je(l)){let e;return e=o&&null!=o.replace?o.replace:l.location===A.location.pathname+A.location.search,await ce(A,l,{submission:n,replace:e}),{shortCircuited:!0}}if(Le(l)){let e=xe(a,u.route.id);return!0!==(o&&o.replace)&&(U=r.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:l.error}}}if(ke(l))throw Re(400,{type:"defer-action"});return{pendingActionData:{[u.route.id]:l.data}}}(w,a,o.submission,c,{replace:o.replace,flushSync:d});if(e.shortCircuited)return;v=e.pendingActionData,g=e.pendingActionError,s=Be(a,o.submission),d=!1,w=new Request(w.url,{signal:w.signal})}let{shortCircuited:E,loaderData:x,errors:R}=await async function(r,n,a,o,i,l,s,c,d,h,p){let v=o||Be(n,i),y=i||l||Te(v),g=u||f,[w,E]=fe(e.history,A,a,y,n,b.v7_partialHydration&&!0===c,I,z,H,X,Y,K,g,m,h,p);if(Je((e=>!(a&&a.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),q=++$,0===w.length&&0===E.length){let e=ze();return te(n,t({matches:a,loaderData:{},errors:p||null},h?{actionData:h}:{},e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:d}),{shortCircuited:!0}}if(!(F||b.v7_partialHydration&&c)){E.forEach((e=>{let t=A.fetchers.get(e.key),r=Ne(void 0,t?t.data:void 0);A.fetchers.set(e.key,r)}));let e=h||A.actionData;ee(t({navigation:v},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},E.length>0?{fetchers:new Map(A.fetchers)}:{}),{flushSync:d})}E.forEach((e=>{W.has(e.key)&&Ue(e.key),e.controller&&W.set(e.key,e.controller)}));let S=()=>E.forEach((e=>Ue(e.key)));_&&_.signal.addEventListener("abort",S);let{results:x,loaderResults:D,fetcherResults:R}=await pe(A.matches,a,w,E,r);if(r.signal.aborted)return{shortCircuited:!0};_&&_.signal.removeEventListener("abort",S);E.forEach((e=>W.delete(e.key)));let P=Pe(x);if(P){if(P.idx>=w.length){let e=E[P.idx-w.length].key;K.add(e)}return await ce(A,P.result,{replace:s}),{shortCircuited:!0}}let{loaderData:C,errors:k}=Ee(A,a,w,D,p,E,R,G);G.forEach(((e,t)=>{e.subscribe((r=>{(r||e.done)&&G.delete(t)}))})),b.v7_partialHydration&&c&&A.errors&&Object.entries(A.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,r]=e;k=Object.assign(k||{},{[t]:r})}));let L=ze(),j=He(q),M=L||j||E.length>0;return t({loaderData:C,errors:k},M?{fetchers:new Map(A.fetchers)}:{})}(w,a,c,s,o&&o.submission,o&&o.fetcherSubmission,o&&o.replace,o&&!0===o.initialHydration,d,v,g);E||(_=null,te(a,t({matches:c},v?{actionData:v}:{},{loaderData:x,errors:R})))}async function ce(o,i,s){let{submission:u,fetcherSubmission:d,replace:h}=void 0===s?{}:s;i.revalidate&&(I=!0);let f=c(o.location,i.location,{_isRedirect:!0});if(l(f,"Expected a location on the redirect navigation"),a){let t=!1;if(i.reloadDocument)t=!0;else if(le.test(i.location)){const r=e.history.createURL(i.location);t=r.origin!==n.location.origin||null==M(r.pathname,m)}if(t)return void(h?n.location.replace(i.location):n.location.assign(i.location))}_=null;let p=!0===h?r.Replace:r.Push,{formMethod:v,formAction:y,formEncType:g}=o.navigation;!u&&!d&&v&&y&&g&&(u=Te(o.navigation));let b=u||d;if(ne.has(i.status)&&b&&_e(b.formMethod))await re(p,f,{submission:t({},b,{formAction:i.location}),preventScrollReset:O});else{let e=Be(f,u);await re(p,f,{overrideNavigation:e,fetcherSubmission:d,preventScrollReset:O})}}async function pe(t,r,n,a,o){let l=await Promise.all([...n.map((e=>ye("loader",o,e,r,h,i,m,b.v7_relativeSplatPath))),...a.map((t=>{if(t.matches&&t.match&&t.controller)return ye("loader",ge(e.history,t.path,t.controller.signal),t.match,t.matches,h,i,m,b.v7_relativeSplatPath);return{type:p.error,error:Re(404,{pathname:t.path})}}))]),s=l.slice(0,n.length),u=l.slice(n.length);return await Promise.all([Ae(t,n,s,s.map((()=>o.signal)),!1,A.loaderData),Ae(t,a.map((e=>e.match)),u,a.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:l,loaderResults:s,fetcherResults:u}}function me(){I=!0,z.push(...Je()),Y.forEach(((e,t)=>{W.has(t)&&(H.push(t),Ue(t))}))}function ve(e,t,r){void 0===r&&(r={}),A.fetchers.set(e,t),ee({fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function be(e,t,r,n){void 0===n&&(n={});let a=xe(A.matches,t);Ce(e),ee({errors:{[a.route.id]:r},fetchers:new Map(A.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function we(e){return b.v7_fetcherPersist&&(V.set(e,(V.get(e)||0)+1),X.has(e)&&X.delete(e)),A.fetchers.get(e)||oe}function Ce(e){let t=A.fetchers.get(e);!W.has(e)||t&&"loading"===t.state&&J.has(e)||Ue(e),Y.delete(e),J.delete(e),K.delete(e),X.delete(e),A.fetchers.delete(e)}function Ue(e){let t=W.get(e);l(t,"Expected fetch controller: "+e),t.abort(),W.delete(e)}function Ie(e){for(let t of e){let e=Fe(we(t).data);A.fetchers.set(t,e)}}function ze(){let e=[],t=!1;for(let r of K){let n=A.fetchers.get(r);l(n,"Expected fetcher: "+r),"loading"===n.state&&(K.delete(r),e.push(r),t=!0)}return Ie(e),t}function He(e){let t=[];for(let[r,n]of J)if(n0}function We(e){A.blockers.delete(e),Q.delete(e)}function $e(e,t){let r=A.blockers.get(e)||ie;l("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(A.blockers);n.set(e,t),ee({blockers:n})}function qe(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===Q.size)return;Q.size>1&&s(!1,"A router only supports one blocker at a time");let a=Array.from(Q.entries()),[o,i]=a[a.length-1],l=A.blockers.get(o);return l&&"proceeding"===l.state?void 0:i({currentLocation:t,nextLocation:r,historyAction:n})?o:void 0}function Je(e){let t=[];return G.forEach(((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),G.delete(n))})),t}function Ke(e,t){if(x){return x(e,t.map((e=>g(e,A.loaderData))))||e.key}return e.key}function Ye(e,t){if(S){let r=Ke(e,t),n=S[r];if("number"==typeof n)return n}return null}return k={get basename(){return m},get future(){return b},get state(){return A},get routes(){return f},get window(){return n},initialize:function(){if(w=e.history.listen((t=>{let{action:r,location:n,delta:a}=t;if(Z)return void(Z=!1);s(0===Q.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=qe({currentLocation:A.location,nextLocation:n,historyAction:r});return o&&null!=a?(Z=!0,e.history.go(-1*a),void $e(o,{state:"blocked",location:n,proceed(){$e(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){let e=new Map(A.blockers);e.set(o,ie),ee({blockers:e})}})):re(r,n)})),a){!function(e,t){try{let r=e.sessionStorage.getItem(ue);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(r){}}(n,B);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(ue,JSON.stringify(n))}catch(r){s(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}} -/** - * React Router v6.22.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */(n,B);n.addEventListener("pagehide",e),N=()=>n.removeEventListener("pagehide",e)}return A.initialized||re(r.Pop,A.location,{initialHydration:!0}),k},subscribe:function(e){return E.add(e),()=>E.delete(e)},enableScrollRestoration:function(e,t,r){if(S=e,D=t,x=r||null,!R&&A.navigation===ae){R=!0;let e=Ye(A.location,A.matches);null!=e&&ee({restoreScrollPosition:e})}return()=>{S=null,D=null,x=null}},navigate:async function n(a,o){if("number"==typeof a)return void e.history.go(a);let i=de(A.location,A.matches,m,b.v7_prependBasename,a,b.v7_relativeSplatPath,null==o?void 0:o.fromRouteId,null==o?void 0:o.relative),{path:l,submission:s,error:u}=he(b.v7_normalizeFormMethod,!1,i,o),d=A.location,h=c(A.location,l,o&&o.state);h=t({},h,e.history.encodeLocation(h));let f=o&&null!=o.replace?o.replace:void 0,p=r.Push;!0===f?p=r.Replace:!1===f||null!=s&&_e(s.formMethod)&&s.formAction===A.location.pathname+A.location.search&&(p=r.Replace);let v=o&&"preventScrollReset"in o?!0===o.preventScrollReset:void 0,y=!0===(o&&o.unstable_flushSync),g=qe({currentLocation:d,nextLocation:h,historyAction:p});if(!g)return await re(p,h,{submission:s,pendingError:u,preventScrollReset:v,replace:o&&o.replace,enableViewTransition:o&&o.unstable_viewTransition,flushSync:y});$e(g,{state:"blocked",location:h,proceed(){$e(g,{state:"proceeding",proceed:void 0,reset:void 0,location:h}),n(a,o)},reset(){let e=new Map(A.blockers);e.set(g,ie),ee({blockers:e})}})},fetch:function(t,r,n,a){if(o)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");W.has(t)&&Ue(t);let s=!0===(a&&a.unstable_flushSync),c=u||f,d=de(A.location,A.matches,m,b.v7_prependBasename,n,b.v7_relativeSplatPath,r,null==a?void 0:a.relative),p=y(c,d,m);if(!p)return void be(t,r,Re(404,{pathname:d}),{flushSync:s});let{path:v,submission:g,error:w}=he(b.v7_normalizeFormMethod,!0,d,a);if(w)return void be(t,r,w,{flushSync:s});let E=Oe(p,v);O=!0===(a&&a.preventScrollReset),g&&_e(g.formMethod)?async function(t,r,n,a,o,s,c){if(me(),Y.delete(t),!a.route.action&&!a.route.lazy){let e=Re(405,{method:c.formMethod,pathname:n,routeId:r});return void be(t,r,e,{flushSync:s})}let d=A.fetchers.get(t);ve(t,function(e,t){let r={state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0};return r}(c,d),{flushSync:s});let p=new AbortController,v=ge(e.history,n,p.signal,c);W.set(t,p);let g=$,w=await ye("action",v,a,o,h,i,m,b.v7_relativeSplatPath);if(v.signal.aborted)return void(W.get(t)===p&&W.delete(t));if(b.v7_fetcherPersist&&X.has(t)){if(je(w)||Le(w))return void ve(t,Fe(void 0))}else{if(je(w))return W.delete(t),q>g?void ve(t,Fe(void 0)):(K.add(t),ve(t,Ne(c)),ce(A,w,{fetcherSubmission:c}));if(Le(w))return void be(t,r,w.error)}if(ke(w))throw Re(400,{type:"defer-action"});let E=A.navigation.location||A.location,S=ge(e.history,E,p.signal),x=u||f,D="idle"!==A.navigation.state?y(x,A.navigation.location,m):A.matches;l(D,"Didn't find any matches after fetcher action");let R=++$;J.set(t,R);let P=Ne(c,w.data);A.fetchers.set(t,P);let[C,k]=fe(e.history,A,D,c,E,!1,I,z,H,X,Y,K,x,m,{[a.route.id]:w.data},void 0);k.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,r=A.fetchers.get(t),n=Ne(void 0,r?r.data:void 0);A.fetchers.set(t,n),W.has(t)&&Ue(t),e.controller&&W.set(t,e.controller)})),ee({fetchers:new Map(A.fetchers)});let L=()=>k.forEach((e=>Ue(e.key)));p.signal.addEventListener("abort",L);let{results:j,loaderResults:M,fetcherResults:O}=await pe(A.matches,D,C,k,S);if(p.signal.aborted)return;p.signal.removeEventListener("abort",L),J.delete(t),W.delete(t),k.forEach((e=>W.delete(e.key)));let T=Pe(j);if(T){if(T.idx>=C.length){let e=k[T.idx-C.length].key;K.add(e)}return ce(A,T.result)}let{loaderData:B,errors:N}=Ee(A,A.matches,C,M,void 0,k,O,G);if(A.fetchers.has(t)){let e=Fe(w.data);A.fetchers.set(t,e)}He(R),"loading"===A.navigation.state&&R>q?(l(U,"Expected pending action"),_&&_.abort(),te(A.navigation.location,{matches:D,loaderData:B,errors:N,fetchers:new Map(A.fetchers)})):(ee({errors:N,loaderData:Se(A.loaderData,B,D,N),fetchers:new Map(A.fetchers)}),I=!1)}(t,r,v,E,p,s,g):(Y.set(t,{routeId:r,path:v}),async function(t,r,n,a,o,s,u){let c=A.fetchers.get(t);ve(t,Ne(u,c?c.data:void 0),{flushSync:s});let d=new AbortController,f=ge(e.history,n,d.signal);W.set(t,d);let p=$,v=await ye("loader",f,a,o,h,i,m,b.v7_relativeSplatPath);ke(v)&&(v=await Me(v,f.signal,!0)||v);W.get(t)===d&&W.delete(t);if(f.signal.aborted)return;if(X.has(t))return void ve(t,Fe(void 0));if(je(v))return q>p?void ve(t,Fe(void 0)):(K.add(t),void(await ce(A,v)));if(Le(v))return void be(t,r,v.error);l(!ke(v),"Unhandled fetcher deferred data"),ve(t,Fe(v.data))}(t,r,v,E,p,s,g))},revalidate:function(){me(),ee({revalidation:"loading"}),"submitting"!==A.navigation.state&&("idle"!==A.navigation.state?re(U||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation}):re(A.historyAction,A.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:we,deleteFetcher:function(e){if(b.v7_fetcherPersist){let t=(V.get(e)||0)-1;t<=0?(V.delete(e),X.add(e)):V.set(e,t)}else Ce(e);ee({fetchers:new Map(A.fetchers)})},dispose:function(){w&&w(),N&&N(),E.clear(),_&&_.abort(),A.fetchers.forEach(((e,t)=>Ce(t))),A.blockers.forEach(((e,t)=>We(t)))},getBlocker:function(e,t){let r=A.blockers.get(e)||ie;return Q.get(e)!==t&&Q.set(e,t),r},deleteBlocker:We,_internalFetchControllers:W,_internalActiveDeferreds:G,_internalSetRoutes:function(e){h={},u=v(e,i,void 0,h)}},k}function de(e,t,r,n,a,o,i,l){let s,u;if(i){s=[];for(let e of t)if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=N(a||".",B(s,o),M(e.pathname,r)||e.pathname,"path"===l);return null==a&&(c.search=e.search,c.hash=e.hash),null!=a&&""!==a&&"."!==a||!u||!u.route.index||Ue(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(c.pathname="/"===c.pathname?r:F([r,c.pathname])),d(c)}function he(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(a=n.formMethod,!te.has(a.toLowerCase())))return{path:r,error:Re(405,{method:n.formMethod})};var a;let o,i,s=()=>({path:r,error:Re(400,{type:"invalid-body"})}),u=n.formMethod||"get",c=e?u.toUpperCase():u.toLowerCase(),f=Ce(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!_e(c))return s();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce(((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:c,formAction:f,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!_e(c))return s();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:c,formAction:f,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(v){return s()}}}if(l("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=be(n.formData),i=n.formData;else if(n.body instanceof FormData)o=be(n.body),i=n.body;else if(n.body instanceof URLSearchParams)o=n.body,i=we(o);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=we(o)}catch(v){return s()}let p={formMethod:c,formAction:f,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(_e(p.formMethod))return{path:r,submission:p};let m=h(r);return t&&m.search&&Ue(m.search)&&o.append("index",""),m.search="?"+o,{path:d(m),submission:p}}function fe(e,r,n,a,o,i,l,s,u,c,d,h,f,p,m,v){let g=v?Object.values(v)[0]:m?Object.values(m)[0]:void 0,b=e.createURL(r.location),w=e.createURL(o),E=v?Object.keys(v)[0]:void 0,S=function(e,t){let r=e;if(t){let n=e.findIndex((e=>e.route.id===t));n>=0&&(r=e.slice(0,n))}return r}(n,E),x=S.filter(((e,n)=>{let{route:o}=e;if(o.lazy)return!0;if(null==o.loader)return!1;if(i)return!!o.loader.hydrate||void 0===r.loaderData[o.id]&&(!r.errors||void 0===r.errors[o.id]);if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(r.loaderData,r.matches[n],e)||s.some((t=>t===e.route.id)))return!0;let u=r.matches[n],c=e;return me(e,t({currentUrl:b,currentParams:u.params,nextUrl:w,nextParams:c.params},a,{actionResult:g,defaultShouldRevalidate:l||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||pe(u,c)}))})),D=[];return d.forEach(((e,o)=>{if(i||!n.some((t=>t.route.id===e.routeId))||c.has(o))return;let s=y(f,e.path,p);if(!s)return void D.push({key:o,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let d=r.fetchers.get(o),m=Oe(s,e.path),v=!1;v=!h.has(o)&&(!!u.includes(o)||(d&&"idle"!==d.state&&void 0===d.data?l:me(m,t({currentUrl:b,currentParams:r.matches[r.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},a,{actionResult:g,defaultShouldRevalidate:l})))),v&&D.push({key:o,routeId:e.routeId,path:e.path,matches:s,match:m,controller:new AbortController})})),[x,D]}function pe(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function me(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function ve(e,r,n){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let o=n[e.id];l(o,"No route found in manifest");let i={};for(let t in a){let e=void 0!==o[t]&&"hasErrorBoundary"!==t;s(!e,'Route "'+o.id+'" has a static property "'+t+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+t+'" will be ignored.'),e||m.has(t)||(i[t]=a[t])}Object.assign(o,i),Object.assign(o,t({},r(o),{lazy:void 0}))}async function ye(e,t,r,n,a,o,i,s,u){let c,d,h;void 0===u&&(u={});let f=e=>{let n,a=new Promise(((e,t)=>n=t));return h=()=>n(),t.signal.addEventListener("abort",h),Promise.race([e({request:t,params:r.params,context:u.requestContext}),a])};try{let n=r.route[e];if(r.route.lazy)if(n){let e,t=await Promise.all([f(n).catch((t=>{e=t})),ve(r.route,o,a)]);if(e)throw e;d=t[0]}else{if(await ve(r.route,o,a),n=r.route[e],!n){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw Re(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:p.data,data:void 0}}d=await f(n)}else{if(!n){let e=new URL(t.url);throw Re(404,{pathname:e.pathname+e.search})}d=await f(n)}l(void 0!==d,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(g){c=p.error,d=g}finally{h&&t.signal.removeEventListener("abort",h)}if(null!=(m=d)&&"number"==typeof m.status&&"string"==typeof m.statusText&&"object"==typeof m.headers&&void 0!==m.body){let e,a=d.status;if(re.has(a)){let e=d.headers.get("Location");if(l(e,"Redirects returned/thrown from loaders/actions must have a Location header"),le.test(e)){if(!u.isStaticRequest){let r=new URL(t.url),n=e.startsWith("//")?new URL(r.protocol+e):new URL(e),a=null!=M(n.pathname,i);n.origin===r.origin&&a&&(e=n.pathname+n.search+n.hash)}}else e=de(new URL(t.url),n.slice(0,n.indexOf(r)+1),i,!0,e,s);if(u.isStaticRequest)throw d.headers.set("Location",e),d;return{type:p.redirect,status:a,location:e,revalidate:null!==d.headers.get("X-Remix-Revalidate"),reloadDocument:null!==d.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest){throw{type:c===p.error?p.error:p.data,response:d}}try{let t=d.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==d.body?null:await d.json():await d.text()}catch(g){return{type:p.error,error:g}}return c===p.error?{type:c,error:new X(a,d.statusText,e),headers:d.headers}:{type:p.data,data:e,statusCode:d.status,headers:d.headers}}var m,v,y;return c===p.error?{type:c,error:d}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(d)?{type:p.deferred,deferredData:d,statusCode:null==(v=d.init)?void 0:v.status,headers:(null==(y=d.init)?void 0:y.headers)&&new Headers(d.init.headers)}:{type:p.data,data:d}}function ge(e,t,r,n){let a=e.createURL(Ce(t)).toString(),o={signal:r};if(n&&_e(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=be(n.formData):o.body=n.formData}return new Request(a,o)}function be(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function we(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Ee(e,r,n,a,o,i,s,u){let{loaderData:c,errors:d}=function(e,t,r,n,a){let o,i={},s=null,u=!1,c={};return r.forEach(((r,d)=>{let h=t[d].route.id;if(l(!je(r),"Cannot handle redirect results in processLoaderData"),Le(r)){let t=xe(e,h),a=r.error;n&&(a=Object.values(n)[0],n=void 0),s=s||{},null==s[t.route.id]&&(s[t.route.id]=a),i[h]=void 0,u||(u=!0,o=G(r.error)?r.error.status:500),r.headers&&(c[h]=r.headers)}else ke(r)?(a.set(h,r.deferredData),i[h]=r.deferredData.data):i[h]=r.data,null==r.statusCode||200===r.statusCode||u||(o=r.statusCode),r.headers&&(c[h]=r.headers)})),n&&(s=n,i[Object.keys(n)[0]]=void 0),{loaderData:i,errors:s,statusCode:o||200,loaderHeaders:c}}(r,n,a,o,u);for(let h=0;he.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function De(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Re(e,t){let{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new X(e||500,i,new Error(l),!0)}function Pe(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(je(r))return{result:r,idx:t}}}function Ce(e){return d(t({},"string"==typeof e?h(e):e,{hash:""}))}function ke(e){return e.type===p.deferred}function Le(e){return e.type===p.error}function je(e){return(e&&e.type)===p.redirect}function _e(e){return Z.has(e.toLowerCase())}async function Ae(e,t,r,n,a,o){for(let i=0;ie.route.id===u.route.id)),d=null!=c&&!pe(c,u)&&void 0!==(o&&o[u.route.id]);if(ke(s)&&(a||d)){let e=n[i];l(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Me(s,e,a).then((e=>{e&&(r[i]=e||r[i])}))}}}async function Me(e,t,r){if(void 0===r&&(r=!1),!(await e.deferredData.resolveData(t))){if(r)try{return{type:p.data,data:e.deferredData.unwrappedData}}catch(n){return{type:p.error,error:n}}return{type:p.data,data:e.deferredData.data}}}function Ue(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function Oe(e,t){let r="string"==typeof t?h(t).search:t.search;if(e[e.length-1].route.index&&Ue(r||""))return e[e.length-1];let n=T(e);return n[n.length-1]}function Te(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function Be(e,t){if(t){return{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}return{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ne(e,t){if(e){return{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}}return{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Fe(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}const Ie=await e("react");function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t_(e,t)),[t,e])}function et(e){Ie.useContext(qe).static||Ie.useLayoutEffect(e)}function tt(){let{isDataRoute:e}=Ie.useContext(Ke);return e?function(){let{router:e}=vt(pt.UseNavigateStable),t=gt(mt.UseNavigateStable),r=Ie.useRef(!1);return et((()=>{r.current=!0})),Ie.useCallback((function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,ze({fromRouteId:t},a)))}),[e,t])}():function(){Xe()||l(!1);let e=Ie.useContext(He),{basename:t,future:r,navigator:n}=Ie.useContext(qe),{matches:a}=Ie.useContext(Ke),{pathname:o}=Ge(),i=JSON.stringify(B(a,r.v7_relativeSplatPath)),s=Ie.useRef(!1);return et((()=>{s.current=!0})),Ie.useCallback((function(r,a){if(void 0===a&&(a={}),!s.current)return;if("number"==typeof r)return void n.go(r);let l=N(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:F([t,l.pathname])),(a.replace?n.replace:n.push)(l,a.state,a)}),[t,n,i,o,e])}()}const rt=Ie.createContext(null);function nt(){return Ie.useContext(rt)}function at(e){let t=Ie.useContext(Ke).outlet;return t?Ie.createElement(rt.Provider,{value:e},t):t}function ot(){let{matches:e}=Ie.useContext(Ke),t=e[e.length-1];return t?t.params:{}}function it(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=Ie.useContext(qe),{matches:a}=Ie.useContext(Ke),{pathname:o}=Ge(),i=JSON.stringify(B(a,n.v7_relativeSplatPath));return Ie.useMemo((()=>N(e,JSON.parse(i),o,"path"===r)),[e,i,o,r])}function lt(e,t){return st(e,t)}function st(e,t,n,a){Xe()||l(!1);let{navigator:o}=Ie.useContext(qe),{matches:i}=Ie.useContext(Ke),s=i[i.length-1],u=s?s.params:{};!s||s.pathname;let c=s?s.pathnameBase:"/";s&&s.route;let d,f=Ge();if(t){var p;let e="string"==typeof t?h(t):t;"/"===c||(null==(p=e.pathname)?void 0:p.startsWith(c))||l(!1),d=e}else d=f;let m=d.pathname||"/",v=m;if("/"!==c){let e=c.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=y(e,{pathname:v}),b=ft(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:F([c,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:F([c,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,a);return t&&b?Ie.createElement(Je.Provider,{value:{location:ze({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:r.Pop}},b):b}function ut(){let e=Pt(),t=G(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return Ie.createElement(Ie.Fragment,null,Ie.createElement("h2",null,"Unexpected Application Error!"),Ie.createElement("h3",{style:{fontStyle:"italic"}},t),r?Ie.createElement("pre",{style:n},r):null,null)}const ct=Ie.createElement(ut,null);class dt extends Ie.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?Ie.createElement(Ke.Provider,{value:this.props.routeContext},Ie.createElement(Ye.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ht(e){let{routeContext:t,match:r,children:n}=e,a=Ie.useContext(He);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),Ie.createElement(Ke.Provider,{value:t},n)}function ft(e,t,r,n){var a;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var o;if(null==(o=r)||!o.errors)return null;e=r.matches}let i=e,s=null==(a=r)?void 0:a.errors;if(null!=s){let e=i.findIndex((e=>e.route.id&&(null==s?void 0:s[e.route.id])));e>=0||l(!1),i=i.slice(0,Math.min(i.length,e+1))}let u=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let l=0;l=0?i.slice(0,c+1):[i[0]];break}}}return i.reduceRight(((e,n,a)=>{let o,l=!1,d=null,h=null;var f;r&&(o=s&&n.route.id?s[n.route.id]:void 0,d=n.route.errorElement||ct,u&&(c<0&&0===a?(f="route-fallback",!1||_t[f]||(_t[f]=!0),l=!0,h=null):c===a&&(l=!0,h=n.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,a+1)),m=()=>{let t;return t=o?d:l?h:n.route.Component?Ie.createElement(n.route.Component,null):n.route.element?n.route.element:e,Ie.createElement(ht,{match:n,routeContext:{outlet:e,matches:p,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?Ie.createElement(dt,{location:r.location,revalidation:r.revalidation,component:d,error:o,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}var pt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(pt||{}),mt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(mt||{});function vt(e){let t=Ie.useContext(He);return t||l(!1),t}function yt(e){let t=Ie.useContext(We);return t||l(!1),t}function gt(e){let t=function(e){let t=Ie.useContext(Ke);return t||l(!1),t}(),r=t.matches[t.matches.length-1];return r.route.id||l(!1),r.route.id}function bt(){return gt(mt.UseRouteId)}function wt(){return yt(mt.UseNavigation).navigation}function Et(){let e=vt(pt.UseRevalidator),t=yt(mt.UseRevalidator);return Ie.useMemo((()=>({revalidate:e.router.revalidate,state:t.revalidation})),[e.router.revalidate,t.revalidation])}function St(){let{matches:e,loaderData:t}=yt(mt.UseMatches);return Ie.useMemo((()=>e.map((e=>g(e,t)))),[e,t])}function xt(){let e=yt(mt.UseLoaderData),t=gt(mt.UseLoaderData);if(!e.errors||null==e.errors[t])return e.loaderData[t];console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")")}function Dt(e){return yt(mt.UseRouteLoaderData).loaderData[e]}function Rt(){let e=yt(mt.UseActionData),t=gt(mt.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function Pt(){var e;let t=Ie.useContext(Ye),r=yt(mt.UseRouteError),n=gt(mt.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function Ct(){let e=Ie.useContext($e);return null==e?void 0:e._data}function kt(){let e=Ie.useContext($e);return null==e?void 0:e._error}let Lt=0;function jt(e){let{router:t,basename:r}=vt(pt.UseBlocker),n=yt(mt.UseBlocker),[a,o]=Ie.useState(""),i=Ie.useCallback((t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:ze({},n,{pathname:M(n.pathname,r)||n.pathname}),nextLocation:ze({},a,{pathname:M(a.pathname,r)||a.pathname}),historyAction:o})}),[r,e]);return Ie.useEffect((()=>{let e=String(++Lt);return o(e),()=>t.deleteBlocker(e)}),[t]),Ie.useEffect((()=>{""!==a&&t.getBlocker(a,i)}),[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ie}const _t={};const At=Ie.startTransition;function Mt(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=Ie.useState(r.state),{v7_startTransition:i}=n||{},l=Ie.useCallback((e=>{i&&At?At((()=>o(e))):o(e)}),[o,i]);Ie.useLayoutEffect((()=>r.subscribe(l)),[r,l]),Ie.useEffect((()=>{}),[]);let s=Ie.useMemo((()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})})),[r]),u=r.basename||"/",c=Ie.useMemo((()=>({router:r,navigator:s,static:!1,basename:u})),[r,s,u]);return Ie.createElement(Ie.Fragment,null,Ie.createElement(He.Provider,{value:c},Ie.createElement(We.Provider,{value:a},Ie.createElement(Ft,{basename:u,location:a.location,navigationType:a.historyAction,navigator:s,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?Ie.createElement(Ut,{routes:r.routes,future:r.future,state:a}):t))),null)}function Ut(e){let{routes:t,future:r,state:n}=e;return st(t,void 0,n,r)}function Ot(e){let{basename:t,children:r,initialEntries:n,initialIndex:o,future:i}=e,l=Ie.useRef();null==l.current&&(l.current=a({initialEntries:n,initialIndex:o,v5Compat:!0}));let s=l.current,[u,c]=Ie.useState({action:s.action,location:s.location}),{v7_startTransition:d}=i||{},h=Ie.useCallback((e=>{d&&At?At((()=>c(e))):c(e)}),[c,d]);return Ie.useLayoutEffect((()=>s.listen(h)),[s,h]),Ie.createElement(Ft,{basename:t,children:r,location:u.location,navigationType:u.action,navigator:s,future:i})}function Tt(e){let{to:t,replace:r,state:n,relative:a}=e;Xe()||l(!1);let{future:o,static:i}=Ie.useContext(qe),{matches:s}=Ie.useContext(Ke),{pathname:u}=Ge(),c=tt(),d=N(t,B(s,o.v7_relativeSplatPath),u,"path"===a),h=JSON.stringify(d);return Ie.useEffect((()=>c(JSON.parse(h),{replace:r,state:n,relative:a})),[c,h,a,r,n]),null}function Bt(e){return at(e.context)}function Nt(e){l(!1)}function Ft(e){let{basename:t="/",children:n=null,location:a,navigationType:o=r.Pop,navigator:i,static:s=!1,future:u}=e;Xe()&&l(!1);let c=t.replace(/^\/*/,"/"),d=Ie.useMemo((()=>({basename:c,navigator:i,static:s,future:ze({v7_relativeSplatPath:!1},u)})),[c,u,i,s]);"string"==typeof a&&(a=h(a));let{pathname:f="/",search:p="",hash:m="",state:v=null,key:y="default"}=a,g=Ie.useMemo((()=>{let e=M(f,c);return null==e?null:{location:{pathname:e,search:p,hash:m,state:v,key:y},navigationType:o}}),[c,f,p,m,v,y,o]);return null==g?null:Ie.createElement(qe.Provider,{value:d},Ie.createElement(Je.Provider,{children:n,value:g}))}function It(e){let{children:t,location:r}=e;return lt(Jt(t),r)}function zt(e){let{children:t,errorElement:r,resolve:n}=e;return Ie.createElement($t,{resolve:n,errorElement:r},Ie.createElement(qt,null,t))}var Ht=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(Ht||{});const Wt=new Promise((()=>{}));class $t extends Ie.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(" caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=Ht.pending;if(r instanceof Promise)if(this.state.error){a=Ht.error;let e=this.state.error;n=Promise.reject().catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?(n=r,a=void 0!==n._error?Ht.error:void 0!==n._data?Ht.success:Ht.pending):(a=Ht.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then((e=>Object.defineProperty(r,"_data",{get:()=>e})),(e=>Object.defineProperty(r,"_error",{get:()=>e}))));else a=Ht.success,n=Promise.resolve(),Object.defineProperty(n,"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===Ht.error&&n._error instanceof $)throw Wt;if(a===Ht.error&&!t)throw n._error;if(a===Ht.error)return Ie.createElement($e.Provider,{value:n,children:t});if(a===Ht.success)return Ie.createElement($e.Provider,{value:n,children:e});throw n}}function qt(e){let{children:t}=e,r=Ct(),n="function"==typeof t?t(r):t;return Ie.createElement(Ie.Fragment,null,n)}function Jt(e,t){void 0===t&&(t=[]);let r=[];return Ie.Children.forEach(e,((e,n)=>{if(!Ie.isValidElement(e))return;let a=[...t,n];if(e.type===Ie.Fragment)return void r.push.apply(r,Jt(e.props.children,a));e.type!==Nt&&l(!1),e.props.index&&e.props.children&&l(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Jt(e.props.children,a)),r.push(o)})),r}function Kt(e){return ft(e)}function Yt(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:Ie.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:Ie.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:Ie.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Vt(e,t){return ce({basename:null==t?void 0:t.basename,future:ze({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:a({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:Yt}).initialize()}export{$ as AbortedDeferredError,zt as Await,X as E,oe as I,Ot as MemoryRouter,Tt as Navigate,r as NavigationType,Bt as Outlet,Nt as Route,Ft as Router,Mt as RouterProvider,It as Routes,He as UNSAFE_DataRouterContext,We as UNSAFE_DataRouterStateContext,Je as UNSAFE_LocationContext,qe as UNSAFE_NavigationContext,Ke as UNSAFE_RouteContext,Yt as UNSAFE_mapRouteProperties,bt as UNSAFE_useRouteId,st as UNSAFE_useRoutesImpl,o as a,i as b,ce as c,Vt as createMemoryRouter,d as createPath,Jt as createRoutesFromChildren,Jt as createRoutesFromElements,K as defer,j as generatePath,l as i,G as isRouteErrorResponse,F as j,W as json,_ as matchPath,y as matchRoutes,h as parsePath,Y as redirect,V as redirectDocument,Kt as renderMatches,U as resolvePath,M as s,Rt as useActionData,kt as useAsyncError,Ct as useAsyncValue,jt as useBlocker,Ve as useHref,Xe as useInRouterContext,xt as useLoaderData,Ge as useLocation,Ze as useMatch,St as useMatches,tt as useNavigate,wt as useNavigation,Qe as useNavigationType,at as useOutlet,nt as useOutletContext,ot as useParams,it as useResolvedPath,Et as useRevalidator,Pt as useRouteError,Dt as useRouteLoaderData,lt as useRoutes}; diff --git a/assets/__federation_shared_react-router-dom-nsx7W9Kc.js b/assets/__federation_shared_react-router-dom-nsx7W9Kc.js deleted file mode 100644 index 94fe992..0000000 --- a/assets/__federation_shared_react-router-dom-nsx7W9Kc.js +++ /dev/null @@ -1,11 +0,0 @@ -import{i as e}from"./_virtual___federation_fn_import-DD6RvBA-.js";import{c as t,a as n,b as a,E as r,s as o,i,j as s,I as u,matchPath as l}from"./__federation_shared_react-router-B32bG2-w.js";export{AbortedDeferredError,Await,MemoryRouter,Navigate,NavigationType,Outlet,Route,Router,Routes,UNSAFE_DataRouterContext,UNSAFE_DataRouterStateContext,UNSAFE_LocationContext,UNSAFE_NavigationContext,UNSAFE_RouteContext,UNSAFE_useRouteId,createMemoryRouter,createPath,createRoutesFromChildren,createRoutesFromChildren as createRoutesFromElements,defer,generatePath,isRouteErrorResponse,json,matchRoutes,parsePath,redirect,redirectDocument,renderMatches,resolvePath,useActionData,useAsyncError,useAsyncValue,useBlocker,useHref,useInRouterContext,useLoaderData,useLocation,useMatch,useMatches,useNavigate,useNavigation,useNavigationType,useOutlet,useOutletContext,useParams,useResolvedPath,useRevalidator,useRouteError,useRouteLoaderData,useRoutes}from"./__federation_shared_react-router-B32bG2-w.js"; -/** - * React Router DOM v6.22.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const c=await e("react"),f=await e("react-dom"),{UNSAFE_mapRouteProperties:d,UNSAFE_DataRouterContext:m,UNSAFE_DataRouterStateContext:v,Router:h,UNSAFE_useRoutesImpl:p,UNSAFE_NavigationContext:w,useHref:y,useResolvedPath:g,useLocation:b,useNavigate:S,createPath:R,UNSAFE_useRouteId:_,UNSAFE_RouteContext:E,useMatches:T,useNavigation:C,useBlocker:L}=await e("react-router");function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(r[n]=e[n]);return r}const F="get",U="application/x-www-form-urlencoded";function N(e){return null!=e&&"string"==typeof e.tagName}function k(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map((e=>[n,e])):[[n,a]])}),[]))}let D=null;const P=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function K(e){return null==e||P.has(e)?e:null}function M(e,t){let n,a,r,i,s;if(N(u=e)&&"form"===u.tagName.toLowerCase()){let s=e.getAttribute("action");a=s?o(s,t):null,n=e.getAttribute("method")||F,r=K(e.getAttribute("enctype"))||U,i=new FormData(e)}else if(function(e){return N(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return N(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a